get_single_col_logical Function

private pure function get_single_col_logical(this, i) result(val)

Type Bound

column

Arguments

Type IntentOptional Attributes Name
class(column), intent(in) :: this
integer, intent(in) :: i

Return Value logical


Source Code

    pure function get_single_col_logical(this, i) result(val)
        class(column), intent(in) :: this
        integer, intent(in) :: i
        logical :: val

        if (this % dtype /= LOGICAL_NUM) error stop 'column is not of type logical'

        if (i > this % n) error stop 'out of bounds attempt on data column'

        val = this % lcol(i)

    end function get_single_col_logical