DenseMatrix¶
<auto-generated stub>
Static methods¶
def apply(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[T]]
def apply(x: Rep[ForgeArray[T]], y: Rep[Int], z: Rep[Int]): Rep[DenseMatrix[T]]
def apply(x: Rep[DenseVector[DenseVector[T]]]): Rep[DenseMatrix[T]]
def apply(x: Rep[DenseVector[DenseVectorView[T]]]): Rep[DenseMatrix[T]]
def apply(x: Rep[DenseVector[T]]*): Rep[DenseMatrix[T]]
def block(x: Rep[DenseVector[DenseMatrix[T]]]*): Rep[DenseMatrix[T]]
def diag(x: Rep[Int], y: Rep[DenseVector[T]]): Rep[DenseMatrix[T]]
def identity(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Double]]
def identity(x: Rep[Int]): Rep[DenseMatrix[Double]]
def ones(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Double]]
def onesf(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Float]]
def rand(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Double]]
def randf(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Float]]
def randn(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Double]]
def randnf(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Float]]
def zeros(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Double]]
def zerosf(x: Rep[Int], y: Rep[Int]): Rep[DenseMatrix[Float]]
Infix methods¶
def *(y: Rep[T])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def *(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def *(y: Rep[SparseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def *(y: Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def *(y: Rep[SparseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def *(y: Rep[Int]): Rep[DenseMatrix[Int]]
def *(y: Rep[Float]): Rep[DenseMatrix[Float]]
def *(y: Rep[Double]): Rep[DenseMatrix[Double]]
def *(y: Rep[Int]): Rep[DenseMatrix[Float]]
def *(y: Rep[Float]): Rep[DenseMatrix[Float]]
def *(y: Rep[Double]): Rep[DenseMatrix[Double]]
def *(y: Rep[Int]): Rep[DenseMatrix[Double]]
def *(y: Rep[Float]): Rep[DenseMatrix[Double]]
def *(y: Rep[Double]): Rep[DenseMatrix[Double]]
def *(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Int]]
def *(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def *(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def *(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Float]]
def *(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def *(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def *(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Double]]
def *(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Double]]
def *(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def *(y: Rep[DenseVector[Int]]): Rep[DenseVector[Int]]
def *(y: Rep[DenseVector[Float]]): Rep[DenseVector[Float]]
def *(y: Rep[DenseVector[Double]]): Rep[DenseVector[Double]]
def *(y: Rep[DenseVector[Int]]): Rep[DenseVector[Float]]
def *(y: Rep[DenseVector[Float]]): Rep[DenseVector[Float]]
def *(y: Rep[DenseVector[Double]]): Rep[DenseVector[Double]]
def *(y: Rep[DenseVector[Int]]): Rep[DenseVector[Double]]
def *(y: Rep[DenseVector[Float]]): Rep[DenseVector[Double]]
def *(y: Rep[DenseVector[Double]]): Rep[DenseVector[Double]]
def *:*(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def *:*(y: Rep[SparseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def *:*(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Int]]
def *:*(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def *:*(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def *:*(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Float]]
def *:*(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def *:*(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def *:*(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Double]]
def *:*(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Double]]
def *:*(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def *=(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[Unit]
def *=(y: Rep[T])(implicit ev0: Arith[T]): Rep[Unit]
def +(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]] Math
def +(y: Rep[T])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def +(y: Rep[SparseMatrix[T]])(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def +(y: Rep[Int]): Rep[DenseMatrix[Int]]
def +(y: Rep[Float]): Rep[DenseMatrix[Float]]
def +(y: Rep[Double]): Rep[DenseMatrix[Double]]
def +(y: Rep[Int]): Rep[DenseMatrix[Float]]
def +(y: Rep[Float]): Rep[DenseMatrix[Float]]
def +(y: Rep[Double]): Rep[DenseMatrix[Double]]
def +(y: Rep[Int]): Rep[DenseMatrix[Double]]
def +(y: Rep[Float]): Rep[DenseMatrix[Double]]
def +(y: Rep[Double]): Rep[DenseMatrix[Double]]
def +(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Int]]
def +(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def +(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def +(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Float]]
def +(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def +(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def +(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Double]]
def +(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Double]]
def +(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def +=(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[Unit] Math
def +=(y: Rep[T])(implicit ev0: Arith[T]): Rep[Unit]
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[DenseMatrix[T]]
def -(y: Rep[Int]): Rep[DenseMatrix[Int]]
def -(y: Rep[Float]): Rep[DenseMatrix[Float]]
def -(y: Rep[Double]): Rep[DenseMatrix[Double]]
def -(y: Rep[Int]): Rep[DenseMatrix[Float]]
def -(y: Rep[Float]): Rep[DenseMatrix[Float]]
def -(y: Rep[Double]): Rep[DenseMatrix[Double]]
def -(y: Rep[Int]): Rep[DenseMatrix[Double]]
def -(y: Rep[Float]): Rep[DenseMatrix[Double]]
def -(y: Rep[Double]): Rep[DenseMatrix[Double]]
def -(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Int]]
def -(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def -(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def -(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Float]]
def -(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def -(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def -(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Double]]
def -(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Double]]
def -(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def -=(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[Unit]
def -=(y: Rep[T])(implicit ev0: Arith[T]): Rep[Unit]
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[DenseMatrix[T]]
def /(y: Rep[Int]): Rep[DenseMatrix[Int]]
def /(y: Rep[Float]): Rep[DenseMatrix[Float]]
def /(y: Rep[Double]): Rep[DenseMatrix[Double]]
def /(y: Rep[Int]): Rep[DenseMatrix[Float]]
def /(y: Rep[Float]): Rep[DenseMatrix[Float]]
def /(y: Rep[Double]): Rep[DenseMatrix[Double]]
def /(y: Rep[Int]): Rep[DenseMatrix[Double]]
def /(y: Rep[Float]): Rep[DenseMatrix[Double]]
def /(y: Rep[Double]): Rep[DenseMatrix[Double]]
def /(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Int]]
def /(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def /(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def /(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Float]]
def /(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Float]]
def /(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def /(y: Rep[DenseMatrix[Int]]): Rep[DenseMatrix[Double]]
def /(y: Rep[DenseMatrix[Float]]): Rep[DenseMatrix[Double]]
def /(y: Rep[DenseMatrix[Double]]): Rep[DenseMatrix[Double]]
def /=(y: Rep[DenseMatrix[T]])(implicit ev0: Arith[T]): Rep[Unit]
def /=(y: Rep[T])(implicit ev0: Arith[T]): Rep[Unit]
def :<(y: Rep[DenseMatrix[T]])(implicit ev0: Ordering[T]): Rep[DenseMatrix[Boolean]]
def :>(y: Rep[DenseMatrix[T]])(implicit ev0: Ordering[T]): Rep[DenseMatrix[Boolean]]
def <<(y: Rep[DenseVector[T]]): Rep[DenseMatrix[T]]
def <<(y: Rep[DenseMatrix[T]]): Rep[DenseMatrix[T]]
def <<=(y: Rep[DenseVector[T]]): Rep[Unit]
def <<=(y: Rep[DenseMatrix[T]]): Rep[Unit]
def <<|(y: Rep[DenseVector[T]]): Rep[DenseMatrix[T]]
def <<|(y: Rep[DenseMatrix[T]]): Rep[DenseMatrix[T]]
def <<|=(y: Rep[DenseVector[T]]): Rep[Unit]
def <<|=(y: Rep[DenseMatrix[T]]): Rep[Unit]
def Clone(): Rep[DenseMatrix[T]] Miscellaneous
def (y: Rep[DenseVector[Double]]): Rep[DenseVector[Double]]
def abs()(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def apply(y: Rep[Int], z: Rep[Int]): Rep[T]
def apply(y: Rep[Int]): Rep[DenseVectorView[T]] Accessors
def apply(y: Rep[IndexVector]): Rep[DenseMatrix[T]]
def apply(y: Rep[IndexVector], z: IndexWildcard): Rep[DenseMatrix[T]]
def apply(rows: Rep[IndexVector], cols: Rep[IndexVector]): Rep[DenseMatrix[T]]
def apply(y: IndexWildcard, z: Rep[IndexVector]): Rep[DenseMatrix[T]]
def colIndices(): Rep[IndexVector]
def count(y: (Rep[T]) => Rep[Boolean]): Rep[Int]
def diag(): Rep[DenseVector[T]]
def exp()(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def filterCols(y: (Rep[DenseVectorView[T]]) => Rep[Boolean]): Rep[DenseMatrix[T]]
def filterRows(y: (Rep[DenseVectorView[T]]) => Rep[Boolean]): Rep[DenseMatrix[T]]
def findCols(y: (Rep[DenseVectorView[T]]) => Rep[Boolean]): Rep[IndexVector]
def findRows(y: (Rep[DenseVectorView[T]]) => Rep[Boolean]): Rep[IndexVector]
def flattenToVector(): Rep[DenseVector[T]] Conversions
def foreach(y: (Rep[T]) => Rep[Unit]): Rep[Unit]
def foreachCol(y: (Rep[DenseVectorView[T]]) => Rep[Unit]): Rep[Unit]
def foreachRow(y: (Rep[DenseVectorView[T]]) => Rep[Unit]): Rep[Unit]
def getCol(y: Rep[Int]): Rep[DenseVectorView[T]]
def getCols(y: Rep[IndexVector]): Rep[DenseMatrix[T]]
def getRow(y: Rep[Int]): Rep[DenseVectorView[T]]
def getRows(y: Rep[IndexVector]): Rep[DenseMatrix[T]]
def groupColsBy(y: (Rep[DenseVectorView[T]]) => Rep[K]): Rep[ForgeHashMap[K,:doc:densematrix[T]]]
def groupRowsBy(y: (Rep[DenseVectorView[T]]) => Rep[K]): Rep[ForgeHashMap[K,:doc:densematrix[T]]] Bulk
def indices(): Rep[IndexVector]
def insertAllCols(pos: Rep[Int], xs: Rep[DenseMatrix[T]]): Rep[Unit]
def insertAllRows(pos: Rep[Int], xs: Rep[DenseMatrix[T]]): Rep[Unit]
def insertCol(pos: Rep[Int], y: Rep[DenseVector[T]]): Rep[Unit]
def insertRow(pos: Rep[Int], y: Rep[DenseVector[T]]): Rep[Unit]
def log()(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def makeDimsStr(): Rep[String]
def makeString()(implicit ev0: Stringable[T]): Rep[String]
def map(y: (Rep[T]) => Rep[R]): Rep[DenseMatrix[R]] Bulk
def mapCols(y: (Rep[DenseVectorView[T]]) => Rep[DenseVector[R]]): Rep[DenseMatrix[R]]
def mapColsToVector(y: (Rep[DenseVectorView[T]]) => Rep[R]): Rep[DenseVector[R]]
def mapRows(y: (Rep[DenseVectorView[T]]) => Rep[DenseVector[R]]): Rep[DenseMatrix[R]]
def mapRowsToVector(y: (Rep[DenseVectorView[T]]) => Rep[R]): Rep[DenseVector[R]]
def max()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[T]
def maxCols()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[DenseVector[T]]
def maxIndex()(implicit ev0: Ordering[T]): Rep[Tup2[Int,:doc:int]]
def maxRows()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[DenseVector[T]]
def mean()(implicit ev0: (Rep[T]) => Rep[Double]): Rep[Double]
def min()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[T]
def minCols()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[DenseVector[T]]
def minIndex()(implicit ev0: Ordering[T]): Rep[Tup2[Int,:doc:int]]
def minRows()(implicit ev0: Ordering[T],ev1: HasMinMax[T]): Rep[DenseVector[T]] Ordering
def mutable(): Rep[DenseMatrix[T]]
def mview(startRow: Rep[Int], endRow: Rep[Int], startCol: Rep[Int], endCol: Rep[Int]): Rep[DenseMatrixView[T]]
def numCols(): Rep[Int]
def numRows(): Rep[Int] Accessors
def pprint()(implicit ev0: Stringable[T]): Rep[Unit] Miscellaneous
def prod()(implicit ev0: Arith[T]): Rep[T]
def reduce(y: (Rep[T],Rep[T]) => Rep[T])(implicit ev0: Arith[T]): Rep[T]
def reduceCols(y: (Rep[DenseVector[T]],Rep[DenseVector[T]]) => Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def reduceRows(y: (Rep[DenseVector[T]],Rep[DenseVector[T]]) => Rep[DenseVector[T]])(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def removeCol(pos: Rep[Int]): Rep[Unit]
def removeCols(pos: Rep[Int], num: Rep[Int]): Rep[Unit]
def removeRow(pos: Rep[Int]): Rep[Unit]
def removeRows(pos: Rep[Int], num: Rep[Int]): Rep[Unit]
def replicate(y: Rep[Int], z: Rep[Int]): Rep[DenseMatrix[T]]
def rowIndices(): Rep[IndexVector]
def size(): Rep[Int]
def slice(startRow: Rep[Int], endRow: Rep[Int], startCol: Rep[Int], endCol: Rep[Int]): Rep[DenseMatrixView[T]]
def sliceCols(start: Rep[Int], end: Rep[Int]): Rep[DenseMatrixView[T]]
def sliceRows(start: Rep[Int], end: Rep[Int]): Rep[DenseMatrixView[T]]
def sortColsBy(y: (Rep[DenseVectorView[T]]) => Rep[B])(implicit ev0: Ordering[B]): Rep[DenseMatrix[T]]
def sortRowsBy(y: (Rep[DenseVectorView[T]]) => Rep[B])(implicit ev0: Ordering[B]): Rep[DenseMatrix[T]] Ordering
def stddev()(implicit ev0: (Rep[T]) => Rep[Double]): Rep[Double]
def sum()(implicit ev0: Arith[T]): Rep[T]
def sumCols()(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def sumRows()(implicit ev0: Arith[T]): Rep[DenseVector[T]]
def t(): Rep[DenseMatrix[T]]
def toArray(): Rep[ForgeArray[T]]
def toBoolean()(implicit ev0: (Rep[T]) => Rep[Boolean]): Rep[DenseMatrix[Boolean]] Conversions
def toDouble()(implicit ev0: (Rep[T]) => Rep[Double]): Rep[DenseMatrix[Double]]
def toFloat()(implicit ev0: (Rep[T]) => Rep[Float]): Rep[DenseMatrix[Float]]
def toInt()(implicit ev0: (Rep[T]) => Rep[Int]): Rep[DenseMatrix[Int]]
def toSparse(): Rep[SparseMatrix[T]]
def toString(): Rep[String]
def tril()(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def trim(): Rep[Unit]
def triu()(implicit ev0: Arith[T]): Rep[DenseMatrix[T]]
def unary_-(): Rep[DenseMatrix[Int]]
def unary_-(): Rep[DenseMatrix[Float]]
def unary_-(): Rep[DenseMatrix[Double]]
def update(y: Rep[Int], z: Rep[Int], v: Rep[T]): Rep[Unit]
def update(y: Rep[Int], z: Rep[DenseVector[T]]): Rep[Unit]
def update(y: Rep[Int], z: Rep[DenseVectorView[T]]): Rep[Unit]
def update(y: Rep[IndexVector], z: Rep[DenseMatrix[T]]): Rep[Unit]
def updateCol(y: Rep[Int], z: Rep[DenseVector[T]]): Rep[Unit]
def updateCol(y: Rep[Int], z: Rep[DenseVectorView[T]]): Rep[Unit]
def updateCols(y: Rep[IndexVector], z: Rep[DenseMatrix[T]]): Rep[Unit]
def updateRow(y: Rep[Int], z: Rep[DenseVector[T]]): Rep[Unit]
def updateRow(y: Rep[Int], z: Rep[DenseVectorView[T]]): Rep[Unit]
def updateRows(y: Rep[IndexVector], z: Rep[DenseMatrix[T]]): Rep[Unit]
def variance()(implicit ev0: (Rep[T]) => Rep[Double]): Rep[Double]
def vview(start: Rep[Int], stride: Rep[Int], length: Rep[Int], isRow: Rep[Boolean]): Rep[DenseVectorView[T]]
def zip(y: Rep[DenseMatrix[B]])(z: (Rep[T],Rep[B]) => Rep[R]): Rep[DenseMatrix[R]]
Implicit methods¶
def dist(x: Rep[DenseMatrix[Double]], y: Rep[DenseMatrix[Double]]): Rep[Double]