time-to-botec

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

repl.txt (821B)


      1 
      2 {{alias}}( shape, strides, offset )
      3     Computes the minimum linear index in an underlying data buffer accessible to
      4     an array view.
      5 
      6     Parameters
      7     ----------
      8     shape: ArrayLike
      9         Array shape.
     10 
     11     strides: ArrayLike
     12         Stride array.
     13 
     14     offset: integer
     15         Location of the first indexed value based on the stride array.
     16 
     17     Returns
     18     -------
     19     out: integer
     20         Minimum linear index in an underlying data buffer accessible to an array
     21         view.
     22 
     23     Examples
     24     --------
     25     > var d = [ 2, 3, 10 ];
     26     > var s = [ 30, -10, 1 ];
     27     > var o = 40;
     28     > var out = {{alias}}( d, s, o )
     29     20
     30     > s = [ 30, 10, 1 ];
     31     > o = 20;
     32     > out = {{alias}}( d, s, o )
     33     20
     34     > s = [ -30, -10, -1 ];
     35     > o = 79;
     36     > out = {{alias}}( d, s, o )
     37     20
     38 
     39     See Also
     40     --------
     41