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:

rows

rows(rows, copy = true) Class Public methods Creates a matrix where rows

2015-04-18 05:44:50
row_vector

row_vector(row) Class Public methods Creates a single-row matrix where the values

2015-04-18 05:41:10
row_count

row_count() Instance Public methods Returns the number of rows.

2015-04-18 09:55:01
real

real() Instance Public methods Returns the real part of the matrix.

2015-04-18 09:24:12
elements_to_i

elements_to_i() Instance Public methods

2015-04-18 07:32:42