time-to-botec/squiggle/node_modules/@stdlib/assert/is-persymmetric-matrix/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

34 lines
685 B
Plaintext

{{alias}}( value )
Tests if a value is a square matrix which is symmetric about its
antidiagonal.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating whether a value is a persymmetric matrix.
Examples
--------
> var buf = [ 1, 2, 3, 1 ];
> var sh = [ 2, 2 ];
> var st = [ 2, 1 ];
> var M = {{alias:@stdlib/ndarray/ctor}}( 'generic', buf, sh, st, 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
--------