isColumnMajorString

Test whether an input value is the string representing column-major order.

Usage

var isColumnMajorString = require( '@stdlib/ndarray/base/assert/is-column-major-string' );

isColumnMajorString( value )

Test whether an input value is the string representing column-major order.

var bool = isColumnMajorString( 'column-major' );
// returns true

bool = isColumnMajorString( 'row-major' );
// returns false

Examples

var isColumnMajorString = require( '@stdlib/ndarray/base/assert/is-column-major-string' );

var bool = isColumnMajorString( 'column-major' );
// returns true

bool = isColumnMajorString( 'row-major' );
// returns false

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

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