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:

imaginary

imaginary() Instance Public methods Returns the imaginary part of the matrix

2015-04-18 08:13:16
rank

rank() Instance Public methods Returns the rank of the matrix. Beware that using

2015-04-18 09:13:50
real?

real?() Instance Public methods Returns true if all entries of

2015-04-18 09:30:22
elements_to_r

elements_to_r() Instance Public methods

2015-04-18 07:38:17
row

row(i) Instance Public methods Returns row vector number i of the

2015-04-18 09:50:31
regular?

regular?() Instance Public methods Returns true if this is a regular

2015-04-18 09:42:36
minor

minor(*param) Instance Public methods Returns a section of the matrix. The

2015-04-18 09:01:19
hash

hash() Instance Public methods Returns a hash-code for the matrix.

2015-04-18 08:00:55
lup

lup() Instance Public methods Returns the LUP decomposition of the matrix; see

2015-04-18 08:48:14
column_vector

column_vector(column) Class Public methods Creates a single-column matrix where

2015-04-18 05:08:11