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:

empty?

empty?() Instance Public methods Returns true if this is an empty

2015-04-18 07:43:10
find_index

find_index(*args) Instance Public methods Alias for:

2015-04-18 07:54:37
determinant_e

determinant_e() Instance Public methods deprecated; use

2015-04-18 07:03:44
eigensystem

eigensystem() Instance Public methods Returns the Eigensystem of the matrix;

2015-04-18 07:24:23
rect

rect() Instance Public methods Returns an array containing matrices corresponding

2015-04-18 09:34:15
det

det() Instance Public methods Alias for:

2015-04-18 06:53:28
tr

tr() Instance Public methods Alias for:

2015-04-18 10:37:54
conj

conj() Instance Public methods Alias for:

2015-04-18 06:49:37
det_e

det_e() Instance Public methods Alias for:

2015-04-18 07:00:33
component

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

2015-04-18 06:46:38