new_banded_matrix Function

public function new_banded_matrix(rows, cols, subdiags, superdiags) result(matrix)

Constructor for a new banded matrix with a given number of rows, columns, subdiagonals and superdiagonals. Allocates and initialises the datatype.

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: rows

number of rows

integer, intent(in) :: cols

number of columns

integer, intent(in) :: subdiags

number of subdiagonals

integer, intent(in) :: superdiags

number of superdiagonals

Return Value type(banded_matrix_t)

banded matrix datatype


Contents

None