Convert a sequence of complex numbers to a complex array.
Convert an Iterable[Complex] to a complex array.
Convert an array of Complex to a complex array.
Create a zero-filled complex array of length "size".
Data for the array.
this
+ that
this
- that
this
:* that
(element-wise multiply)
this
:/ that
(element-wise division)
Real complex number at location "index" in the array.
Real complex number at location "index" in the array.
Peek at data.
Peek at data. This is DANGEROUS and exists only for use by the GPU.
APPLICATIONS MUST NOT USE THIS.
Helper for equals.
Helper for equals.
Create a deep copy of this complex array.
Copy from "this" to "target".
Compute the complex dot product of this
and that
.
Test this
and other
for deep equality.
Test this
and other
for deep equality. Allows ==
to work.
Required because of overriding equals.
Required because of overriding equals.
Get the imaginary part of the complex number at location "index".
Copy and return the real part of the array.
Number of elements in the array.
Number of elements in the array.
Map this array using "f".
Map this array using "f".
Get the real part of the complex number at location "index".
Copy and return the real part of the array.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Extract subarray from index "from" (inclusive) to "until" (exclusive).
Extract subarray from index "from" (inclusive) to "until" (exclusive).
Copy a contiguous slice of "this" complex array spanning indices ("from" until "until") into the complex array "to" starting at index "toStart"
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Write location "index" with Float "value".
Write location "index" with Float "value". Hopefully higher performing than invoking an implicit conversion to a Complex.
Write location "index" with (real, imaginary).
Write location "index" with "value".
Write location "index" with "value".
Get the imaginary part of the complex array.
Get the real part of the complex array.
Compare this
and that
for approximate equality.
An array of complex numbers; unlike other collections in this package, ComplexArrays are mutable.
Complex numbers are stored in a non-interleaved format in an array of floats: real parts in the first half of the array, followed by imaginary parts in the second half of the array.