dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #23076
Re: [Question #156844]: How to initialize a matrix without a dofmap?
Question #156844 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/156844
Status: Open => Answered
Garth Wells proposed the following answer:
On May 10 2011, Kent-Andre Mardal wrote:
>New question #156844 on DOLFIN:
>https://answers.launchpad.net/dolfin/+question/156844
>
>
> How should I initialize a matrix without a dofmap?
You can create a Matrix,
Matrix A
but it must be initialised using a sparsity pattern. Sparse matrices are
not properly defined by dimensions only, some backends do not support this,
and using dimensions is basically useless in parallel,
If you want a dense matrix, or one that does not require a sparsity
pattern, you can use a backend that supports this, e.g. uBLASMatrix.
> It seems that the
> resize function is taken away. Also the read function is removed.
>
Which 'read' function are you referring to? I don't think that there was
ever a GenericMatrix::read function.
Garth
>Kent
>
>
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.