matrix Interface

public interface matrix

Construct a matrix


Contents


Module Procedures

private elemental function matrix_ctr_nk(n, k) result(A)

Create a new -by- matrix by passing the number of rows and the number of columns

Arguments

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

The number of rows in

integer, intent(in) :: k

The number of cols in

Return Value type(matrix)

private elemental function matrix_ctr_nk_int(n, k, val) result(A)

Create a new -by- matrix by passing the number of rows and the number of columns

Arguments

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

The number of rows in

integer, intent(in) :: k

The number of cols in

integer, intent(in) :: val

Return Value type(matrix)

private elemental function matrix_ctr_nk_r32(n, k, val) result(A)

Create a new -by- matrix by passing the number of rows and the number of columns

Arguments

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

The number of rows in

integer, intent(in) :: k

The number of cols in

real(kind=real32), intent(in) :: val

Return Value type(matrix)

private elemental function matrix_ctr_nk_r64(n, k, val) result(A)

Create a new -by- matrix by passing the number of rows and the number of columns

Arguments

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

The number of rows in

integer, intent(in) :: k

The number of cols in

real(kind=real64), intent(in) :: val

Return Value type(matrix)

private pure function matrix_ctr_matrix(m2) result(A)

Create a new -by- matrix by passing a rank2 integer array

Arguments

Type IntentOptional AttributesName
class(matrix), intent(in) :: m2

Return Value type(matrix)

private pure function matrix_ctr_int(array) result(A)

Create a new -by- matrix by passing a rank2 integer array

Arguments

Type IntentOptional AttributesName
integer, intent(in), dimension(:,:):: array

Return Value type(matrix)

private pure function matrix_ctr_r32(array) result(A)

Create a new -by- matrix by passing a rank2 integer array

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in), dimension(:,:):: array

Return Value type(matrix)

private pure function matrix_ctr_r64(array) result(A)

Create a new -by- matrix by passing a rank2 integer array

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in), dimension(:,:):: array

Return Value type(matrix)

private pure function matrix_ctr_rank1_int(array, n, k) result(A)

Construct a -by- given a rank1 array of ints

Arguments

Type IntentOptional AttributesName
integer, intent(in), dimension(:):: array
integer, intent(in) :: n
integer, intent(in) :: k

Return Value type(matrix)

private pure function matrix_ctr_rank1_r32(array, n, k) result(A)

Construct a -by- given a rank1 array of ints

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in), dimension(:):: array
integer, intent(in) :: n
integer, intent(in) :: k

Return Value type(matrix)

private pure function matrix_ctr_rank1_r64(array, n, k) result(A)

Construct a -by- given a rank1 array of ints

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in), dimension(:):: array
integer, intent(in) :: n
integer, intent(in) :: k

Return Value type(matrix)