Interface Tensor

All Known Implementing Classes:
Tensor1D, Tensor2D, Tensor3D, Tensor4D, TensorBase

public interface Tensor
A wrapper for multidimensional array/tensor. Provides commonly used generic methods for accessing number of dimensions, number of elements, shape and values/elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    float[]
    Returns an array of values/elements stored in this tensor.
    int
    Returns a number of dimensions of this tensor
    int
    Returns a total number of elements in this tensor.
    Returns a shape of this tensor.
  • Method Details

    • numDimensions

      int numDimensions()
      Returns a number of dimensions of this tensor
      Returns:
    • numElements

      int numElements()
      Returns a total number of elements in this tensor.
      Returns:
    • shape

      Shape shape()
      Returns a shape of this tensor.
      Returns:
    • getValues

      float[] getValues()
      Returns an array of values/elements stored in this tensor.
      Returns: