程序包 mpi
类 FloatComplex
java.lang.Object
mpi.FloatComplex
This class wraps a complex number stored in a buffer.
-
方法概要
修饰符和类型方法说明static FloatComplex
get
(float[] array) Wraps a complex number stored in the first two values of an array.static FloatComplex
get
(float[] array, int index) Wraps the complex number at the specified position of an array of complex numbers stored in an array of floats.static FloatComplex
get
(ByteBuffer buffer) Wraps a complex number stored in a bufferstatic FloatComplex
get
(ByteBuffer buffer, int index) Wraps the complex number at the specified position of an array of complex numbers stored in a buffer.static FloatComplex
get
(FloatBuffer buffer) Wraps a complex number stored in a bufferstatic FloatComplex
get
(FloatBuffer buffer, int index) Wraps the complex number at the specified position of an array of complex numbers stored in a buffer.Gets the buffer where the complex number is stored.float
getImag()
Gets the imaginary value.float
getReal()
Gets the real value.void
putImag
(float imag) Puts the imaginary value.void
putReal
(float real) Puts the real value.
-
方法详细资料
-
get
Wraps a complex number stored in a buffer- 参数:
buffer
- buffer- 返回:
- complex number
-
get
Wraps the complex number at the specified position of an array of complex numbers stored in a buffer.- 参数:
buffer
- bufferindex
- index- 返回:
- complex number
-
get
Wraps a complex number stored in the first two values of an array.- 参数:
array
- array- 返回:
- complex number
-
get
Wraps the complex number at the specified position of an array of complex numbers stored in an array of floats.- 参数:
array
- arrayindex
- index- 返回:
- complex number
-
get
Wraps a complex number stored in a buffer- 参数:
buffer
- buffer- 返回:
- complex number
-
get
Wraps the complex number at the specified position of an array of complex numbers stored in a buffer.- 参数:
buffer
- bufferindex
- index- 返回:
- complex number
-
getReal
public float getReal()Gets the real value.- 返回:
- real value
-
getImag
public float getImag()Gets the imaginary value.- 返回:
- imaginary value.
-
putReal
public void putReal(float real) Puts the real value.- 参数:
real
- real value
-
putImag
public void putImag(float imag) Puts the imaginary value.- 参数:
imag
- imaginary value
-
getBuffer
Gets the buffer where the complex number is stored.- 返回:
- buffer where the complex number is stored
-