ZERO
Single-precision complex floating-point zero.
Usage
var COMPLEX64_ZERO = require( '@stdlib/constants/complex64/zero' );
COMPLEX64_ZERO
Single-precision complex floating-point zero.
var realf = require( '@stdlib/complex/float32/real' );
var imagf = require( '@stdlib/complex/float32/imag' );
var re = realf( COMPLEX64_ZERO );
// returns 0.0
var im = imagf( COMPLEX64_ZERO );
// returns 0.0
Examples
var realf = require( '@stdlib/complex/float32/real' );
var imagf = require( '@stdlib/complex/float32/imag' );
var Complex64Array = require( '@stdlib/array/complex64' );
var COMPLEX64_ZERO = require( '@stdlib/constants/complex64/zero' );
var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
// returns <Complex64Array>
var v = x.get( 0 );
// returns <Complex64>
var re = realf( v );
// returns 1.0
var im = imagf( v );
// returns 2.0
x.fill( COMPLEX64_ZERO );
v = x.get( 0 );
// returns <Complex64>
re = realf( v );
// returns 0.0
im = imagf( v );
// returns 0.0