Type:
Class
Constants:
SELECTORS : {all: true, diagonal: true, off_diagonal: true, lower: true, strict_lower: true, strict_upper: true, upper: true}.freeze

The Matrix class represents a mathematical matrix. It provides methods for creating matrices, operating on them arithmetically and algebraically, and determining their mathematical properties (trace, rank, inverse, determinant).

Method Catalogue

To create a matrix:

To access Matrix elements/columns/rows/submatrices/properties:

Properties of a matrix:

Matrix arithmetic:

Matrix functions:

Matrix decompositions:

Complex arithmetic:

  • conj

  • conjugate

  • imag

  • imaginary

  • real

  • rect

  • rectangular

Conversion to other data types:

String representations:

hermitian?

hermitian?() Instance Public methods Returns true is this is an

2015-04-18 08:07:20
inverse

inverse() Instance Public methods Returns the inverse of the matrix.

2015-04-18 08:35:58
t

t() Instance Public methods Alias for:

2015-04-18 10:23:06
clone

clone() Instance Public methods Returns a clone of the matrix, so that the contents

2015-04-18 06:25:03
determinant

determinant() Instance Public methods Returns the determinant of the matrix

2015-04-18 07:01:37
scalar

scalar(n, value) Class Public methods Creates an n by n

2015-04-18 05:47:35
empty

empty(row_count = 0, column_count = 0) Class Public methods Creates a empty

2015-04-18 05:25:30
inspect

inspect() Instance Public methods Overrides

2015-04-18 08:25:51
*

*(m) Instance Public methods Matrix

2015-04-18 05:54:18
element

element(i, j) Instance Public methods Alias for:

2015-04-18 07:27:02