new_matrix Function

public pure function new_matrix(nb_rows, label) result(matrix)

Constructor for a new matrix matrix with a given number of rows. Allocates and initialises the matrix datatype.

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: nb_rows

number of rows in the matrix

character, intent(in), optional :: label

label of the matrix

Return Value type(matrix_t)

matrix datatype with rows/columns in a linked list


Contents

None