Package deepboof.tensors
Interface VTensor_F32
- All Known Implementing Classes:
ClippedPadding2D_F32,ConstantPadding2D_F32,SpatialPadding2D_F32
Virtual tensor for 64bit float types.
-
Method Summary
Modifier and TypeMethodDescriptionfloatget(int axis0) Returns the element's value at the specified coordinate.floatget(int... coor) Returns the element's value at the specified coordinate.floatget(int axis1, int axis0) Returns the element's value at the specified coordinate.floatget(int axis2, int axis1, int axis0) Returns the element's value at the specified coordinate.floatget(int axis3, int axis2, int axis1, int axis0) Returns the element's value at the specified coordinate.floatget(int axis4, int axis3, int axis2, int axis1, int axis0) Returns the element's value at the specified coordinate.Methods inherited from interface deepboof.ITensor
createCoor, getDataType, getDimension, getShape, isShape, length
-
Method Details
-
get
float get(int... coor) Returns the element's value at the specified coordinate.- Parameters:
coor- coordinate at ordered from axis-(N-1) to axis-0- Returns:
- element value
-
get
float get(int axis0) Returns the element's value at the specified coordinate. Only works with 1-DOF tensors.- Parameters:
axis0- coordinate at axis-0- Returns:
- element value
-
get
float get(int axis1, int axis0) Returns the element's value at the specified coordinate. Only works with 2-DOF tensors.- Parameters:
axis1- coordinate at axis-1axis0- coordinate at axis-0- Returns:
- element value
-
get
float get(int axis2, int axis1, int axis0) Returns the element's value at the specified coordinate. Only works with 3-DOF tensors.- Parameters:
axis2- coordinate at axis-2axis1- coordinate at axis-1axis0- coordinate at axis-0- Returns:
- element value
-
get
float get(int axis3, int axis2, int axis1, int axis0) Returns the element's value at the specified coordinate. Only works with 4-DOF tensors.- Parameters:
axis3- coordinate at axis-3axis2- coordinate at axis-2axis1- coordinate at axis-1axis0- coordinate at axis-0- Returns:
- element value
-
get
float get(int axis4, int axis3, int axis2, int axis1, int axis0) Returns the element's value at the specified coordinate. Only works with 5-DOF tensors.- Parameters:
axis4- coordinate at axis-4axis3- coordinate at axis-3axis2- coordinate at axis-2axis1- coordinate at axis-1axis0- coordinate at axis-0- Returns:
- element value
-