resolve
Return the operation side string associated with a supported BLAS operation side value.
Usage
var resolve = require( '@stdlib/blas/base/operation-side-resolve-str' );
resolve( operation )
Returns the operation side string associated with a BLAS operation side value.
var str2enum = require( '@stdlib/blas/base/operation-side-str2enum' );
var v = resolve( 'left' );
// returns 'left'
v = resolve( str2enum( 'left' ) );
// returns 'left'
If unable to resolve a operation side string, the function returns null
.
var v = resolve( 'beep' );
// returns null
Examples
var str2enum = require( '@stdlib/blas/base/operation-side-str2enum' );
var resolve = require( '@stdlib/blas/base/operation-side-resolve-str' );
var v = resolve( str2enum( 'left' ) );
// returns 'left'
v = resolve( str2enum( 'right' ) );
// returns 'right'