pub fn new_view(
        n: usize,
        indices: &'a [I],
        data: &'a [N])
    -> Result<CsVecViewI<'a, N, I>, SprsError> {
        let v = CsVecViewI {
            dim: n,
            indices: indices,
            data: data,
        };
        v.check_structure().and(Ok(v))
    }
/// Create a borrowed CsVec over slice data.
Create a borrowed CsVec over slice data.
Create a borrowed CsVec over slice data .
pub fn new_view(
        n: usize,
        indices: &'a [I],
        data: &'a [N])
    -> Result<CsVecViewI<'a, N, I>, SprsError> {
        let v = CsVecViewI {
            dim: n,
            indices: indices,
            data: data,
        };
        v.check_structure().and(Ok(v))
    }
pub fn new_view ( n : usize , indices : & ' a [ I ] , data : & ' a [ N ] ) -> Result < CsVecViewI < ' a , N , I > , SprsError > { let v = CsVecViewI { dim : n , indices : indices , data : data , } ; v . check_structure ( ) . and ( Ok ( v ) ) }
Create a borrowed CsVec over slice data.
Create a borrowed CsVec over slice data .
n
usize
indices
&'a [I]
data
&'a [N]
n
usize
indices
&'a [I]
data
&'a [N]