isLayout
Test if an input value is a BLAS memory layout.
Usage
var isLayout = require( '@stdlib/blas/base/assert/is-layout' );
isLayout( value )
Tests if an input value
is a BLAS memory layout.
var bool = isLayout( 'row-major' );
// returns true
bool = isLayout( 'column-major' );
// returns true
Examples
var isLayout = require( '@stdlib/blas/base/assert/is-layout' );
var bool = isLayout( 'row-major' );
// returns true
bool = isLayout( 'column-major' );
// returns true
bool = isLayout( '' );
// returns false
bool = isLayout( 'foo' );
// returns false