dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #07934
Re: uBlasFactory
On Sun, May 18, 2008 at 12:42:21PM +0100, Garth N. Wells wrote:
>
>
> Anders Logg wrote:
> > On Sun, May 18, 2008 at 12:09:04PM +0100, Garth N. Wells wrote:
> >> The uBlasFactory class doesn't look right to me. It appears to be tied
> >> to ublas_sparse_matrix, whereas uBlasMatrix allows the user to choose
> >> the matrix type. Is there a way around this?
> >>
> >> Garth
> >
> > Looks like we just need to template the factory and make some minor
> > changes in uBlasMatrix.cpp?
> >
>
> Yes, but it has some knock-on effects on some other classes which I
> don't yet fully understand, e.g. uBlasFactory.
>
> Garth
Another option would be to have two different uBlas factories, one for
each matrix type.
--
Anders
Follow ups
References