resolve

Return the layout string associated with a supported BLAS memory layout value.

Usage

var resolve = require( '@stdlib/blas/base/layout-resolve-str' );

resolve( layout )

Returns the layout string associated with a BLAS memory layout value.

var str2enum = require( '@stdlib/blas/base/layout-str2enum' );

var v = resolve( 'row-major' );
// returns 'row-major'

v = resolve( str2enum( 'row-major' ) );
// returns 'row-major'

If unable to resolve a layout string, the function returns null.

var v = resolve( 'beep' );
// returns null

Examples

var str2enum = require( '@stdlib/blas/base/layout-str2enum' );
var resolve = require( '@stdlib/blas/base/layout-resolve-str' );

var v = resolve( str2enum( 'row-major' ) );
// returns 'row-major'

v = resolve( str2enum( 'column-major' ) );
// returns 'column-major'
Did you find this page helpful?