A generic Matrix class. Useful for working with 2D structures.
Type parameters
- A
-
The type of elements in the matrix. When
A
is a scala.Numeric type, a number of extension methods are made available which allow for basic mathematical matrix operations.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Returns the element at the given position (row, col)
Returns the element at the given position (row, col)
Attributes
Returns the column at the given index
Returns the column at the given index
Attributes
Computes the determinant of this matrix.
Returns true
if this matrix is equal to its own transpose.
Returns true
if this matrix is equal to its own transpose.
Attributes
Attributes
- Definition Classes
-
IterableOnce
Returns the row at the given index
Returns the row at the given index
Attributes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
Computes the trace of this matrix.
Returns the transpose of this matrix.
Inherited methods
Attributes
- Inherited from:
- IterableOnce
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- IterableOnce
Concrete fields
The height and width of this matrix.
The height and width of this matrix.
Attributes
The "area", or height
x width
, of this matrix.
The "area", or height
x width
, of this matrix.