Packages

class UniversalTensor extends TensorData

Implements a tensor from pre-allocated arrays.

The keys (int and long) and the values are stored in parallel arrays to float values. Multiple keys of a certain type can be associated to a value, in that case the key array size will be a multiple of the value array size.

Linear Supertypes
TensorData, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UniversalTensor
  2. TensorData
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UniversalTensor(intArity: Int, longArity: Int, stringArity: Int, floatArity: Int, doubleArity: Int, booleanArity: Int, bytesArity: Int, valueArity: Int, intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], booleanArray: Array[Boolean], bytesArray: Array[AnyRef], columnTypes: Array[Representable], size: Int, sort: Boolean, columnIndex: <repeated...>[Int])

    Universal Tensor constructors should ideally not be used to create a UniversalTensor.

    Universal Tensor constructors should ideally not be used to create a UniversalTensor. Universal Tensors should be created by using the UniversalTensorBuilder. The other constructors are deprecated as they only support FLOAT/DOUBLE values.

    intArity

    number of int columns in a tensor row (includes dimensions and values)

    longArity

    number of long columns in a tensor row (includes dimensions and values)

    stringArity

    number of string columns in a tensor row (includes dimensions and values)

    floatArity

    number of float columns in a tensor row (includes dimensions and values)

    doubleArity

    number of double columns in a tensor row (includes dimensions and values)

    booleanArity

    number of boolean columns in a tensor row (includes dimensions and values)

    bytesArity

    number of bytes columns in a tensor row (includes dimensions and values)

    valueArity

    number of value columns in a tensor row. This value is needed as it's possible for UniversalTensors to have more than one value dimension

    intArray

    array corresponding to the int dimensions/values

    longArray

    array corresponding to the long dimensions/values

    stringArray

    array corresponding to the string dimensions

    floatArray

    array corresponding to the float values. Floats can not be a dimension

    doubleArray

    array corresponding to the double values. Doubles can not be a dimension

    booleanArray

    array corresponding to the boolean dimensions/values

    bytesArray

    array corresponding to the bytes dimensions/values

    columnTypes

    columnTypes representing the tensor

    size

    size of the tensor. (Number of rows).

    sort

    sorts the tensor by the dimension if true

    columnIndex

    columnIndices

  2. new UniversalTensor(intArity: Int, longArity: Int, stringArity: Int, floatArity: Int, doubleArity: Int, booleanArity: Int, valueArity: Int, intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], booleanArray: Array[Boolean], columnTypes: Array[Representable], size: Int, sort: Boolean, columnIndex: <repeated...>[Int])

    Universal Tensor constructors should ideally not be used to create a UniversalTensor.

    Universal Tensor constructors should ideally not be used to create a UniversalTensor. Universal Tensors should be created by using the UniversalTensorBuilder. The other constructors are deprecated as they only support FLOAT/DOUBLE values.

    intArity

    number of int columns in a tensor row (includes dimensions and values)

    longArity

    number of long columns in a tensor row (includes dimensions and values)

    stringArity

    number of string columns in a tensor row (includes dimensions and values)

    floatArity

    number of float columns in a tensor row (includes dimensions and values)

    doubleArity

    number of double columns in a tensor row (includes dimensions and values)

    booleanArity

    number of boolean columns in a tensor row (includes dimensions and values)

    valueArity

    number of value columns in a tensor row. This value is needed as it's possible for UniversalTensors to have more than one value dimension

    intArray

    array corresponding to the int dimensions/values

    longArray

    array corresponding to the long dimensions/values

    stringArray

    array corresponding to the string dimensions

    floatArray

    array corresponding to the float values. Floats can not be a dimension

    doubleArray

    array corresponding to the double values. Doubles can not be a dimension

    booleanArray

    array corresponding to the boolean dimensions/values

    columnTypes

    columnTypes representing the tensor

    size

    size of the tensor. (Number of rows).

    sort

    sorts the tensor by the dimension if true

    columnIndex

    columnIndices

  3. new UniversalTensor(intArity: Int, longArity: Int, stringArity: Int, floatArity: Int, doubleArity: Int, intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], columnTypes: Array[Representable], size: Int, sort: Boolean, columnIndex: <repeated...>[Int])

    Annotations
    @Deprecated
    Deprecated
  4. new UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], bytesArray: Array[AnyRef], utils: ColumnUtils)

    Annotations
    @Deprecated
    Deprecated
  5. new UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], utils: ColumnUtils)

    Annotations
    @Deprecated
    Deprecated
  6. new UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], columnTypes: Array[Representable])

    Annotations
    @Deprecated
    Deprecated
  7. new UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], doubleArray: Array[Double], columnTypes: Array[Representable])

    Annotations
    @Deprecated
    Deprecated
  8. new UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], columnTypes: Array[Representable])

    Annotations
    @Deprecated
    Deprecated
  9. new UniversalTensor(intArray: Array[Int], longArray: Array[Long], floatArray: Array[Float], columnTypes: Array[Representable])

    Generate arities and columns from types, assuming sequential ordering within types.

    Generate arities and columns from types, assuming sequential ordering within types.

    Annotations
    @Deprecated
    Deprecated
  10. new UniversalTensor(intArity: Int, longArity: Int, stringArity: Int, floatArity: Int, doubleArity: Int, intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], columnTypes: Array[Representable], sort: Boolean, columnIndex: <repeated...>[Int])

    Annotations
    @Deprecated
    Deprecated
  11. new UniversalTensor(intArity: Int, longArity: Int, stringArity: Int, floatArity: Int, intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], columnTypes: Array[Representable], sort: Boolean, columnIndex: <repeated...>[Int])

    Annotations
    @Deprecated
    Deprecated
  12. new UniversalTensor(intArity: Int, longArity: Int, stringArity: Int, floatArity: Int, intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], columnTypes: Array[Representable], columnIndex: <repeated...>[Int])

    Annotations
    @Deprecated
    Deprecated
  13. new UniversalTensor(intArity: Int, longArity: Int, floatArity: Int, intArray: Array[Int], longArray: Array[Long], floatArray: Array[Float], columnTypes: Array[Representable], sort: Boolean, columnIndex: <repeated...>[Int])

    Annotations
    @Deprecated
    Deprecated
  14. new UniversalTensor(intArity: Int, longArity: Int, floatArity: Int, intArray: Array[Int], longArray: Array[Long], floatArray: Array[Float], columnTypes: Array[Representable], size: Int, sort: Boolean, columnIndex: <repeated...>[Int])

    Annotations
    @Deprecated
    Deprecated
  15. new UniversalTensor(intArity: Int, longArity: Int, floatArity: Int, intArray: Array[Int], longArray: Array[Long], floatArray: Array[Float], columnTypes: Array[Representable], columnIndex: <repeated...>[Int])
    Annotations
    @Deprecated
    Deprecated

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def cardinality(): Int

    returns

    exact number of entries in the mapping from dimensions to values.

    Definition Classes
    UniversalTensor → TensorData
    Annotations
    @Override()
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def estimatedCardinality(): Int

    returns

    conservative estimate of number of entries in the mapping from dimensions to values. Can be cheaper to evaluate than the exact one.

    Definition Classes
    UniversalTensor → TensorData
    Annotations
    @Override()
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getArity(): Int

    returns

    the arity, which is the total number of columns. As columns are dimensions plus a value, arity is by one greater than dimensionality.

    Definition Classes
    UniversalTensor → TensorData
    Annotations
    @Override()
  12. def getBooleanArity(): Int
  13. def getBooleanArray(): Array[Boolean]
  14. def getBytesArity(): Int
  15. def getBytesArray(): Array[AnyRef]
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getColumnIndex(): Array[Int]
  18. def getDoubleArity(): Int
  19. def getDoubleArray(): Array[Double]
  20. def getFloatArity(): Int
  21. def getFloatArray(): Array[Float]
  22. def getIntArity(): Int
  23. def getIntArray(): Array[Int]
  24. def getLongArity(): Int
  25. def getLongArray(): Array[Long]
  26. def getShape(): Array[Long]

    returns

    the current shape of the data or the supplied shape of the data

    Definition Classes
    TensorData
  27. def getStringArity(): Int
  28. def getStringArray(): Array[String]
  29. def getTypes(): Array[Representable]

    returns

    the types of all dimensions and the value as a single array.

    Definition Classes
    UniversalTensor → TensorData
    Annotations
    @Override()
  30. def getValueArity(): Int
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. def isEmpty(): Boolean
    Definition Classes
    UniversalTensor → TensorData
    Annotations
    @Override()
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def iterator(): TensorIterator

    returns

    an iterator over entries in the mapping from dimensions to the value.

    Definition Classes
    UniversalTensor → TensorData
    Annotations
    @Override()
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from TensorData

Inherited from AnyRef

Inherited from Any

Ungrouped