time-to-botec

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

repl.txt (821B)


      1 
      2 {{alias}}( shape, strides, offset )
      3     Returns a boolean indicating if an array is contiguous.
      4 
      5     An array is considered contiguous if the memory address of each array
      6     element is adjacent to the memory address of the next array element.
      7 
      8     Parameters
      9     ----------
     10     shape: ArrayLike
     11         Array shape.
     12 
     13     strides: ArrayLike
     14         Stride array.
     15 
     16     offset: integer
     17         Location of the first indexed value based on the stride array.
     18 
     19     Returns
     20     -------
     21     bool: boolean
     22         Boolean indicating if an array is contiguous.
     23 
     24     Examples
     25     --------
     26     > var d = [ 2, 3, 10 ];
     27     > var s = [ 30, 10, 1 ];
     28     > var o = 0;
     29     > var bool = {{alias}}( d, s, o )
     30     true
     31     > d = [ 10 ];
     32     > s = [ 3 ];
     33     > o = 0;
     34     > bool = {{alias}}( d, s, o )
     35     false
     36 
     37     See Also
     38     --------
     39