44 #include "AbstractLinAlgPack_sparse_bounds_diff.hpp"
45 #include "AbstractLinAlgPack/src/AbstractLinAlgPack_SpVectorClass.hpp"
46 #include "AbstractLinAlgPack_LinAlgOpPackHack.hpp"
47 #include "DenseLinAlgPack_AssertOp.hpp"
49 void AbstractLinAlgPack::imp_sparse_bnd_diff(
51 ,
const SpVectorSlice &sv
53 ,
const DVectorSlice &v
57 DenseLinAlgPack::Vp_V_assert_sizes(r->size(),sv.size());
58 DenseLinAlgPack::VopV_assert_sizes(sv.size(),v.size());
60 typedef DenseLinAlgPack::value_type value_type;
62 inf = std::numeric_limits<value_type>::max();
63 *r = ( uplo == BLAS_Cpp::upper ? inf : -inf );
66 itr != sv.end(); ++itr )
68 (*r)(itr->indice() + o) = itr->value();
void sign(const Vector &v, VectorMutable *z)
Compute the sign of each element in an input vector.
void Vt_S(VectorMutable *v_lhs, const value_type &alpha)
v_lhs *= alpha
void Vp_StV(VectorMutable *v_lhs, const value_type &alpha, const Vector &v_rhs)
v_lhs = alpha * v_rhs + v_lhs
ptrdiff_t difference_type
Sparse storage element type.