[petsc-users] ublas sparse matrix bindings?

Matthew Knepley knepley at gmail.com
Tue Jun 29 08:46:20 CDT 2010


On Tue, Jun 29, 2010 at 8:12 AM, Luke Bloy <luke.bloy at gmail.com> wrote:

> Hi,
>
> In one of my projects I use the ublas compressed row major format for
> storing sparse matricies. One of the reasons i chose this format was
> interoperability with other packages. I'd like to use some petsc and slepc
> functionality in my project but I haven't found any bindings between the 2
> formats.
>
> It seems like MatCreateSeqAIJWithArrays is the optimal way to link the two
> types of objects but i thought I would see if anyone has done this and could
> point me in the most optimal direction.
>

I think that sounds right. As long as you can get the offsets, cols, and
values arrays, it is easy.

   Matt


> Thanks,
> Luke
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100629/cf36124a/attachment.htm>


More information about the petsc-users mailing list