-
I cannot find a way to fill a larger matrix ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
We don't have a good high-performance interface for this yet, but you can start off by using the |
Beta Was this translation helpful? Give feedback.
We don't have a good high-performance interface for this yet, but you can start off by using the
gko::matrix_assembly_data
type and itsadd_data
member function, which is meant for exactly this FEM-like matrix assembly use case.matrix_assembly_data
can be passed directly to anymatrix->read(...)
function of the correct value and index type :) Note that this is meant for assembling a matrix once - if your matrix entries change repeatedly (e.g. nonlinear problem), I'd recommend modifying the entries in-place using the existing column index information in the matrix types.