Converts an array into a Map from T's to whatever was in the array.
Decodes a vector back to a Counter[T,Double]
Encodes a Tensor[(T,T),Double] as a DenseMatrix[Double].
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].
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].
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].
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.
Creates an array of arbitrary type 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
Creates a SparseVector[Double] 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 a DenseVector[Double] with each index given by the result of the function.
For encoding counters as vectors and decoding vectors back to counters