Package deepboof.tensors
Interface VTensor_F64
- All Known Implementing Classes:
ClippedPadding2D_F64,ConstantPadding2D_F64,SpatialPadding2D_F64
public interface VTensor_F64 extends VTensor
Virtual tensor for 64bit float types.
-
Method Summary
Modifier and Type Method Description doubleget(int axis0)Returns the element's value at the specified coordinate.doubleget(int... coor)Returns the element's value at the specified coordinate.doubleget(int axis1, int axis0)Returns the element's value at the specified coordinate.doubleget(int axis2, int axis1, int axis0)Returns the element's value at the specified coordinate.doubleget(int axis3, int axis2, int axis1, int axis0)Returns the element's value at the specified coordinate.doubleget(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
double 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
double 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
double 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
double 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
double 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
double 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
-