# Class FloatWTables

java.lang.Object
org.apfloat.internal.FloatElementaryModMath
org.apfloat.internal.FloatModMath
org.apfloat.internal.FloatWTables

public class FloatWTables extends FloatModMath
Helper class for generating and caching tables of powers of the n:th root of unity.

Since:
  1.7.0
Version:
  1.9.0
Author:
  Mikko Tommila

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static float[]`
  `getInverseWTable(int modulus, int length)`
  Get a table of inverses of powers of n:th root of unity.
  `static float[]`
  `getWTable(int modulus, int length)`
  Get a table of powers of n:th root of unity.

  ### Methods inherited from class FloatModMath

  `createWTable, getForwardNthRoot, getInverseNthRoot, modDivide, modInverse, modPow, negate`

  ### Methods inherited from class FloatElementaryModMath

  `getModulus, modAdd, modMultiply, modSubtract, setModulus`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getWTable

    public static float[] getWTable(int modulus, int length)
    Get a table of powers of n:th root of unity.
    Parameters:
      `modulus` - The index of the modulus to be used.
      `length` - The length of the table to be returned, i.e. n.
    Returns:
      The table of powers of the n:th root of unity.

  - ### getInverseWTable

    public static float[] getInverseWTable(int modulus, int length)
    Get a table of inverses of powers of n:th root of unity.
    Parameters:
      `modulus` - The index of the modulus to be used.
      `length` - The length of the table to be returned, i.e. n.
    Returns:
      The table of inverses of powers of the n:th root of unity.