Class PackedBigArray_F64<T>

java.lang.Object
georegression.struct.packed.PackedBigArray_F64<T>
All Implemented Interfaces:
PackedArray<T>, LArrayAccessor<T>
Direct Known Subclasses:
PackedBigArrayPoint2D_F64, PackedBigArrayPoint3D_F64, PackedBigArrayPoint4D_F64

public abstract class PackedBigArray_F64<T> extends Object implements PackedArray<T>
  • Field Details

    • DOF

      protected final int DOF
      Degrees of freedom
    • array

      protected final BigDogArray_F64 array
      Stores tuple in a single continuous array
  • Constructor Details

    • PackedBigArray_F64

      public PackedBigArray_F64(int DOF, int reservedPoints, int blockSize, BigDogGrowth growth)
  • Method Details

    • reset

      public PackedBigArray_F64<T> reset()
      Description copied from interface: PackedArray
      Resets the array's size to be zero
      Specified by:
      reset in interface PackedArray<T>
      Returns:
      An instance of 'this' for chaining
    • reserve

      public PackedBigArray_F64<T> reserve(int numTuples)
      Description copied from interface: PackedArray
      Ensure there is enough space to store 'numElements' before the internal array needs to grow. Does not change the size
      Specified by:
      reserve in interface PackedArray<T>
      Parameters:
      numTuples - Minimum number of elements allocated to the array
      Returns:
      An instance of 'this' for chaining
    • removeSwap

      public void removeSwap(int index)
      Description copied from interface: PackedArray
      Removes the index and copies in the last element. O(1), but changes the order
      Specified by:
      removeSwap in interface PackedArray<T>
    • size

      public int size()
      Specified by:
      size in interface LArrayAccessor<T>
    • isEquals

      public boolean isEquals(PackedArray<T> b)
      Description copied from interface: PackedArray
      Checks to see if the two data structures are equal
      Specified by:
      isEquals in interface PackedArray<T>
    • resize

      public void resize(int size)
      Description copied from interface: PackedArray
      Resizes the array. If the size has increased then new elements are given the default value
      Specified by:
      resize in interface PackedArray<T>
    • isEquals

      public boolean isEquals(PackedArray<T> b, double tol)
      True if the two arrays are equal to within the specified tolerance