Sparse Num Vector Space
class SparseNumVectorSpace<S : Scalar> : NumVectorSpace<S, SparseNumVector<S>>
Content copied to clipboard
Types
Functions
add
Link copied to clipboard
open override fun add(a: SparseNumVector<S>, b: SparseNumVector<S>): SparseNumVector<S>
Content copied to clipboard
contains
Link copied to clipboard
open operator override fun contains(numVector: SparseNumVector<S>): Boolean
Content copied to clipboard
divideByNumVector
Link copied to clipboard
open override fun divideByNumVector(a: SparseNumVector<S>, b: SparseNumVector<S>): S?
Content copied to clipboard
fromReducedValueMap
Link copied to clipboard
open override fun fromReducedValueMap(valueMap: Map<Int, S>, dim: Int): SparseNumVector<S>
Content copied to clipboard
fromValueList
Link copied to clipboard
fromValueMap
Link copied to clipboard
open override fun fromValueMap(valueMap: Map<Int, S>, dim: Int): SparseNumVector<S>
Content copied to clipboard
getElement
Link copied to clipboard
getOneAtIndex
Link copied to clipboard
getZero
Link copied to clipboard
innerProduct
Link copied to clipboard
open override fun innerProduct(numVector1: SparseNumVector<S>, numVector2: SparseNumVector<S>): S
Content copied to clipboard
multiply
Link copied to clipboard
open override fun multiply(scalar: S, numVector: SparseNumVector<S>): SparseNumVector<S>
Content copied to clipboard
subtract
Link copied to clipboard
open override fun subtract(a: SparseNumVector<S>, b: SparseNumVector<S>): SparseNumVector<S>
Content copied to clipboard
unaryMinusOf
Link copied to clipboard
open override fun unaryMinusOf(numVector: SparseNumVector<S>): SparseNumVector<S>
Content copied to clipboard