pub unsafe fn new_view_mut_raw(n: usize,
                                   nnz: usize,
                                   indices: *const I,
                                   data: *mut N,
                                  ) -> CsVecViewMutI<'a, N, I> {
        CsVecBase {
            dim: n,
            indices: slice::from_raw_parts(indices, nnz),
            data: slice::from_raw_parts_mut(data, nnz),
        }
    }
/// Create a borrowed CsVec over slice data without checking the structure
/// This is unsafe because algorithms are free to assume
/// that properties guaranteed by check_structure are enforced, and
/// because the lifetime of the pointers is unconstrained.
/// For instance, non out-of-bounds indices can be relied upon to
/// perform unchecked slice access.
/// For safety, lifetime of the resulting vector should match the lifetime
/// of the input pointers.
Create a borrowed CsVec over slice data without checking the structure
This is unsafe because algorithms are free to assume
that properties guaranteed by check_structure are enforced, and
because the lifetime of the pointers is unconstrained.
For instance, non out-of-bounds indices can be relied upon to
perform unchecked slice access.
For safety, lifetime of the resulting vector should match the lifetime
of the input pointers.
Create a borrowed CsVec over slice data without checking the structure This is unsafe because algorithms are free to assume that properties guaranteed by check_structure are enforced and because the lifetime of the pointers is unconstrained . For instance non out - of - bounds indices can be relied upon to perform unchecked slice access . For safety lifetime of the resulting vector should match the lifetime of the input pointers .
pub unsafe fn new_view_mut_raw(n: usize,
                                   nnz: usize,
                                   indices: *const I,
                                   data: *mut N,
                                  ) -> CsVecViewMutI<'a, N, I> {
        CsVecBase {
            dim: n,
            indices: slice::from_raw_parts(indices, nnz),
            data: slice::from_raw_parts_mut(data, nnz),
        }
    }
pub unsafe fn new_view_mut_raw ( n : usize , nnz : usize , indices : * const I , data : * mut N , ) -> CsVecViewMutI < ' a , N , I > { CsVecBase { dim : n , indices : slice :: from_raw_parts ( indices , nnz ) , data : slice :: from_raw_parts_mut ( data , nnz ) , } }
Create a borrowed CsVec over slice data without checking the structure
This is unsafe because algorithms are free to assume
that properties guaranteed by check_structure are enforced, and
because the lifetime of the pointers is unconstrained.
Create a borrowed CsVec over slice data without checking the structure This is unsafe because algorithms are free to assume that properties guaranteed by check_structure are enforced and because the lifetime of the pointers is unconstrained .
n
usize
nnz
usize
indices
*const I
data
*mut N
n
usize
nnz
usize
indices
*const I
data
*mut N