← Back to team overview

dolfin team mailing list archive

Re: Matrix initialization broken in Python?

 


On 17/01/11 16:28, Anders Logg wrote:
> The following doesn't seem to work in Python any longer:
> 
> A = Matrix(10, 10)
> 
> Is matrix initialization broken?
>

Probably not broken - more like

  A = Matrix(10, 10)

is not supported. Since a Matrix is in general sparse, it doesn't make
sense to initialise it as above (some backends even insist on the
sparsity being defined at construction).

Garth

> --
> Anders
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp




Follow ups

References