Struct nalgebra::core::dimension::Dynamic
[−]
[src]
pub struct Dynamic { /* fields omitted */ }
Dim of dynamically-sized algebraic entities.
Methods
impl Dynamic
[src]
Trait Implementations
impl Clone for Dynamic
[src]
fn clone(&self) -> Dynamic
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Dynamic
[src]
impl Eq for Dynamic
[src]
impl PartialEq for Dynamic
[src]
fn eq(&self, __arg_0: &Dynamic) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Dynamic) -> bool
[src]
This method tests for !=
.
impl Debug for Dynamic
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl IsDynamic for Dynamic
[src]
impl IsNotStaticOne for Dynamic
[src]
impl Dim for Dynamic
[src]
fn try_to_usize() -> Option<usize>
[src]
Gets the compile-time value of Self
. Returns None
if it is not known, i.e., if Self = Dynamic
. Read more
fn from_usize(dim: usize) -> Self
[src]
Builds an instance of Self
from a run-time value. Panics if Self
is a type-level integer and dim != Self::try_to_usize().unwrap()
. Read more
fn value(&self) -> usize
[src]
Gets the run-time value of self
. For type-level integers, this is the same as Self::try_to_usize().unwrap()
. Read more
fn is<D: Dim>() -> bool
[src]
impl Add<usize> for Dynamic
[src]
type Output = Dynamic
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Dynamic
[src]
Performs the +
operation.
impl Sub<usize> for Dynamic
[src]
type Output = Dynamic
The resulting type after applying the -
operator.
fn sub(self, rhs: usize) -> Dynamic
[src]
Performs the -
operation.
impl<D: Dim> DimAdd<D> for Dynamic
[src]
impl<D: DimName> DimAdd<Dynamic> for D
[src]
impl<D: Dim> DimMul<D> for Dynamic
[src]
impl<D: DimName> DimMul<Dynamic> for D
[src]
impl<D: Dim> DimSub<D> for Dynamic
[src]
impl<D: DimName> DimSub<Dynamic> for D
[src]
impl<D: Dim> DimDiv<D> for Dynamic
[src]
impl<D: DimName> DimDiv<Dynamic> for D
[src]
impl<D: Dim> DimMin<D> for Dynamic
[src]
impl<D: DimName> DimMin<Dynamic> for D
[src]
impl<D: Dim> DimMax<D> for Dynamic
[src]
impl<D: DimName> DimMax<Dynamic> for D
[src]
impl<D: DimName> DimEq<D, Dynamic> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<D: DimName> DimEq<Dynamic, D> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<D: DimName> SameNumberOfRows<D, Dynamic> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<D: DimName> SameNumberOfRows<Dynamic, D> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<D: DimName> SameNumberOfColumns<D, Dynamic> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<D: DimName> SameNumberOfColumns<Dynamic, D> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<D: DimName> SameDimension<D, Dynamic> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<D: DimName> SameDimension<Dynamic, D> for ShapeConstraint
[src]
type Representative = D
This is either equal to D1
or D2
, always choosing the one (if any) which is a type-level constant. Read more
impl<N: Scalar, C: Dim> Allocator<N, Dynamic, C> for DefaultAllocator
[src]
type Buffer = MatrixVec<N, Dynamic, C>
The type of buffer this allocator can instanciate.
unsafe fn allocate_uninitialized(nrows: Dynamic, ncols: C) -> Self::Buffer
[src]
Allocates a buffer with the given number of rows and columns without initializing its content.
fn allocate_from_iterator<I: IntoIterator<Item = N>>(
nrows: Dynamic,
ncols: C,
iter: I
) -> Self::Buffer
[src]
nrows: Dynamic,
ncols: C,
iter: I
) -> Self::Buffer
Allocates a buffer initialized with the content of the given iterator.
impl<N: Scalar, R: DimName> Allocator<N, R, Dynamic> for DefaultAllocator
[src]
type Buffer = MatrixVec<N, R, Dynamic>
The type of buffer this allocator can instanciate.
unsafe fn allocate_uninitialized(nrows: R, ncols: Dynamic) -> Self::Buffer
[src]
Allocates a buffer with the given number of rows and columns without initializing its content.
fn allocate_from_iterator<I: IntoIterator<Item = N>>(
nrows: R,
ncols: Dynamic,
iter: I
) -> Self::Buffer
[src]
nrows: R,
ncols: Dynamic,
iter: I
) -> Self::Buffer
Allocates a buffer initialized with the content of the given iterator.
impl<N: Scalar, RFrom, CFrom, CTo> Reallocator<N, RFrom, CFrom, Dynamic, CTo> for DefaultAllocator where
RFrom: DimName,
CFrom: DimName,
CTo: Dim,
RFrom::Value: Mul<CFrom::Value>,
Prod<RFrom::Value, CFrom::Value>: ArrayLength<N>,
[src]
RFrom: DimName,
CFrom: DimName,
CTo: Dim,
RFrom::Value: Mul<CFrom::Value>,
Prod<RFrom::Value, CFrom::Value>: ArrayLength<N>,
unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: MatrixArray<N, RFrom, CFrom>
) -> MatrixVec<N, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: MatrixArray<N, RFrom, CFrom>
) -> MatrixVec<N, Dynamic, CTo>
Reallocates a buffer of shape (RTo, CTo)
, possibly reusing a previously allocated buffer buf
. Data stored by buf
are linearly copied to the output: Read more
impl<N: Scalar, RFrom, CFrom, RTo> Reallocator<N, RFrom, CFrom, RTo, Dynamic> for DefaultAllocator where
RFrom: DimName,
CFrom: DimName,
RTo: DimName,
RFrom::Value: Mul<CFrom::Value>,
Prod<RFrom::Value, CFrom::Value>: ArrayLength<N>,
[src]
RFrom: DimName,
CFrom: DimName,
RTo: DimName,
RFrom::Value: Mul<CFrom::Value>,
Prod<RFrom::Value, CFrom::Value>: ArrayLength<N>,
unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: MatrixArray<N, RFrom, CFrom>
) -> MatrixVec<N, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: MatrixArray<N, RFrom, CFrom>
) -> MatrixVec<N, RTo, Dynamic>
Reallocates a buffer of shape (RTo, CTo)
, possibly reusing a previously allocated buffer buf
. Data stored by buf
are linearly copied to the output: Read more
impl<N: Scalar, CFrom: Dim, CTo: Dim> Reallocator<N, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator
[src]
unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: MatrixVec<N, Dynamic, CFrom>
) -> MatrixVec<N, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: MatrixVec<N, Dynamic, CFrom>
) -> MatrixVec<N, Dynamic, CTo>
Reallocates a buffer of shape (RTo, CTo)
, possibly reusing a previously allocated buffer buf
. Data stored by buf
are linearly copied to the output: Read more
impl<N: Scalar, CFrom: Dim, RTo: DimName> Reallocator<N, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator
[src]
unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: MatrixVec<N, Dynamic, CFrom>
) -> MatrixVec<N, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: MatrixVec<N, Dynamic, CFrom>
) -> MatrixVec<N, RTo, Dynamic>
Reallocates a buffer of shape (RTo, CTo)
, possibly reusing a previously allocated buffer buf
. Data stored by buf
are linearly copied to the output: Read more
impl<N: Scalar, RFrom: DimName, CTo: Dim> Reallocator<N, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator
[src]
unsafe fn reallocate_copy(
rto: Dynamic,
cto: CTo,
buf: MatrixVec<N, RFrom, Dynamic>
) -> MatrixVec<N, Dynamic, CTo>
[src]
rto: Dynamic,
cto: CTo,
buf: MatrixVec<N, RFrom, Dynamic>
) -> MatrixVec<N, Dynamic, CTo>
Reallocates a buffer of shape (RTo, CTo)
, possibly reusing a previously allocated buffer buf
. Data stored by buf
are linearly copied to the output: Read more
impl<N: Scalar, RFrom: DimName, RTo: DimName> Reallocator<N, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocator
[src]
unsafe fn reallocate_copy(
rto: RTo,
cto: Dynamic,
buf: MatrixVec<N, RFrom, Dynamic>
) -> MatrixVec<N, RTo, Dynamic>
[src]
rto: RTo,
cto: Dynamic,
buf: MatrixVec<N, RFrom, Dynamic>
) -> MatrixVec<N, RTo, Dynamic>
Reallocates a buffer of shape (RTo, CTo)
, possibly reusing a previously allocated buffer buf
. Data stored by buf
are linearly copied to the output: Read more
impl<N: Scalar, C: Dim> Storage<N, Dynamic, C> for MatrixVec<N, Dynamic, C> where
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
type RStride = U1
The static stride of this storage's rows.
type CStride = Dynamic
The static stride of this storage's columns.
fn ptr(&self) -> *const N
[src]
The matrix data pointer.
fn shape(&self) -> (Dynamic, C)
[src]
The dimension of the matrix at run-time. Arr length of zero indicates the additive identity element of any dimension. Must be equal to Self::dimension()
if it is not None
. Read more
fn strides(&self) -> (Self::RStride, Self::CStride)
[src]
The spacing between concecutive row elements and consecutive column elements. Read more
fn is_contiguous(&self) -> bool
[src]
Indicates whether this data buffer stores its elements contiguously.
fn into_owned(self) -> Owned<N, Dynamic, C> where
DefaultAllocator: Allocator<N, Dynamic, C>,
[src]
DefaultAllocator: Allocator<N, Dynamic, C>,
Builds a matrix data storage that does not contain any reference.
fn clone_owned(&self) -> Owned<N, Dynamic, C> where
DefaultAllocator: Allocator<N, Dynamic, C>,
[src]
DefaultAllocator: Allocator<N, Dynamic, C>,
Clones this data storage to one that does not contain any reference.
fn as_slice(&self) -> &[N]
[src]
Retrieves the data buffer as a contiguous slice. Read more
fn linear_index(&self, irow: usize, icol: usize) -> usize
[src]
Compute the index corresponding to the irow-th row and icol-th column of this matrix. The index must be such that the following holds: Read more
unsafe fn get_address_unchecked_linear(&self, i: usize) -> *const N
[src]
Gets the address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked(&self, irow: usize, icol: usize) -> *const N
[src]
Gets the address of the i-th matrix component without performing bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked_linear(&self, i: usize) -> &N
[src]
Retrieves a reference to the i-th element without bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &N
[src]
Retrieves a reference to the i-th element without bound-checking.
impl<N: Scalar, R: DimName> Storage<N, R, Dynamic> for MatrixVec<N, R, Dynamic> where
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,
type RStride = U1
The static stride of this storage's rows.
type CStride = R
The static stride of this storage's columns.
fn ptr(&self) -> *const N
[src]
The matrix data pointer.
fn shape(&self) -> (R, Dynamic)
[src]
The dimension of the matrix at run-time. Arr length of zero indicates the additive identity element of any dimension. Must be equal to Self::dimension()
if it is not None
. Read more
fn strides(&self) -> (Self::RStride, Self::CStride)
[src]
The spacing between concecutive row elements and consecutive column elements. Read more
fn is_contiguous(&self) -> bool
[src]
Indicates whether this data buffer stores its elements contiguously.
fn into_owned(self) -> Owned<N, R, Dynamic> where
DefaultAllocator: Allocator<N, R, Dynamic>,
[src]
DefaultAllocator: Allocator<N, R, Dynamic>,
Builds a matrix data storage that does not contain any reference.
fn clone_owned(&self) -> Owned<N, R, Dynamic> where
DefaultAllocator: Allocator<N, R, Dynamic>,
[src]
DefaultAllocator: Allocator<N, R, Dynamic>,
Clones this data storage to one that does not contain any reference.
fn as_slice(&self) -> &[N]
[src]
Retrieves the data buffer as a contiguous slice. Read more
fn linear_index(&self, irow: usize, icol: usize) -> usize
[src]
Compute the index corresponding to the irow-th row and icol-th column of this matrix. The index must be such that the following holds: Read more
unsafe fn get_address_unchecked_linear(&self, i: usize) -> *const N
[src]
Gets the address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked(&self, irow: usize, icol: usize) -> *const N
[src]
Gets the address of the i-th matrix component without performing bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked_linear(&self, i: usize) -> &N
[src]
Retrieves a reference to the i-th element without bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked(&self, irow: usize, icol: usize) -> &N
[src]
Retrieves a reference to the i-th element without bound-checking.
impl<N: Scalar, C: Dim> StorageMut<N, Dynamic, C> for MatrixVec<N, Dynamic, C> where
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
fn ptr_mut(&mut self) -> *mut N
[src]
The matrix mutable data pointer.
fn as_mut_slice(&mut self) -> &mut [N]
[src]
Retrieves the mutable data buffer as a contiguous slice. Read more
unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut N
[src]
Gets the mutable address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked_mut(
&mut self,
irow: usize,
icol: usize
) -> *mut N
[src]
&mut self,
irow: usize,
icol: usize
) -> *mut N
Gets the mutable address of the i-th matrix component without performing bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N
[src]
Retrieves a mutable reference to the i-th element without bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked_mut(&mut self, irow: usize, icol: usize) -> &mut N
[src]
Retrieves a mutable reference to the element at (irow, icol)
without bound-checking.
unsafe fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)
[src]
Swaps two elements using their linear index without bound-checking.
unsafe fn swap_unchecked(
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
[src]
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
Swaps two elements without bound-checking.
impl<N: Scalar, C: Dim> ContiguousStorage<N, Dynamic, C> for MatrixVec<N, Dynamic, C> where
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
impl<N: Scalar, C: Dim> ContiguousStorageMut<N, Dynamic, C> for MatrixVec<N, Dynamic, C> where
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,
impl<N: Scalar, R: DimName> StorageMut<N, R, Dynamic> for MatrixVec<N, R, Dynamic> where
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,
fn ptr_mut(&mut self) -> *mut N
[src]
The matrix mutable data pointer.
fn as_mut_slice(&mut self) -> &mut [N]
[src]
Retrieves the mutable data buffer as a contiguous slice. Read more
unsafe fn get_address_unchecked_linear_mut(&mut self, i: usize) -> *mut N
[src]
Gets the mutable address of the i-th matrix component without performing bound-checking.
unsafe fn get_address_unchecked_mut(
&mut self,
irow: usize,
icol: usize
) -> *mut N
[src]
&mut self,
irow: usize,
icol: usize
) -> *mut N
Gets the mutable address of the i-th matrix component without performing bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N
[src]
Retrieves a mutable reference to the i-th element without bound-checking.
ⓘImportant traits for &'a mut Iunsafe fn get_unchecked_mut(&mut self, irow: usize, icol: usize) -> &mut N
[src]
Retrieves a mutable reference to the element at (irow, icol)
without bound-checking.
unsafe fn swap_unchecked_linear(&mut self, i1: usize, i2: usize)
[src]
Swaps two elements using their linear index without bound-checking.
unsafe fn swap_unchecked(
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
[src]
&mut self,
row_col1: (usize, usize),
row_col2: (usize, usize)
)
Swaps two elements without bound-checking.
impl<N: Scalar, R: DimName> ContiguousStorage<N, R, Dynamic> for MatrixVec<N, R, Dynamic> where
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,
impl<N: Scalar, R: DimName> ContiguousStorageMut<N, R, Dynamic> for MatrixVec<N, R, Dynamic> where
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,
[src]
DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,