time-to-botec

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

repl.txt (745B)


      1 
      2 {{alias}}( shape, strides, offset )
      3     Returns a boolean indicating if an array is compatible with a single memory
      4     segment.
      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     bool: boolean
     20         Boolean indicating if an array is compatible with a single memory
     21         segment.
     22 
     23     Examples
     24     --------
     25     > var d = [ 2, 3, 10 ];
     26     > var s = [ 30, -10, 1 ];
     27     > var o = 20;
     28     > var bool = {{alias}}( d, s, o )
     29     true
     30     > d = [ 10 ];
     31     > s = [ 3 ];
     32     > o = 0;
     33     > bool = {{alias}}( d, s, o )
     34     false
     35 
     36     See Also
     37     --------
     38