time-to-botec

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

repl.txt (569B)


      1 
      2 {{alias}}( len, shape )
      3     Returns a boolean indicating if a buffer length is compatible with a
      4     provided shape array.
      5 
      6     Parameters
      7     ----------
      8     len: integer
      9         Buffer length (number of elements).
     10 
     11     shape: ArrayLike
     12         Array shape.
     13 
     14     Returns
     15     -------
     16     bool: boolean
     17         Boolean indicating if a buffer length is compatible with a provided
     18         shape array.
     19 
     20     Examples
     21     --------
     22     > var d = [ 2, 3, 10 ];
     23     > var bool = {{alias}}( 60, d )
     24     true
     25     > bool = {{alias}}( 30, d )
     26     false
     27 
     28     See Also
     29     --------
     30