public final class DoubleComplex
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DoubleComplex |
get(java.nio.ByteBuffer buffer)
Wraps a complex number stored in a buffer
|
static DoubleComplex |
get(java.nio.ByteBuffer buffer,
int index)
Wraps the complex number at the specified position
of an array of complex numbers stored in a buffer.
|
static DoubleComplex |
get(double[] array)
Wraps a complex number stored in the first two values of an array.
|
static DoubleComplex |
get(double[] array,
int index)
Wraps the complex number at the specified position of
an array of complex numbers stored in an array of doubles.
|
static DoubleComplex |
get(java.nio.DoubleBuffer buffer)
Wraps a complex number stored in a buffer
|
static DoubleComplex |
get(java.nio.DoubleBuffer buffer,
int index)
Wraps the complex number at the specified position
of an array of complex numbers stored in a buffer.
|
java.nio.DoubleBuffer |
getBuffer()
Gets the buffer where the complex number is stored.
|
double |
getImag()
Gets the imaginary value.
|
double |
getReal()
Gets the real value.
|
void |
putImag(double imag)
Puts the imaginary value.
|
void |
putReal(double real)
Puts the real value.
|
public static DoubleComplex get(java.nio.DoubleBuffer buffer)
buffer
- bufferpublic static DoubleComplex get(java.nio.DoubleBuffer buffer, int index)
buffer
- bufferindex
- indexpublic static DoubleComplex get(double[] array)
array
- arraypublic static DoubleComplex get(double[] array, int index)
array
- arrayindex
- indexpublic static DoubleComplex get(java.nio.ByteBuffer buffer)
buffer
- bufferpublic static DoubleComplex get(java.nio.ByteBuffer buffer, int index)
buffer
- bufferindex
- indexpublic double getReal()
public double getImag()
public void putReal(double real)
real
- real valuepublic void putImag(double imag)
imag
- imaginary valuepublic java.nio.DoubleBuffer getBuffer()