DenseMatrix

Companion:
class
class Object
trait Matchable
class Any

Type members

Value members

Concrete methods

def create[@specialized(Double, Int, Float, Long) V : Zero](rows: Int, cols: Int, data: Array[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.

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 : Semiring](rows: Int, cols: Int): 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 : Zero](rows: Int, cols: Int): 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 : Zero](rows: Int, cols: Int)(v: => V): DenseMatrix[V]
Inherited from:
MatrixConstructors
def rand[T : Zero](rows: Int, cols: Int, rand: Rand[T]): DenseMatrix[T]
Inherited from:
MatrixConstructors
def tabulate[@specialized(Double, Int, Float, Long) V : Zero](rows: Int, cols: Int)(f: (Int, Int) => V): DenseMatrix[V]
Inherited from:
MatrixConstructors

Implicits

Implicits

implicit def scalarOf[T]: ScalarOf[DenseMatrix[T], T]

Inherited implicits

Inherited from:
MatrixConstructors