add_element Subroutine

private subroutine add_element(this, row, column, element)

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.

Arguments

TypeIntentOptionalAttributesName
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


Contents

None