Matrix2

com.phasmid.majabigwaduce.matrix.Matrix2
See theMatrix2 companion class
object Matrix2

Companion object for the Matrix2 class, offering utility methods and definitions related to matrix creation and operations, as well as given values for configuration purposes.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Matrix2.type

Members list

Value members

Concrete methods

def identity[T : Numeric](n: Int): Matrix2[T]

Method to create an identity matrix of order n.

Method to create an identity matrix of order n.

Type parameters

T

the underlying type.

Value parameters

n

the required size of the rows and columns.

Attributes

Returns

a matrix of size n x n with 1s down the diagonal and zeros elsewhere.

Givens

Givens

given atMost: Duration