MatrixI

scalation.mathstat.MatrixI
object MatrixI

The MatrixI object provides factory methods for classMatrixDwith integer elements. Low cost approach not requiring aMatrixI` class.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MatrixI.type

Members list

Value members

Concrete methods

def apply(dim: (Int, Int), u: Int*): MatrixD

Create a matrix from repeated integer values.

Create a matrix from repeated integer values.

Value parameters

dim

the (row, column) dimensions

u

the repeated integer values

Attributes

def apply(vs: VectorI*): MatrixD

Create a matrix from a variable argument list of integer vectors (row-wise). Use transpose to make it column-wise.

Create a matrix from a variable argument list of integer vectors (row-wise). Use transpose to make it column-wise.

Value parameters

vs

the vararg list of integer vectors

Attributes

def isIntegerValued(x: MatrixD): Boolean

Return whether the given matrix consists of only integer values.

Return whether the given matrix consists of only integer values.

Value parameters

x

the given matrix

Attributes

Return the given matrix where each element is rounded to the nearest integer.

Return the given matrix where each element is rounded to the nearest integer.

Value parameters

x

the given matrix

Attributes