is_valid_element Function

private function is_valid_element(element) result(is_valid)

Checks if a given element is valid in order to add it to the matrix. Returns .true. if the element is of type real or complex, .false. otherwise.

Arguments

Type IntentOptional Attributes Name
class(*), intent(in) :: element

Matrix element that is to be added

Return Value logical