Matrix_ldr Derived Type

type, public :: Matrix_ldr

A datatype for storing a dense matrix.


Contents


Components

TypeVisibility AttributesNameInitial
real(kind=NTREAL), public, DIMENSION(:,:), ALLOCATABLE:: DATA

values of the matrix.

integer, public :: rows

Matrix dimension: rows.

integer, public :: columns

Matrix dimension: columns.


Constructor

public interface Matrix_ldr

  • private pure function ConstructEmptyMatrix_ldr(rows, columns) result(this)

    Construct an empty dense matrix with a set number of rows and columns

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in) :: rows

    Rows of the matrix

    integer, intent(in) :: columns

    Columns of the matrix.

    Return Value type(Matrix_ldr)

    The matrix to construct.