Package org.ojalgo.structure
Interface StructureAnyD.Reshapable
-
- All Superinterfaces:
Structure1D
,StructureAnyD
- All Known Implementing Classes:
ArrayAnyD
- Enclosing interface:
- StructureAnyD
public static interface StructureAnyD.Reshapable extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StructureAnyD
expand(int rank)
If necessary increase the rank to the specified number (without changing the total number of components)Structure1D
flatten()
Flattens this to a 1D structure.StructureAnyD
reshape(long... shape)
The same array viewed/accessed with a different shapeStructureAnyD
squeeze()
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 Detail
-
expand
StructureAnyD expand(int rank)
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
StructureAnyD reshape(long... shape)
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.)
-
-