SparseVector¶
<auto-generated stub>
Static methods¶
def apply(x: Rep[Int], y: Rep[Boolean]): Rep[SparseVector[T]]
def fromElements(length: Rep[Int], isRow: Rep[Boolean], nzIndices: Rep[IndexVector], nzElements: Rep[DenseVector[T]]): Rep[SparseVector[T]]
def fromFunc(x: Rep[Int], y: Rep[Boolean], z: Rep[IndexVector], v: (Rep[Int]) => Rep[T]): Rep[SparseVector[T]]
def fromSortedElements(length: Rep[Int], isRow: Rep[Boolean], nzIndices: Rep[IndexVector], nzElements: Rep[DenseVector[T]]): Rep[SparseVector[T]]
def rand(length: Rep[Int], sparsity: Rep[Double]): Rep[SparseVector[Double]]
def randf(length: Rep[Int], sparsity: Rep[Double]): Rep[SparseVector[Float]]
def zeros(x: Rep[Int]): Rep[SparseVector[Double]]
def zerosf(x: Rep[Int]): Rep[SparseVector[Float]]
Infix methods¶
def *(y: Rep[SparseVector[T]])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def *(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def *(y: Rep[DenseVectorView[T]])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def *(y: Rep[T])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def *(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def **(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def *:*(y: Rep[SparseVector[T]])(implicit ev0: Arith[T]): Rep[T]
def *:*(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[T]
def *:*(y: Rep[DenseVectorView[T]])(implicit ev0: Arith[T]): Rep[T]
def +(y: Rep[SparseVector[T]])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def +(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def +(y: Rep[T])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def -(y: Rep[SparseVector[T]])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def -(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def -(y: Rep[T])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def /(y: Rep[SparseVector[T]])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def /(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def /(y: Rep[T])(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def <<(y: Rep[T]): Rep[SparseVector[T]]
def <<(y: Rep[SparseVector[T]]): Rep[SparseVector[T]]
def <<=(y: Rep[T]): Rep[Unit]
def <<=(y: Rep[SparseVector[T]]): Rep[Unit]
def Clone(): Rep[SparseVector[T]]
def abs()(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def apply(y: Rep[Int]): Rep[T]
def apply(y: Rep[IndexVector]): Rep[SparseVector[T]]
def clear(): Rep[Unit]
def contains(y: Rep[T]): Rep[Boolean]
def copyFrom(pos: Rep[Int], xs: Rep[SparseVector[T]]): Rep[Unit]
def countnz(y: (Rep[T]) => Rep[Boolean]): Rep[Int]
def distinct(): Rep[DenseVector[T]]
def drop(y: Rep[Int]): Rep[SparseVector[T]]
def filternz(y: (Rep[T]) => Rep[Boolean]): Rep[SparseVector[T]]
def findnz(y: (Rep[T]) => Rep[Boolean]): Rep[IndexVector]
def first(): Rep[T]
def firstnz(): Rep[T]
def foreachnz(y: (Rep[T]) => Rep[Unit]): Rep[Unit]
def indices(): Rep[IndexVector]
def insert(y: Rep[Int], z: Rep[T]): Rep[Unit]
def insertAll(pos: Rep[Int], xs: Rep[SparseVector[T]]): Rep[Unit]
def isEmpty(): Rep[Boolean]
def isRow(): Rep[Boolean]
def last(): Rep[T]
def lastnz(): Rep[T]
def length(): Rep[Int] Accessors
def makeString()(implicit ev0: Stringable[T]): Rep[String]
def mapnz(y: (Rep[T]) => Rep[R]): Rep[SparseVector[R]] Bulk
def max()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[T]
def mean()(implicit ev0: (Rep[T]) => Rep[Double]): Rep[Double]
def min()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[T] Ordering
def mt(): Rep[Unit]
def mutable(): Rep[SparseVector[T]]
def nnz(): Rep[Int]
def nz(): Rep[DenseVectorView[T]]
def pprint()(implicit ev0: Stringable[T]): Rep[Unit]
def reducenz(y: (Rep[T],Rep[T]) => Rep[T])(implicit ev0: Arith[T]): Rep[T]
def remove(y: Rep[Int]): Rep[Unit]
def removeAll(pos: Rep[Int], len: Rep[Int]): Rep[Unit]
def slice(start: Rep[Int], end: Rep[Int]): Rep[SparseVector[T]]
def sum()(implicit ev0: Arith[T]): Rep[T]
def t(): Rep[SparseVector[T]] Miscellaneous
def take(y: Rep[Int]): Rep[SparseVector[T]]
def toDense(): Rep[DenseVector[T]]
def toString(): Rep[String]
def trim(): Rep[Unit]
def update(pos: Rep[Int], e: Rep[T]): Rep[Unit]
def update(indices: Rep[IndexVector], e: Rep[T]): Rep[Unit]
def update(indices: Rep[IndexVector], v: Rep[SparseVector[T]]): Rep[Unit]
Implicit methods¶
def dist(x: Rep[SparseVector[Double]], y: Rep[SparseVector[Double]]): Rep[Double]