← Back to team overview

dolfin team mailing list archive

[Bug 41] Matrix class assignment option is not working

 

http://www.fenics.org/cgi-bin/bugzilla/show_bug.cgi?id=41





------- Comment #1 from garth@xxxxxxxxxx  2008-06-27 11:20 -------
I don't think that we should add this functionality. If we add it, it will be
used inappropriately.

Best approach is to insert arrays into a matrix. For element-wise insertion,
use a uBlasMatrix (uBlasDenseMatrix or uBlasSparseMatrix), e.g.

uBlasDenseMatrix A(10, 10);
ublas_dense_matrix& AA = A.mat(); 

for(uint i = 0; i < 10; i++)
  for(uint j = 0; j < 10; j++)
    AA(i, j) = 1.0;


-- 
Configure bugmail: http://www.fenics.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.