enum2str
Return the BLAS memory layout string associated with a BLAS memory layout enumeration constant.
Usage
var enum2str = require( '@stdlib/blas/base/layout-enum2str' );
enum2str( layout )
Returns the BLAS memory layout string associated with a BLAS memory layout enumeration constant.
var str2enum = require( '@stdlib/blas/base/layout-str2enum' );
var v = str2enum( 'row-major' );
// returns <number>
var s = enum2str( v );
// returns 'row-major'
If unable to resolve a layout string, the function returns null
.
var v = enum2str( -999999999 );
// returns null
Examples
var str2enum = require( '@stdlib/blas/base/layout-str2enum' );
var enum2str = require( '@stdlib/blas/base/layout-enum2str' );
var str = enum2str( str2enum( 'row-major' ) );
// returns 'row-major'
str = enum2str( str2enum( 'column-major' ) );
// returns 'column-major'