repl.txt (633B)
1 2 {{alias}}( value ) 3 Tests if a value is a matrix which is symmetric about its center. 4 5 Parameters 6 ---------- 7 value: any 8 Value to test. 9 10 Returns 11 ------- 12 bool: boolean 13 Boolean indicating whether a value is a centrosymmetric matrix. 14 15 Examples 16 -------- 17 > var buf = [ 2, 1, 1, 2 ]; 18 > var M = {{alias:@stdlib/ndarray/ctor}}( 'generic', buf, [ 2, 2 ], [ 2, 1 ], 0, 'row-major' ); 19 > var bool = {{alias}}( M ) 20 true 21 > bool = {{alias}}( [ 1, 2, 3, 4 ] ) 22 false 23 > bool = {{alias}}( 3.14 ) 24 false 25 > bool = {{alias}}( {} ) 26 false 27 28 See Also 29 -------- 30