[petsc-users] ublas sparse matrix bindings?
Umut Tabak
u.tabak at tudelft.nl
Tue Jun 29 10:21:48 CDT 2010
Luke Bloy wrote:
> Thanks for the response. Thats unfortunate as i use many different
> types of matrices that i would like use with petsc.
>
> I'm not much of a c++ whiz,
me neither ;)
> but i'm curious if something like an adaptor would be possible that
> would make a
> (float *) behave like a (petscscalar *) as far as petsc was concerned?
> Thoughts?
I am not sure if these kinds of pointer conversions are safe if you do
not know that what 'petscscalar *' really is, you might check the docs.
More information about the petsc-users
mailing list