pub fn with_capacity<S: Size>(size: S, variant: Variant, capacity: usize) -> Self {
        let (rows, columns) = size.dimensions();
        let offset = match variant {
            Variant::Column => vec![0; columns + 1],
            Variant::Row => vec![0; rows + 1],
        };
        new!(
            rows,
            columns,
            0,
            variant,
            Vec::with_capacity(capacity),
            Vec::with_capacity(capacity),
            offset
        )
    }
/// Create a zero matrix with a specific capacity.
Create a zero matrix with a specific capacity.
Create a zero matrix with a specific capacity .
pub fn with_capacity<S: Size>(size: S, variant: Variant, capacity: usize) -> Self {
        let (rows, columns) = size.dimensions();
        let offset = match variant {
            Variant::Column => vec![0; columns + 1],
            Variant::Row => vec![0; rows + 1],
        };
        new!(
            rows,
            columns,
            0,
            variant,
            Vec::with_capacity(capacity),
            Vec::with_capacity(capacity),
            offset
        )
    }
pub fn with_capacity < S : Size > ( size : S , variant : Variant , capacity : usize ) -> Self { let ( rows , columns ) = size . dimensions ( ) ; let offset = match variant { Variant :: Column => vec ! [ 0 columns 1 ] , Variant :: Row => vec ! [ 0 rows 1 ] , } ; new ! ( rows columns 0 variant Vec with_capacity ( capacity ) Vec with_capacity ( capacity ) offset ) }
Create a zero matrix with a specific capacity.
Create a zero matrix with a specific capacity .
size
S
variant
Variant
capacity
usize
size
S
variant
Variant
capacity
usize