time-to-botec

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

repl.txt (791B)


      1 
      2 {{alias}}( [dtype1, dtype2] )
      3     Returns the ndarray data type with the smallest size and closest "kind" to
      4     which ndarray data types can be safely cast.
      5 
      6     If not provided data types, the function returns a type promotion table.
      7 
      8     If a data type to which data types can be safely cast does *not* exist (or
      9     is not supported), the function returns `-1`.
     10 
     11     If provided an unrecognized data type, the function returns `null`.
     12 
     13     Parameters
     14     ----------
     15     dtype1: string (optional)
     16         ndarray data type.
     17 
     18     dtype2: string (optional)
     19         ndarray data type.
     20 
     21     Returns
     22     -------
     23     out: Object|string|integer|null
     24         Promotion rule(s).
     25 
     26     Examples
     27     --------
     28     > var out = {{alias}}( 'float32', 'int32' )
     29     'float64'
     30 
     31     See Also
     32     --------
     33