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
ConstructorsConstructorDescriptionPassConstants(int n, int im, int nFFTs, int factor, int product, double[][] twiddles) Creates an instance of aPassConstantsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfactor()Returns the value of thefactorrecord component.final inthashCode()Returns a hash code value for this object.intim()Returns the value of theimrecord component.intn()Returns the value of thenrecord component.intnFFTs()Returns the value of thenFFTsrecord component.intproduct()Returns the value of theproductrecord component.final StringtoString()Returns a string representation of this record class.double[][]twiddles()Returns the value of thetwiddlesrecord component.
-
Constructor Details
-
PassConstants
public PassConstants(int n, int im, int nFFTs, int factor, int product, double[][] twiddles) Creates an instance of aPassConstantsrecord class.- Parameters:
n- the value for thenrecord componentim- the value for theimrecord componentnFFTs- the value for thenFFTsrecord componentfactor- the value for thefactorrecord componentproduct- the value for theproductrecord componenttwiddles- the value for thetwiddlesrecord 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 thenrecord component.- Returns:
- the value of the
nrecord component
-
im
public int im()Returns the value of theimrecord component.- Returns:
- the value of the
imrecord component
-
nFFTs
public int nFFTs()Returns the value of thenFFTsrecord component.- Returns:
- the value of the
nFFTsrecord component
-
factor
public int factor()Returns the value of thefactorrecord component.- Returns:
- the value of the
factorrecord component
-
product
public int product()Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
twiddles
public double[][] twiddles()Returns the value of thetwiddlesrecord component.- Returns:
- the value of the
twiddlesrecord component
-