Package net.algart.matrices.stitching
Class DefaultFrame<P extends FramePosition>
java.lang.Object
net.algart.matrices.stitching.DefaultFrame<P>
- All Implemented Interfaces:
Frame<P>
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultFrame
(Matrix<? extends PArray> matrix, P position) -
Method Summary
Modifier and TypeMethodDescriptionint
dimCount()
The number of space dimensions.boolean
void
CallsMatrix.freeResources(null)
for the matrix, contained in this frame.int
hashCode()
Returns the hash code of this object.matrix()
The matrix, contained in this frame.position()
The position in n-dimensional space, where the givenmatrix
is placed.toString()
static <P extends FramePosition>
DefaultFrame<P>
-
Constructor Details
-
DefaultFrame
-
-
Method Details
-
valueOf
public static <P extends FramePosition> DefaultFrame<P> valueOf(Matrix<? extends PArray> matrix, P position) -
dimCount
public int dimCount()Description copied from interface:Frame
The number of space dimensions.- Specified by:
dimCount
in interfaceFrame<P extends FramePosition>
- Returns:
- the number of space dimensions
-
matrix
Description copied from interface:Frame
The matrix, contained in this frame. There is a guarantee that thisInstance.Frame.matrix()
.dimCount()
==thisInstance.Frame.dimCount()
.- Specified by:
matrix
in interfaceFrame<P extends FramePosition>
- Returns:
- matrix contained in this frame.
-
position
Description copied from interface:Frame
The position in n-dimensional space, where the givenmatrix
is placed. There is a guarantee that thisInstance.Frame.position()
.area()
.coordCount()
==thisInstance.Frame.dimCount()
.- Specified by:
position
in interfaceFrame<P extends FramePosition>
- Returns:
- position in n-dimensional space, where the given
matrix
is placed.
-
freeResources
public void freeResources()Description copied from interface:Frame
CallsMatrix.freeResources(null)
for the matrix, contained in this frame.- Specified by:
freeResources
in interfaceFrame<P extends FramePosition>
-
toString
-
hashCode
public int hashCode()Description copied from interface:Frame
Returns the hash code of this object. The result depends both on thematrix
and theframe position
. -
equals
Description copied from interface:Frame
-