isMatrixTriangle
Test if an input value is a BLAS matrix triangle.
Usage
var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' );
isMatrixTriangle( value )
Tests if an input value
is a BLAS matrix triangle.
var bool = isMatrixTriangle( 'lower' );
// returns true
bool = isMatrixTriangle( 'upper' );
// returns true
Examples
var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' );
var bool = isMatrixTriangle( 'lower' );
// returns true
bool = isMatrixTriangle( 'upper' );
// returns true
bool = isMatrixTriangle( '' );
// returns false
bool = isMatrixTriangle( 'foo' );
// returns false