For encoding counters as vectors and decoding vectors back to counters
- Companion:
- object
Value members
Concrete methods
Converts an array into a Map from T's to whatever was in the array.
Converts an array into a Map from T's to whatever was in the array.
Encodes a DoubleCounter as a Vector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Encodes a DoubleCounter as a Vector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Encodes a Tensor[(T,T),Double] as a DenseMatrix[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Encodes a Tensor[(T,T),Double] as a DenseMatrix[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Encodes a DoubleCounter as a Vector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Encodes a DoubleCounter as a Vector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Encodes a DoubleCounter as a SparseVector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Encodes a DoubleCounter as a SparseVector[Double]. All elements in the counter must be in the index unless ignoreOutOfIndex is true
Fills an array of arbitrary type with the value provided and with the index's size.
Fills an array of arbitrary type with the value provided and with the index's size.
Creates an array of arbitrary type with the index's size.
Creates an array of arbitrary type with the index's size.
Creates a DenseVector[Double] with the index's size
Creates a DenseVector[Double] with the index's size
makes a matrix of some sort with the index's size as rows and cols
makes a matrix of some sort with the index's size as rows and cols
Creates a SparseVector[Double] with the index's size
Creates a SparseVector[Double] with the index's size
Creates a Vector[Double] of some sort with the index's size.
Creates a Vector[Double] of some sort with the index's size.
Fills an array of arbitrary type by tabulating the function
Fills an array of arbitrary type by tabulating the function