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

pub struct Dynamic { /* fields omitted */ }

Dim of dynamically-sized algebraic entities.

Methods

impl Dynamic[src]

pub fn new(value: usize) -> Self[src]

A dynamic size equal to value.

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.

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.

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]

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]

impl<N: Scalar, CFrom: Dim, CTo: Dim> Reallocator<N, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator[src]

impl<N: Scalar, CFrom: Dim, RTo: DimName> Reallocator<N, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator[src]

impl<N: Scalar, RFrom: DimName, CTo: Dim> Reallocator<N, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator[src]

impl<N: Scalar, RFrom: DimName, RTo: DimName> Reallocator<N, RFrom, Dynamic, RTo, Dynamic> for DefaultAllocator[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> 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 IsDynamic for Dynamic[src]

impl IsNotStaticOne for Dynamic[src]

impl Dim for Dynamic[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]

type RStride = U1

The static stride of this storage's rows.

type CStride = Dynamic

The static stride of this storage's columns.

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]

type RStride = U1

The static stride of this storage's rows.

type CStride = R

The static stride of this storage's columns.

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]

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]

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]

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]

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]

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]

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]

impl<N: Scalar, R: DimName> ContiguousStorage<N, R, Dynamic> for VecStorage<N, R, Dynamic> where
    DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>, 
[src]

impl<N: Scalar, C: Dim> ContiguousStorageMut<N, Dynamic, C> for VecStorage<N, Dynamic, C> where
    DefaultAllocator: Allocator<N, Dynamic, C, Buffer = Self>, 
[src]

impl<N: Scalar, R: DimName> ContiguousStorageMut<N, R, Dynamic> for VecStorage<N, R, Dynamic> where
    DefaultAllocator: Allocator<N, R, Dynamic, Buffer = Self>, 
[src]

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: Dim> DimAdd<D> for Dynamic[src]

type Output = Dynamic

impl<D: DimName> DimAdd<Dynamic> for D[src]

type Output = Dynamic

impl<D: Dim> DimMul<D> for Dynamic[src]

type Output = Dynamic

impl<D: DimName> DimMul<Dynamic> for D[src]

type Output = Dynamic

impl<D: Dim> DimSub<D> for Dynamic[src]

type Output = Dynamic

impl<D: DimName> DimSub<Dynamic> for D[src]

type Output = Dynamic

impl<D: Dim> DimDiv<D> for Dynamic[src]

type Output = Dynamic

impl<D: DimName> DimDiv<Dynamic> for D[src]

type Output = Dynamic

impl<D: Dim> DimMin<D> for Dynamic[src]

type Output = Dynamic

impl<D: DimName> DimMin<Dynamic> for D[src]

type Output = Dynamic

impl<D: Dim> DimMax<D> for Dynamic[src]

type Output = Dynamic

impl<D: DimName> DimMax<Dynamic> for D[src]

type Output = Dynamic

impl PartialEq<Dynamic> for Dynamic[src]

impl Eq for Dynamic[src]

impl Clone for 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.

impl Sub<usize> for Dynamic[src]

type Output = Dynamic

The resulting type after applying the - operator.

impl Serialize for Dynamic[src]

impl<'de> Deserialize<'de> for Dynamic[src]

Auto Trait Implementations

impl Send for Dynamic

impl Sync for Dynamic

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]

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

impl<D> DimAdd for D where
    D: DimName
[src]

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]

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

impl<D> DimMul for D where
    D: DimName
[src]

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]

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

impl<D> DimSub for D where
    D: DimName
[src]

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]

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

impl<D> DimDiv for D where
    D: DimName
[src]

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]

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

impl<D> DimMin for D where
    D: DimName
[src]

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]

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

impl<D> DimMax for D where
    D: DimName
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>,