octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Project progress


From: marco Vassallo
Subject: Project progress
Date: Sat, 5 Oct 2013 14:18:00 +0200

Hi,

I was looking for a better way of dealing with the Sparse Matrix and I found 
that we can directly access the Matrix using 
the uBLAS.

For example:

                      dolfin::parameters["linear_algebra_backend"] = "uBLAS";
                      dolfin::Matrix A;
                      dolfin::assemble (A, a);
                      boost::tuples::tuple<const std::size_t*, const 
std::size_t*, const double*, int>  comp_matrix= A.data ();

where the method data is described here [1]

At this point what is the better way of building a SparseMatrix in a DLD 
function?

Thanks

Marco

[1]http://fenicsproject.org/documentation/dolfin/1.2.0/cpp/programmers-reference/la/GenericMatrix.html#GenericMatrix::dataC
                                       

reply via email to

[Prev in Thread] Current Thread [Next in Thread]