← Back to team overview

dolfin team mailing list archive

Re: array(), getRow() etc

 

On Mon, Jul 03, 2006 at 04:12:12PM +0200, Garth N. Wells wrote:

> Anyone know anything about controlling template instantiation? I'd like
> to compile an object files for a set of uBlasMatrix types, e.g.
> 
>   class uBlasDenseMatrix : uBlasMatrix<ublas_matrix> {};
> 
> Garth

It looks to me that this should be straightforward. The following
should compile

uBlasDenseMatrix.h:

    class uBlasDenseMatrix : public uBlasMatrix<ublas_dense_matrix>
    {
        void foo();
    }

uBlasDenseMatrix.cpp:

    void uBlasDenseMatrix::foo() {}

Or is that not the problem?

/Anders


Follow ups

References