time-to-botec

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

repl.txt (1060B)


      1 
      2 {{alias}}( dtype, size )
      3     Returns a zero-filled contiguous linear ndarray data buffer.
      4 
      5     The function supports the following data types:
      6 
      7     - binary: binary.
      8     - complex64: single-precision complex floating-point numbers.
      9     - complex128: double-precision complex floating-point numbers.
     10     - float32: single-precision floating-point numbers.
     11     - float64: double-precision floating-point numbers.
     12     - generic: values of any type.
     13     - int16: signed 16-bit integers.
     14     - int32: signed 32-bit integers.
     15     - int8: signed 8-bit integers.
     16     - uint16: unsigned 16-bit integers.
     17     - uint32: unsigned 32-bit integers.
     18     - uint8: unsigned 8-bit integers.
     19     - uint8c: unsigned clamped 8-bit integers.
     20 
     21     Parameters
     22     ----------
     23     dtype: string
     24         Data type.
     25 
     26     size: integer
     27         Buffer size.
     28 
     29     Returns
     30     -------
     31     out: Array|TypedArray|Buffer
     32         Contiguous ndarray data buffer.
     33 
     34     Examples
     35     --------
     36     > var buf = {{alias}}( 'float64', 3 )
     37     <Float64Array>[ 0.0, 0.0, 0.0 ]
     38 
     39     See Also
     40     --------
     41