time-to-botec

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

repl.txt (639B)


      1 
      2 {{alias}}( [out,] re, im )
      3     Negates a complex number.
      4 
      5     Parameters
      6     ----------
      7     out: Array|TypedArray|Object (optional)
      8         Output array.
      9 
     10     re: number
     11         Real component.
     12 
     13     im: number
     14         Imaginary component.
     15 
     16     Returns
     17     -------
     18     out: Array|TypedArray|Object
     19         Negated components.
     20 
     21     Examples
     22     --------
     23     > var out = {{alias}}( -4.2, 5.5 )
     24     [ 4.2, -5.5 ]
     25 
     26     // Provide an output array:
     27     > out = new {{alias:@stdlib/array/float64}}( 2 );
     28     > var v = {{alias}}( out, -4.2, 5.5 )
     29     <Float64Array>[ 4.2, -5.5 ]
     30     > var bool = ( v === out )
     31     true
     32 
     33     See Also
     34     --------
     35