time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (685B)


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