On Sat, 4 Jul 2009, Anthony Han wrote: > I'm a new user of libMesh. In my program, I want to copy data from a > SparseMatrix into a dense matrix.
Are you sure? That statement, like "I want to invert a matrix" or "I want to score some heroin", is probably always sincerely spoken but probably rarely true in the long run. > How can I realize it? > I notice that the SparseMatrix member function 'operator()()' may > throw an exception when trying to access an entry that does not > exist. >From sparse_matrix.h: "In case you want a function that returns zero instead (for entries that are not in the sparsity pattern of the matrix), use the el function." Call matrix.el(a,b) instead of matrix(a,b). --- Roy ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
