42 #ifndef SP_VECTOR_OP_H
43 #define SP_VECTOR_OP_H
48 namespace AbstractLinAlgPack {
62 ,
size_type offset = 0,
bool add_zeros =
true );
77 ,
size_type offset = 0,
bool add_zeros =
true );
114 ?
DVectorSlice( &const_cast<SpVectorSlice&>(sv_rhs).begin()->value(), sv_rhs.
nz(), 2 )
118 #endif // SP_VECTOR_CLASS_H
SparseVector< SparseElement< index_type, value_type >, std::allocator< SparseElement< index_type, value_type > > > SpVector
RTOp_value_type value_type
Sparse Vector Slice class template.
RTOp_index_type size_type
DVectorSlice dense_view(SpVectorSlice &sv_rhs)
Create a dense representation of a sparse vector.
SparseVectorSlice< SparseElement< index_type, value_type > > SpVectorSlice
DenseLinAlgPack::VectorSliceTmpl< value_type > DVectorSlice
void add_elements(SpVector *sv_lhs, value_type alpha, const DVectorSlice &vs_rhs, size_type offset=0, bool add_zeros=true)
Add elements from a dense vector to a sparse vector.
size_type nz() const
Return the number of non-zero elements.