1 #ifndef _utl_SparseMatrixVectorOp_h_
2 #define _utl_SparseMatrixVectorOp_h_
14 #include <boost/lambda/lambda.hpp>
16 #include <utl/SparseVector.h>
17 #include <utl/SparseMatrix.h>
25 template<
typename T,
typename U>
26 class plain_return_type_2<
27 arithmetic_action<multiply_action>,
35 arithmetic_action<multiply_action>,
52 template<
typename T,
typename U>
53 typename boost::lambda::return_type_2<
54 boost::lambda::arithmetic_action<boost::lambda::multiply_action>,
60 typedef typename boost::lambda::return_type_2<
61 boost::lambda::arithmetic_action<boost::lambda::multiply_action>,
70 const unsigned int j = mIt.GetColumn();
73 result(mIt.GetRow()) += mIt() * aj();
Sparse container class for vectorial data.
Sparse container class for matrix data.
Iterator Find(const IndexType index)
return_type_2< arithmetic_action< multiply_action >, T, U >::type res_type
Vector operator*(const double d, const Vector &v)
utl::SparseVector< res_type > type