Package georegression.struct.packed
Class PackedBigArray_F32<T>
java.lang.Object
georegression.struct.packed.PackedBigArray_F32<T>
- All Implemented Interfaces:
PackedArray<T>,LArrayAccessor<T>
- Direct Known Subclasses:
PackedBigArrayPoint2D_F32,PackedBigArrayPoint3D_F32,PackedBigArrayPoint4D_F32
@Generated("georegression.struct.packed.PackedBigArray_F64")
public abstract class PackedBigArray_F32<T>
extends Object
implements PackedArray<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface georegression.struct.packed.PackedArray
PackedArray.ProcessIndex<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BigDogArray_F32Stores tuple in a single continuous arrayprotected final intDegrees of freedom -
Constructor Summary
ConstructorsConstructorDescriptionPackedBigArray_F32(int DOF, int reservedPoints, int blockSize, BigDogGrowth growth) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEquals(PackedArray<T> b) Checks to see if the two data structures are equalbooleanisEquals(PackedArray<T> b, float tol) True if the two arrays are equal to within the specified tolerancevoidremoveSwap(int index) Removes the index and copies in the last element.reserve(int numTuples) Ensure there is enough space to store 'numElements' before the internal array needs to grow.reset()Resets the array's size to be zerovoidresize(int size) Resizes the array.intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ddogleg.struct.LArrayAccessor
copy, getCopy, getElementType, getTemp, isEmpty, isNotEmptyMethods inherited from interface georegression.struct.packed.PackedArray
append, forIdx, set
-
Field Details
-
DOF
protected final int DOFDegrees of freedom -
array
Stores tuple in a single continuous array
-
-
Constructor Details
-
PackedBigArray_F32
-
-
Method Details
-
reset
Description copied from interface:PackedArrayResets the array's size to be zero- Specified by:
resetin interfacePackedArray<T>- Returns:
- An instance of 'this' for chaining
-
reserve
Description copied from interface:PackedArrayEnsure there is enough space to store 'numElements' before the internal array needs to grow. Does not change the size- Specified by:
reservein interfacePackedArray<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:PackedArrayRemoves the index and copies in the last element. O(1), but changes the order- Specified by:
removeSwapin interfacePackedArray<T>
-
size
public int size()- Specified by:
sizein interfaceLArrayAccessor<T>
-
isEquals
Description copied from interface:PackedArrayChecks to see if the two data structures are equal- Specified by:
isEqualsin interfacePackedArray<T>
-
resize
public void resize(int size) Description copied from interface:PackedArrayResizes the array. If the size has increased then new elements are given the default value- Specified by:
resizein interfacePackedArray<T>
-
isEquals
True if the two arrays are equal to within the specified tolerance
-