Package org.ojalgo.structure
Interface StructureAnyD.Reshapable
- All Superinterfaces:
Structure1D
,StructureAnyD
- All Known Implementing Classes:
ArrayAnyD
- Enclosing interface:
StructureAnyD
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallback
Nested classes/interfaces inherited from interface org.ojalgo.structure.StructureAnyD
StructureAnyD.IntReference, StructureAnyD.Logical<S extends StructureAnyD,
B extends StructureAnyD.Logical<S, B>>, StructureAnyD.LongReference, StructureAnyD.ReducibleTo1D<R extends Structure1D>, StructureAnyD.ReducibleTo2D<R extends Structure2D>, StructureAnyD.ReferenceCallback, StructureAnyD.ReferenceMapper, StructureAnyD.Reshapable -
Method Summary
Modifier and TypeMethodDescriptionexpand
(int rank) If necessary increase the rank to the specified number (without changing the total number of components)flatten()
Flattens this to a 1D structure.reshape
(long... shape) The same array viewed/accessed with a different shapesqueeze()
Squeezing removes the dimensions or axes that have a length of one.Methods inherited from interface org.ojalgo.structure.Structure1D
count, size
Methods inherited from interface org.ojalgo.structure.StructureAnyD
count, loop, loop, loopAllReferences, loopReferences, rank, shape, size
-
Method Details
-
expand
If necessary increase the rank to the specified number (without changing the total number of components) -
flatten
Structure1D flatten()Flattens this to a 1D structure. This operation is largely redundant in ojAlgo as anything AnyD is also/simultaneously 1D. -
reshape
The same array viewed/accessed with a different shape -
squeeze
StructureAnyD squeeze()Squeezing removes the dimensions or axes that have a length of one. (This does not change the total number of components.)
-