Struct rin::math::default_allocator::DefaultAllocator[][src]

pub struct DefaultAllocator;

An allocator based on GenericArray and MatrixVec for statically-sized and dynamically-sized matrices respectively.

Trait Implementations

impl<N, R, C> Allocator<N, R, C> for DefaultAllocator where
    C: DimName,
    N: Scalar,
    R: DimName,
    <R as DimName>::Value: Mul<<C as DimName>::Value>,
    <<R as DimName>::Value as Mul<<C as DimName>::Value>>::Output: ArrayLength<N>, 
[src]

The type of buffer this allocator can instanciate.

Allocates a buffer with the given number of rows and columns without initializing its content.

Allocates a buffer initialized with the content of the given iterator.

impl<N, C> Allocator<N, Dynamic, C> for DefaultAllocator where
    C: Dim,
    N: Scalar
[src]

The type of buffer this allocator can instanciate.

Allocates a buffer with the given number of rows and columns without initializing its content.

Allocates a buffer initialized with the content of the given iterator.

impl<N, R> Allocator<N, R, Dynamic> for DefaultAllocator where
    N: Scalar,
    R: DimName
[src]

The type of buffer this allocator can instanciate.

Allocates a buffer with the given number of rows and columns without initializing its content.

Allocates a buffer initialized with the content of the given iterator.

impl<N, R1, R2> SameShapeVectorAllocator<N, R1, R2> for DefaultAllocator where
    N: Scalar,
    R1: Dim,
    R2: Dim,
    DefaultAllocator: Allocator<N, R1, U1>,
    DefaultAllocator: Allocator<N, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, U1>,
    ShapeConstraint: SameNumberOfRows<R1, R2>, 
[src]

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

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, RFrom, CFrom, CTo> Reallocator<N, RFrom, CFrom, Dynamic, CTo> for DefaultAllocator where
    CFrom: DimName,
    CTo: Dim,
    N: Scalar,
    RFrom: DimName,
    <RFrom as DimName>::Value: Mul<<CFrom as DimName>::Value>,
    <<RFrom as DimName>::Value as Mul<<CFrom as DimName>::Value>>::Output: ArrayLength<N>, 
[src]

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, RFrom, CTo> Reallocator<N, RFrom, Dynamic, Dynamic, CTo> for DefaultAllocator where
    CTo: Dim,
    N: Scalar,
    RFrom: DimName
[src]

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, RFrom, CFrom, RTo, CTo> Reallocator<N, RFrom, CFrom, RTo, CTo> for DefaultAllocator where
    CFrom: Dim,
    CTo: DimName,
    N: Scalar,
    RFrom: Dim,
    RTo: DimName,
    DefaultAllocator: Allocator<N, RFrom, CFrom>,
    <RTo as DimName>::Value: Mul<<CTo as DimName>::Value>,
    <<RTo as DimName>::Value as Mul<<CTo as DimName>::Value>>::Output: ArrayLength<N>, 
[src]

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, CFrom, RTo> Reallocator<N, Dynamic, CFrom, RTo, Dynamic> for DefaultAllocator where
    CFrom: Dim,
    N: Scalar,
    RTo: DimName
[src]

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, CFrom, CTo> Reallocator<N, Dynamic, CFrom, Dynamic, CTo> for DefaultAllocator where
    CFrom: Dim,
    CTo: Dim,
    N: Scalar
[src]

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, RFrom, CFrom, RTo> Reallocator<N, RFrom, CFrom, RTo, Dynamic> for DefaultAllocator where
    CFrom: DimName,
    N: Scalar,
    RFrom: DimName,
    RTo: DimName,
    <RFrom as DimName>::Value: Mul<<CFrom as DimName>::Value>,
    <<RFrom as DimName>::Value as Mul<<CFrom as DimName>::Value>>::Output: ArrayLength<N>, 
[src]

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, R1, R2, C1, C2> SameShapeAllocator<N, R1, C1, R2, C2> for DefaultAllocator where
    C1: Dim,
    C2: Dim,
    N: Scalar,
    R1: Dim,
    R2: Dim,
    DefaultAllocator: Allocator<N, R1, C1>,
    DefaultAllocator: Allocator<N, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>,
    ShapeConstraint: SameNumberOfRows<R1, R2>,
    ShapeConstraint: SameNumberOfColumns<C1, C2>, 
[src]

Auto Trait Implementations

impl Send for DefaultAllocator

impl Sync for DefaultAllocator