程序包 mpi

类 FloatComplex

java.lang.Object
mpi.FloatComplex

public final class FloatComplex extends Object
This class wraps a complex number stored in a buffer.
  • 方法详细资料

    • get

      public static FloatComplex get(FloatBuffer buffer)
      Wraps a complex number stored in a buffer
      参数:
      buffer - buffer
      返回:
      complex number
    • get

      public static FloatComplex get(FloatBuffer buffer, int index)
      Wraps the complex number at the specified position of an array of complex numbers stored in a buffer.
      参数:
      buffer - buffer
      index - index
      返回:
      complex number
    • get

      public static FloatComplex get(float[] array)
      Wraps a complex number stored in the first two values of an array.
      参数:
      array - array
      返回:
      complex number
    • get

      public 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.
      参数:
      array - array
      index - index
      返回:
      complex number
    • get

      public static FloatComplex get(ByteBuffer buffer)
      Wraps a complex number stored in a buffer
      参数:
      buffer - buffer
      返回:
      complex number
    • get

      public static FloatComplex get(ByteBuffer buffer, int index)
      Wraps the complex number at the specified position of an array of complex numbers stored in a buffer.
      参数:
      buffer - buffer
      index - 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

      public FloatBuffer getBuffer()
      Gets the buffer where the complex number is stored.
      返回:
      buffer where the complex number is stored