SparseMatrix¶
<auto-generated stub>
Static methods¶
def apply(x: Rep[Int], y: Rep[Int]): Rep[SparseMatrixBuildable[T]]
def diag(x: Rep[Int], y: Rep[SparseVector[T]]): Rep[SparseMatrix[T]]
def fromElements(numRows: Rep[Int], numCols: Rep[Int], nzElements: Rep[DenseVector[T]], nzRowIndices: Rep[DenseVector[Int]], nzColIndices: Rep[DenseVector[Int]]): Rep[SparseMatrix[T]]
def identity(x: Rep[Int], y: Rep[Int]): Rep[SparseMatrix[Double]]
def identity(x: Rep[Int]): Rep[SparseMatrix[Double]]
def rand(x: Rep[Int], y: Rep[Int], z: Rep[Double]): Rep[SparseMatrix[Double]]
def randf(x: Rep[Int], y: Rep[Int], z: Rep[Double]): Rep[SparseMatrix[Float]]
def randn(x: Rep[Int], y: Rep[Int], z: Rep[Double]): Rep[SparseMatrix[Double]]
def randnf(x: Rep[Int], y: Rep[Int], z: Rep[Double]): Rep[SparseMatrix[Float]]
def zeros(x: Rep[Int], y: Rep[Int]): Rep[SparseMatrix[Double]]
def zerosf(x: Rep[Int], y: Rep[Int]): Rep[SparseMatrix[Float]]
Infix methods¶
def *(y: Rep[T])(implicit ev0: Arith[T]): Rep[SparseMatrix[T]]
def *(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def *(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def *:*(y: Rep[SparseMatrix[T]])(implicit ev0: Arith[T]): Rep[SparseMatrix[T]]
def *:*(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def +(y: Rep[SparseMatrix[T]])(implicit ev0: Arith[T]): Rep[SparseMatrix[T]]
def +(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def +(y: Rep[T])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def -(y: Rep[SparseMatrix[T]])(implicit ev0: Arith[T]): Rep[SparseMatrix[T]]
def -(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def -(y: Rep[T])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def /(y: Rep[SparseMatrix[T]])(implicit ev0: Arith[T]): Rep[SparseMatrix[T]]
def /(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def /(y: Rep[T])(implicit ev0: Arith[T]): Rep[SparseMatrix[T]]
def Clone(): Rep[SparseMatrix[T]]
def abs()(implicit ev0: Arith[T]): Rep[SparseMatrix[T]]
def apply(y: Rep[Int], z: Rep[Int]): Rep[T]
def apply(y: Rep[Int]): Rep[SparseVectorView[T]]
def apply(y: Rep[IndexVector]): Rep[SparseMatrix[T]]
def apply(y: Rep[IndexVector], z: IndexWildcard): Rep[SparseMatrix[T]]
def apply(rows: Rep[IndexVector], cols: Rep[IndexVector]): Rep[SparseMatrix[T]]
def apply(y: IndexWildcard, z: Rep[IndexVector]): Rep[SparseMatrix[T]]
def colIndices(): Rep[IndexVector]
def countnz(y: (Rep[T]) => Rep[Boolean]): Rep[Int]
def filterCols(y: (Rep[SparseVectorView[T]]) => Rep[Boolean]): Rep[SparseMatrix[T]]
def filterRows(y: (Rep[SparseVectorView[T]]) => Rep[Boolean]): Rep[SparseMatrix[T]]
def findCols(y: (Rep[SparseVectorView[T]]) => Rep[Boolean]): Rep[IndexVector]
def findRows(y: (Rep[SparseVectorView[T]]) => Rep[Boolean]): Rep[IndexVector]
def foreachCol(y: (Rep[SparseVectorView[T]]) => Rep[Unit]): Rep[Unit]
def foreachRow(y: (Rep[SparseVectorView[T]]) => Rep[Unit]): Rep[Unit]
def foreachnz(y: (Rep[T]) => Rep[Unit]): Rep[Unit]
def getCol(y: Rep[Int]): Rep[SparseVectorView[T]]
def getCols(y: Rep[IndexVector]): Rep[SparseMatrix[T]]
def getRow(y: Rep[Int]): Rep[SparseVectorView[T]]
def getRows(y: Rep[IndexVector]): Rep[SparseMatrix[T]]
def makeDimsStr(): Rep[String]
def makeString()(implicit ev0: Stringable[T]): Rep[String]
def mapColsToVector(y: (Rep[SparseVectorView[T]]) => Rep[R]): Rep[SparseVector[R]]
def mapRowsToDenseVector(y: (Rep[SparseVectorView[T]]) => Rep[R]): Rep[DenseVector[R]]
def mapRowsToVector(y: (Rep[SparseVectorView[T]]) => Rep[R]): Rep[SparseVector[R]]
def mapnz(y: (Rep[T]) => Rep[R]): Rep[SparseMatrix[R]] Bulk
def max()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[T]
def maxCols()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[SparseVector[T]]
def maxRows()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[SparseVector[T]]
def mean()(implicit ev0: (Rep[T]) => Rep[Double]): Rep[Double]
def min()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[T] Ordering
def minCols()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[SparseVector[T]]
def minRows()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[SparseVector[T]]
def mutable(): Rep[SparseMatrixBuildable[T]]
def nnz(): Rep[Int]
def numCols(): Rep[Int]
def numRows(): Rep[Int] Accessors
def nz(asRow: Rep[Boolean] = true): Rep[DenseVector[T]]
def nzCols(): Rep[IndexVector]
def nzRows(): Rep[IndexVector]
def pprint()(implicit ev0: Stringable[T]): Rep[Unit]
def rowIndices(): Rep[IndexVector]
def size(): Rep[Int]
def slice(startRow: Rep[Int], endRow: Rep[Int], startCol: Rep[Int], endCol: Rep[Int]): Rep[SparseMatrix[T]]
def sliceCols(start: Rep[Int], end: Rep[Int]): Rep[SparseMatrix[T]]
def sliceRows(start: Rep[Int], end: Rep[Int]): Rep[SparseMatrix[T]]
def sum()(implicit ev0: Arith[T]): Rep[T]
def sumCols()(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def sumRows()(implicit ev0: Arith[T]): Rep[SparseVector[T]]
def t(): Rep[SparseMatrix[T]] Miscellaneous
def toDense(): Rep[DenseMatrix[T]]
def toString(): Rep[String]
def zipnz(y: Rep[DenseVector[B]])(z: (Rep[T],Rep[B]) => Rep[R]): Rep[SparseMatrix[R]]