MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / mat_insert

Function mat_insert

python/test/unit/fem/test_assembler.py:1507–1511  ·  view source on GitHub ↗
(rows, cols, vals)

Source from the content-addressed store, hash-verified

1505 vdata = []
1506
1507 def mat_insert(rows, cols, vals):
1508 vdata.append(list(vals))
1509 rdata.append(list(np.repeat(rows, len(cols))))
1510 cdata.append(list(np.tile(cols, len(rows))))
1511 return 0
1512
1513 _cpp.fem.assemble_matrix(mat_insert, a_form._cpp_object, [])
1514 vdata = np.array(vdata).flatten()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected