time-to-botec

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

repl.txt (767B)


      1 
      2 {{alias}}( [out,] re1, im1, re2, im2 )
      3     Adds two complex numbers.
      4 
      5     Parameters
      6     ----------
      7     out: Array|TypedArray|Object (optional)
      8         Output array.
      9 
     10     re1: number
     11         Real component.
     12 
     13     im1: number
     14         Imaginary component.
     15 
     16     re2: number
     17         Real component.
     18 
     19     im2: number
     20         Imaginary component.
     21 
     22     Returns
     23     -------
     24     out: Array|TypedArray|Object
     25         Real and imaginary components.
     26 
     27     Examples
     28     --------
     29     > var y = {{alias}}( 5.0, 3.0, -2.0, 1.0 )
     30     [ 3.0, 4.0 ]
     31 
     32     // Provide an output array:
     33     > var out = new {{alias:@stdlib/array/float32}}( 2 );
     34     > y = {{alias}}( out, 5.0, 3.0, -2.0, 1.0 )
     35     <Float32Array>[ 3.0, 4.0 ]
     36     > var bool = ( y === out )
     37     true
     38 
     39     See Also
     40     --------
     41