time-to-botec

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

repl.txt (798B)


      1 
      2 {{alias}}( strides )
      3     Returns the order of a multidimensional array based on a provided stride
      4     array.
      5 
      6     The function returns one of the following values:
      7 
      8     - 1: the array is in row-major order.
      9     - 2: the array is in column-major order.
     10     - 3: the array is in both row-major and column-major order.
     11     - 0: the array is in neither row-major nor column-major order.
     12 
     13     Parameters
     14     ----------
     15     strides: ArrayLike
     16         Stride array.
     17 
     18     Returns
     19     -------
     20     order: integer
     21         Order.
     22 
     23     Examples
     24     --------
     25     > var s = [ 30, -10, 1 ];
     26     > var out = {{alias}}( s )
     27     1
     28     > s = [ 1, -10, 30 ];
     29     > out = {{alias}}( s )
     30     2
     31     > s = [ 10 ];
     32     > out = {{alias}}( s )
     33     3
     34     > s = [];
     35     > out = {{alias}}( s )
     36     0
     37 
     38     See Also
     39     --------
     40