DenseMatrix

object DenseMatrix extends MatrixConstructors[[V] =>> DenseMatrix[V]]
Companion
class
class Object
trait Matchable
class Any

Type members

Value members

Concrete methods

def create[@specialized(Double, Int, Float, Long) V](rows: Int, cols: Int, data: Array[V])(implicit evidence$3: Zero[V]): DenseMatrix[V]

Creates a new DenseMatrix using the provided array (not making a copy!). In generic contexts, prefer to use this (or the other create methd) instead of new DenseMatrix[V](rows, cols, data), which in general won't give specialized implementations.

Creates a new DenseMatrix using the provided array (not making a copy!). In generic contexts, prefer to use this (or the other create methd) instead of new DenseMatrix[V](rows, cols, data), which in general won't give specialized implementations.

def create[@specialized(Double, Int, Float, Long) V](rows: Int, cols: Int, data: Array[V], offset: Int, majorStride: Int, isTranspose: Boolean): DenseMatrix[V]

Creates a new DenseMatrix using the provided array (not making a copy!). In generic contexts, prefer to use this (or the other create methd) instead of new DenseMatrix[V](rows, cols, data), which in general won't give specialized implementations.

Creates a new DenseMatrix using the provided array (not making a copy!). In generic contexts, prefer to use this (or the other create methd) instead of new DenseMatrix[V](rows, cols, data), which in general won't give specialized implementations.

def eye[@specialized(Double, Int, Float, Long) V](dim: Int)(implicit evidence$7: ClassTag[V], evidence$8: Zero[V], evidence$9: Semiring[V]): DenseMatrix[V]

Creates a square diagonal array of size dim x dim, with 1's along the diagonal.

Creates a square diagonal array of size dim x dim, with 1's along the diagonal.

def horzcat[M, V](matrices: M*)(implicit ev: M <:< Matrix[V], opset: InPlaceImpl2[DenseMatrix[V], M], vman: ClassTag[V], zero: Zero[V]): DenseMatrix[V]

Horizontally tiles some matrices. They must have the same number of rows

Horizontally tiles some matrices. They must have the same number of rows

override def ones[@specialized(Int, Float, Double, Long) V](rows: Int, cols: Int)(implicit evidence$4: ClassTag[V], evidence$5: Zero[V], evidence$6: Semiring[V]): DenseMatrix[V]

Creates a matrix of all ones.

Creates a matrix of all ones.

Definition Classes
def vertcat[V](matrices: DenseMatrix[V]*)(implicit opset: InPlaceImpl2[DenseMatrix[V], DenseMatrix[V]], vman: ClassTag[V], zero: Zero[V]): DenseMatrix[V]

Vertically tiles some matrices. They must have the same number of columns

Vertically tiles some matrices. They must have the same number of columns

def zeros[@specialized(Double, Int, Float, Long) V](rows: Int, cols: Int)(implicit evidence$1: ClassTag[V], evidence$2: Zero[V]): DenseMatrix[V]

The standard way to create an empty matrix, size is rows * cols

The standard way to create an empty matrix, size is rows * cols

Inherited methods

def apply[R, @specialized(Double, Int, Float, Long) V](rows: R*)(implicit rl: LiteralRow[R, V], man: ClassTag[V], zero: Zero[V]): DenseMatrix[V]

Static constructor for a literal matrix.

Static constructor for a literal matrix.

Inherited from
MatrixConstructors
def fill[@specialized(Double, Int, Float, Long) V](rows: Int, cols: Int)(v: => V)(implicit evidence$7: ClassTag[V], evidence$8: Zero[V]): DenseMatrix[V]
Inherited from
MatrixConstructors
def rand[T](rows: Int, cols: Int, rand: Rand[T])(implicit evidence$11: ClassTag[T], evidence$12: Zero[T]): DenseMatrix[T]
Inherited from
MatrixConstructors
def tabulate[@specialized(Double, Int, Float, Long) V](rows: Int, cols: Int)(f: (Int, Int) => V)(implicit evidence$9: ClassTag[V], evidence$10: Zero[V]): DenseMatrix[V]
Inherited from
MatrixConstructors

Implicits

Implicits

implicit def canCreateZerosLike[V](implicit evidence$10: ClassTag[V], evidence$11: Zero[V]): CanCreateZerosLike[DenseMatrix[V], DenseMatrix[V]]
implicit def scalarOf[T]: ScalarOf[DenseMatrix[T], T]

Inherited implicits

implicit def canCreateZeros[T](implicit evidence$13: ClassTag[T], evidence$14: Zero[T]): CanCreateZeros[DenseMatrix[T], (Int, Int)]
Inherited from
MatrixConstructors