isTransposeOperation

Test if an input value is a BLAS transpose operation.

Usage

var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' );

isTransposeOperation( value )

Tests if an input value is a BLAS transpose operation.

var bool = isTransposeOperation( 'transpose' );
// returns true

bool = isTransposeOperation( 'conjugate-transpose' );
// returns true

Examples

var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' );

var bool = isTransposeOperation( 'transpose' );
// returns true

bool = isTransposeOperation( 'conjugate-transpose' );
// returns true

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

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