Boost logo

Ublas :

Subject: Re: [ublas] ublas sparse matrices and MKL sparse solvers
From: Milosz Hulboj (mhulboj_at_[hidden])
Date: 2010-09-15 02:38:20


On 13 September 2010 14:08, Ryo IGARASHI <rigarash_at_[hidden]> wrote:
> boost::numeric::ublas::compressed_matrix<T, boost::numeric::ublas::row_major>
>
> can be used with
>
> mkl_cspblas_dcsrgemv

Hi Ryo,

Thanks for the hint. This most likely got me on the right track - and
I found ways to access the underlying matrix storage:
#include <boost/numeric/bindings/traits/ublas_vector.hpp>
#include <boost/numeric/bindings/traits/ublas_sparse.hpp>
#include <boost/numeric/bindings/traits/ublas_matrix.hpp>

namespace traits = boost::numeric::bindings::traits;
traits::spmatrix_index1_storage(A);
traits::spmatrix_index2_storage(A);
traits::spmatrix_value_storage (A);

Regards,
Milosz