@stdlib/ndarray-base-assert-is-column-major-string
v0.1.0
Published
Test whether an input value is the string representing column-major order.
Readme
isColumnMajorString
Test whether an input value is the string representing column-major order.
Installation
npm install @stdlib/ndarray-base-assert-is-column-major-stringUsage
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 falseExamples
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 falseNotice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
