dimensions_are_valid Function

private pure function dimensions_are_valid(rows, cols)

Checks if the given matrix dimensions are valid. For now, we only accept square matrices. Returns .true. if rows equals cols, .false. otherwise.

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: rows

number of rows in the original matrix

integer, intent(in) :: cols

number of columns in the original matrix

Return Value logical


Contents

None