# [−][src]Struct nalgebra::base::dimension::Dynamic

Dim of dynamically-sized algebraic entities.

## Methods

`impl Dynamic`

[src]

## Trait Implementations

`impl<N: Scalar, C: Dim> Allocator<N, Dynamic, C> for DefaultAllocator`

[src]

`type Buffer = VecStorage<N, Dynamic, C>`

The type of buffer this allocator can instanciate.

`unsafe fn allocate_uninitialized(nrows: Dynamic, ncols: C) -> Self::Buffer`

[src]

`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

`impl<N: Scalar, R: DimName> Allocator<N, R, Dynamic> for DefaultAllocator`

[src]

`type Buffer = VecStorage<N, R, Dynamic>`

The type of buffer this allocator can instanciate.

`unsafe fn allocate_uninitialized(nrows: R, ncols: Dynamic) -> Self::Buffer`

[src]

`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

`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: ArrayStorage<N, RFrom, CFrom>

) -> VecStorage<N, Dynamic, CTo>

[src]

rto: Dynamic,

cto: CTo,

buf: ArrayStorage<N, RFrom, CFrom>

) -> VecStorage<N, Dynamic, CTo>

`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: ArrayStorage<N, RFrom, CFrom>

) -> VecStorage<N, RTo, Dynamic>

[src]

rto: RTo,

cto: Dynamic,

buf: ArrayStorage<N, RFrom, CFrom>

) -> VecStorage<N, RTo, Dynamic>

`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: VecStorage<N, Dynamic, CFrom>

) -> VecStorage<N, Dynamic, CTo>

[src]

rto: Dynamic,

cto: CTo,

buf: VecStorage<N, Dynamic, CFrom>

) -> VecStorage<N, Dynamic, CTo>

`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: VecStorage<N, Dynamic, CFrom>

) -> VecStorage<N, RTo, Dynamic>

[src]

rto: RTo,

cto: Dynamic,

buf: VecStorage<N, Dynamic, CFrom>

) -> VecStorage<N, RTo, Dynamic>

`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: VecStorage<N, RFrom, Dynamic>

) -> VecStorage<N, Dynamic, CTo>

[src]

rto: Dynamic,

cto: CTo,

buf: VecStorage<N, RFrom, Dynamic>

) -> VecStorage<N, Dynamic, CTo>

`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: VecStorage<N, RFrom, Dynamic>

) -> VecStorage<N, RTo, Dynamic>

[src]

rto: RTo,

cto: Dynamic,

buf: VecStorage<N, RFrom, Dynamic>

) -> VecStorage<N, RTo, Dynamic>

`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> 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`

`D1`

or `D2`

, always choosing the one (if any) which is a type-level constant. Read more

`impl IsDynamic for Dynamic`

[src]

`impl IsNotStaticOne for Dynamic`

[src]

`impl Dim for Dynamic`

[src]

`fn try_to_usize() -> Option<usize>`

[src]

`fn from_usize(dim: usize) -> Self`

[src]

`fn value(&self) -> usize`

[src]

`fn is<D: Dim>() -> bool`

[src]

`impl<N: Scalar, C: Dim> Storage<N, Dynamic, C> for VecStorage<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]

`fn shape(&self) -> (Dynamic, C)`

[src]

`fn strides(&self) -> (Self::RStride, Self::CStride)`

[src]

`fn is_contiguous(&self) -> bool`

[src]

`fn into_owned(self) -> Owned<N, Dynamic, C> where`

DefaultAllocator: Allocator<N, Dynamic, C>,

[src]

DefaultAllocator: Allocator<N, Dynamic, C>,

`fn clone_owned(&self) -> Owned<N, Dynamic, C> where`

DefaultAllocator: Allocator<N, Dynamic, C>,

[src]

DefaultAllocator: Allocator<N, Dynamic, C>,

`fn as_slice(&self) -> &[N]`

[src]

`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.

`unsafe fn get_unchecked_linear(&self, i: usize) -> &N`

[src]

Retrieves a reference to the i-th element without bound-checking.

`unsafe 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 VecStorage<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]

`fn shape(&self) -> (R, Dynamic)`

[src]

`fn strides(&self) -> (Self::RStride, Self::CStride)`

[src]

`fn is_contiguous(&self) -> bool`

[src]

`fn into_owned(self) -> Owned<N, R, Dynamic> where`

DefaultAllocator: Allocator<N, R, Dynamic>,

[src]

DefaultAllocator: Allocator<N, R, Dynamic>,

`fn clone_owned(&self) -> Owned<N, R, Dynamic> where`

DefaultAllocator: Allocator<N, R, Dynamic>,

[src]

DefaultAllocator: Allocator<N, R, Dynamic>,

`fn as_slice(&self) -> &[N]`

[src]

`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.

`unsafe fn get_unchecked_linear(&self, i: usize) -> &N`

[src]

Retrieves a reference to the i-th element without bound-checking.

`unsafe 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 VecStorage<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]

`fn as_mut_slice(&mut self) -> &mut [N]`

[src]

`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.

`unsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N`

[src]

Retrieves a mutable reference to the i-th element without bound-checking.

`unsafe 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> StorageMut<N, R, Dynamic> for VecStorage<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]

`fn as_mut_slice(&mut self) -> &mut [N]`

[src]

`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.

`unsafe fn get_unchecked_linear_mut(&mut self, i: usize) -> &mut N`

[src]

Retrieves a mutable reference to the i-th element without bound-checking.

`unsafe 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 VecStorage<N, Dynamic, C> where`

DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,

[src]

DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,

`impl<N: Scalar, R: DimName> ContiguousStorage<N, R, Dynamic> for VecStorage<N, R, Dynamic> where`

DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,

[src]

DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,

`impl<N: Scalar, C: Dim> ContiguousStorageMut<N, Dynamic, C> for VecStorage<N, Dynamic, C> where`

DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,

[src]

DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>,

`impl<N: Scalar, R: DimName> ContiguousStorageMut<N, R, Dynamic> for VecStorage<N, R, Dynamic> where`

DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,

[src]

DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>,

`impl<D: DimName> SameNumberOfRows<D, Dynamic> for ShapeConstraint`

[src]

`type Representative = D`

`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`

`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`

`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`

`D1`

or `D2`

, always choosing the one (if any) which is a type-level constant. Read more

`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 PartialEq<Dynamic> for Dynamic`

[src]

`impl Eq for Dynamic`

[src]

`impl Clone for Dynamic`

[src]

`fn clone(&self) -> Dynamic`

[src]

`default fn clone_from(&mut self, source: &Self)`

1.0.0[src]

Performs copy-assignment from `source`

. Read more

`impl Copy for Dynamic`

[src]

`impl Debug for Dynamic`

[src]

`impl Add<usize> for Dynamic`

[src]

`type Output = Dynamic`

The resulting type after applying the `+`

operator.

`fn add(self, rhs: usize) -> Self`

[src]

`impl Sub<usize> for Dynamic`

[src]

`type Output = Dynamic`

The resulting type after applying the `-`

operator.

`fn sub(self, rhs: usize) -> Self`

[src]

`impl Serialize for Dynamic`

[src]

`impl<'de> Deserialize<'de> for Dynamic`

[src]

`fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where`

D: Deserializer<'de>,

[src]

D: Deserializer<'de>,

## Auto Trait Implementations

## Blanket Implementations

`impl<D1, D2> DimAdd for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Add<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Add<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn add(Self, D2) -> <D1 as DimAdd<D2>>::Output`

[src]

`impl<D> DimAdd for D where`

D: DimName,

[src]

D: DimName,

`impl<D1, D2> DimMul for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Mul<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Mul<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Mul<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn mul(Self, D2) -> <D1 as DimMul<D2>>::Output`

[src]

`impl<D> DimMul for D where`

D: DimName,

[src]

D: DimName,

`impl<D1, D2> DimSub for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Sub<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Sub<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn sub(Self, D2) -> <D1 as DimSub<D2>>::Output`

[src]

`impl<D> DimSub for D where`

D: DimName,

[src]

D: DimName,

`impl<D1, D2> DimDiv for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Div<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Div<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Div<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn div(Self, D2) -> <D1 as DimDiv<D2>>::Output`

[src]

`impl<D> DimDiv for D where`

D: DimName,

[src]

D: DimName,

`impl<D1, D2> DimMin for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Min<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Min<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Min<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn min(Self, D2) -> <D1 as DimMin<D2>>::Output`

[src]

`impl<D> DimMin for D where`

D: DimName,

[src]

D: DimName,

`impl<D1, D2> DimMax for D1 where`

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Max<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output: NamedDim,

[src]

D1: DimName,

D2: DimName,

<D1 as DimName>::Value: Max<<D2 as DimName>::Value>,

<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output: NamedDim,

`type Output = <<<D1 as DimName>::Value as Max<<D2 as DimName>::Value>>::Output as NamedDim>::Name`

`fn max(Self, D2) -> <D1 as DimMax<D2>>::Output`

[src]

`impl<D> DimMax for D where`

D: DimName,

[src]

D: DimName,

`impl<T> ToOwned for T where`

T: Clone,

[src]

T: Clone,

`impl<T> From for T`

[src]

`impl<T, U> Into for T where`

U: From<T>,

[src]

U: From<T>,

`impl<T, U> TryFrom for T where`

U: Into<T>,

[src]

U: Into<T>,

`type Error = Infallible`

The type returned in the event of a conversion error.

`fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`

[src]

`impl<T> Borrow for T where`

T: ?Sized,

[src]

T: ?Sized,

`impl<T> Any for T where`

T: 'static + ?Sized,

[src]

T: 'static + ?Sized,

`impl<T> BorrowMut for T where`

T: ?Sized,

[src]

T: ?Sized,

`fn borrow_mut(&mut self) -> &mut T`

[src]

`impl<T, U> TryInto for T where`

U: TryFrom<T>,

[src]

U: TryFrom<T>,

`type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.

`fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`

[src]

`impl<T> DeserializeOwned for T where`

T: Deserialize<'de>,

[src]

T: Deserialize<'de>,

`impl<T> Same for T`

`type Output = T`

Should always be `Self`

`impl<SS, SP> SupersetOf for SP where`

SS: SubsetOf<SP>,

SS: SubsetOf<SP>,