Package ffx.numerics.fft
Record Class PassConstants
java.lang.Object
java.lang.Record
ffx.numerics.fft.PassConstants
- Record Components:
n
- The size of the input.im
- The imaginary offset.nFFTs
- The number of FFTs to process (default = 1).factor
- The factor.product
- The product of all factors applied so far.twiddles
- The twiddle factors for this pass.
public record PassConstants(int n, int im, int nFFTs, int factor, int product, double[][] twiddles)
extends Record
Constant factors needed for each pass.
-
Constructor Summary
ConstructorDescriptionPassConstants
(int n, int im, int nFFTs, int factor, int product, double[][] twiddles) Creates an instance of aPassConstants
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
factor()
Returns the value of thefactor
record component.final int
hashCode()
Returns a hash code value for this object.int
im()
Returns the value of theim
record component.int
n()
Returns the value of then
record component.int
nFFTs()
Returns the value of thenFFTs
record component.int
product()
Returns the value of theproduct
record component.final String
toString()
Returns a string representation of this record class.double[][]
twiddles()
Returns the value of thetwiddles
record component.
-
Constructor Details
-
PassConstants
public PassConstants(int n, int im, int nFFTs, int factor, int product, double[][] twiddles) Creates an instance of aPassConstants
record class.- Parameters:
n
- the value for then
record componentim
- the value for theim
record componentnFFTs
- the value for thenFFTs
record componentfactor
- the value for thefactor
record componentproduct
- the value for theproduct
record componenttwiddles
- the value for thetwiddles
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
n
public int n()Returns the value of then
record component.- Returns:
- the value of the
n
record component
-
im
public int im()Returns the value of theim
record component.- Returns:
- the value of the
im
record component
-
nFFTs
public int nFFTs()Returns the value of thenFFTs
record component.- Returns:
- the value of the
nFFTs
record component
-
factor
public int factor()Returns the value of thefactor
record component.- Returns:
- the value of the
factor
record component
-
product
public int product()Returns the value of theproduct
record component.- Returns:
- the value of the
product
record component
-
twiddles
public double[][] twiddles()Returns the value of thetwiddles
record component.- Returns:
- the value of the
twiddles
record component
-