time-to-botec/js/node_modules/@stdlib/assert/is-centrosymmetric-matrix/docs/repl.txt

31 lines
633 B
Plaintext
Raw Normal View History

{{alias}}( value )
Tests if a value is a matrix which is symmetric about its center.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether a value is a centrosymmetric matrix.
Examples
--------
> var buf = [ 2, 1, 1, 2 ];
> var M = {{alias:@stdlib/ndarray/ctor}}( 'generic', buf, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' );
> var bool = {{alias}}( M )
true
> bool = {{alias}}( [ 1, 2, 3, 4 ] )
false
> bool = {{alias}}( 3.14 )
false
> bool = {{alias}}( {} )
false
See Also
--------