pub fn from_raw_parts(
        num_rows: usize,
        num_cols: usize,
        block_size: usize,
        attributes: SparseAttributes,
        indices: &mut [i32],
        offsets: &mut [i64],
    ) -> Self {
        Self {
            inner: ffi::SparseMatrixStructure {
                rowCount: i32::try_from(num_rows).unwrap(),
                columnCount: i32::try_from(num_cols).unwrap(),
                columnStarts: offsets.as_mut_ptr(),
                rowIndices: indices.as_mut_ptr(),
                attributes: attributes.with_owned(false).into(),
                blockSize: u8::try_from(block_size).unwrap(),
            },
            phantom: PhantomData,
        }
    }
/// Create a sparse BCSC matrix structure from raw indices and offsets.
Create a sparse BCSC matrix structure from raw indices and offsets.
Create a sparse BCSC matrix structure from raw indices and offsets .
pub fn from_raw_parts(
        num_rows: usize,
        num_cols: usize,
        block_size: usize,
        attributes: SparseAttributes,
        indices: &mut [i32],
        offsets: &mut [i64],
    ) -> Self {
        Self {
            inner: ffi::SparseMatrixStructure {
                rowCount: i32::try_from(num_rows).unwrap(),
                columnCount: i32::try_from(num_cols).unwrap(),
                columnStarts: offsets.as_mut_ptr(),
                rowIndices: indices.as_mut_ptr(),
                attributes: attributes.with_owned(false).into(),
                blockSize: u8::try_from(block_size).unwrap(),
            },
            phantom: PhantomData,
        }
    }
pub fn from_raw_parts ( num_rows : usize , num_cols : usize , block_size : usize , attributes : SparseAttributes , indices : & mut [ i32 ] , offsets : & mut [ i64 ] , ) -> Self { Self { inner : ffi :: SparseMatrixStructure { rowCount : i32 :: try_from ( num_rows ) . unwrap ( ) , columnCount : i32 :: try_from ( num_cols ) . unwrap ( ) , columnStarts : offsets . as_mut_ptr ( ) , rowIndices : indices . as_mut_ptr ( ) , attributes : attributes . with_owned ( false ) . into ( ) , blockSize : u8 :: try_from ( block_size ) . unwrap ( ) , } , phantom : PhantomData , } }
Create a sparse BCSC matrix structure from raw indices and offsets.
Create a sparse BCSC matrix structure from raw indices and offsets .
num_rows
usize
num_cols
usize
block_size
usize
attributes
SparseAttributes
indices
&mut [i32]
offsets
&mut [i64]
num_rows
usize
num_cols
usize
block_size
usize
attributes
SparseAttributes
indices
&mut [i32]
offsets
&mut [i64]