Interface VTensor_F32

All Superinterfaces:
ITensor, VTensor
All Known Implementing Classes:
ClippedPadding2D_F32, ConstantPadding2D_F32, SpatialPadding2D_F32

public interface VTensor_F32
extends VTensor
Virtual tensor for 64bit float types.
  • Method Summary

    Modifier and Type Method Description
    float get​(int axis0)
    Returns the element's value at the specified coordinate.
    float get​(int... coor)
    Returns the element's value at the specified coordinate.
    float get​(int axis1, int axis0)
    Returns the element's value at the specified coordinate.
    float get​(int axis2, int axis1, int axis0)
    Returns the element's value at the specified coordinate.
    float get​(int axis3, int axis2, int axis1, int axis0)
    Returns the element's value at the specified coordinate.
    float get​(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-1
      axis0 - 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-2
      axis1 - coordinate at axis-1
      axis0 - 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-3
      axis2 - coordinate at axis-2
      axis1 - coordinate at axis-1
      axis0 - 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-4
      axis3 - coordinate at axis-3
      axis2 - coordinate at axis-2
      axis1 - coordinate at axis-1
      axis0 - coordinate at axis-0
      Returns:
      element value