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.
- Alphabetic
- By Inheritance
- UniversalTensor
- TensorData
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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
-
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
-
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
-
new
UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], utils: ColumnUtils)
- Annotations
- @Deprecated
- Deprecated
-
new
UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], doubleArray: Array[Double], columnTypes: Array[Representable])
- Annotations
- @Deprecated
- Deprecated
-
new
UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], doubleArray: Array[Double], columnTypes: Array[Representable])
- Annotations
- @Deprecated
- Deprecated
-
new
UniversalTensor(intArray: Array[Int], longArray: Array[Long], stringArray: Array[String], floatArray: Array[Float], columnTypes: Array[Representable])
- Annotations
- @Deprecated
- Deprecated
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cardinality(): Int
- returns
exact number of entries in the mapping from dimensions to values.
- Definition Classes
- UniversalTensor → TensorData
- Annotations
- @Override()
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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()
- def getBooleanArity(): Int
- def getBooleanArray(): Array[Boolean]
- def getBytesArity(): Int
- def getBytesArray(): Array[AnyRef]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getColumnIndex(): Array[Int]
- def getDoubleArity(): Int
- def getDoubleArray(): Array[Double]
- def getFloatArity(): Int
- def getFloatArray(): Array[Float]
- def getIntArity(): Int
- def getIntArray(): Array[Int]
- def getLongArity(): Int
- def getLongArray(): Array[Long]
-
def
getShape(): Array[Long]
- returns
the current shape of the data or the supplied shape of the data
- Definition Classes
- TensorData
- def getStringArity(): Int
- def getStringArray(): Array[String]
-
def
getTypes(): Array[Representable]
- returns
the types of all dimensions and the value as a single array.
- Definition Classes
- UniversalTensor → TensorData
- Annotations
- @Override()
- def getValueArity(): Int
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isEmpty(): Boolean
- Definition Classes
- UniversalTensor → TensorData
- Annotations
- @Override()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterator(): TensorIterator
- returns
an iterator over entries in the mapping from dimensions to the value.
- Definition Classes
- UniversalTensor → TensorData
- Annotations
- @Override()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()