45 #include "AbstractLinAlgPack/src/AbstractLinAlgPack_SpVectorClass.hpp"
66 itr != sv.end(); ++itr )
68 (*r)(itr->indice() + o) = itr->value();
void Vp_StV(DVectorSlice *vs_lhs, value_type alpha, const DVectorSlice &vs_rhs)
vs_lhs += alpha * vs_rhs (BLAS xAXPY)
void sign(const Vector &v, VectorMutable *z)
Compute the sign of each element in an input vector.
ptrdiff_t difference_type
void Vp_V_assert_sizes(size_type v_lhs_size, size_type v_rhs_size)
v_lhs += op v_rhs
void VopV_assert_sizes(size_type v_rhs1_size, size_type v_rhs2_size)
v_rhs1 op v_rhs2
SparseVectorSlice< SparseElement< index_type, value_type > > SpVectorSlice
DenseLinAlgPack::VectorSliceTmpl< value_type > DVectorSlice
void Vt_S(DVectorSlice *vs_lhs, value_type alpha)
vs_lhs *= alpha (BLAS xSCAL) (*** Note that alpha == 0.0 is handeled as vs_lhs = 0.0)
AbstractLinAlgPack::value_type value_type
Sparse storage element type.
void imp_sparse_bnd_diff(int sign, const SpVectorSlice &sv, BLAS_Cpp::Uplo uplo, const DVectorSlice &v, DVectorSlice *r)
Take the difference between a spare lower bound vector and a dense vector.
FortranTypes::f_dbl_prec value_type
Typedef for the value type of elements that is used for the library.