addRow Module Subroutine

pure module subroutine addRow(this, rowIndex, columnIndices, values)

Add sparse row vector to data Object and initialize its values to 0, unless value vector is supplied

Arguments

Type IntentOptional Attributes Name
class(SparseRowData), intent(inout) :: this
integer(kind=ik), intent(in) :: rowIndex

Row index of added vector

integer(kind=ik), intent(in), dimension(:) :: columnIndices

Column indices of nonzeros in row

real(kind=rk), intent(in), optional, dimension(:) :: values

Values of nonzeros in row