isDiagonalType

Test if an input value is a BLAS diagonal type.

Usage

var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' );

isDiagonalType( value )

Tests if an input value is a BLAS diagonal type.

var bool = isDiagonalType( 'unit' );
// returns true

bool = isDiagonalType( 'non-unit' );
// returns true

Examples

var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' );

var bool = isDiagonalType( 'unit' );
// returns true

bool = isDiagonalType( 'non-unit' );
// returns true

bool = isDiagonalType( '' );
// returns false

bool = isDiagonalType( 'foo' );
// returns false
Did you find this page helpful?