Adds a given element at a certain (row, column) position to the matrix datastructure. Elements that are zero are not added, sanity checks are done on the row and column indices.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(matrix_t), | intent(inout) | :: | this | type instance |
||
integer, | intent(in) | :: | row | row position of the element |
||
integer, | intent(in) | :: | column | column position of the element |
||
class(*), | intent(in) | :: | element | polymorphic variable to add to the matrix |