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:

eigen

eigen() Instance Public methods Alias for:

2015-04-18 07:20:39
zero

zero(row_count, column_count = row_count) Class Public methods Creates a zero

2015-04-18 05:52:08
normal?

normal?() Instance Public methods Returns true is this is a normal

2015-04-18 09:03:30
upper_triangular?

upper_triangular?() Instance Public methods Returns true is this

2015-04-18 10:55:53
columns

columns(columns) Class Public methods Creates a matrix using columns

2015-04-18 05:14:45
singular?

singular?() Instance Public methods Returns true is this is a singular

2015-04-18 10:04:43
inv

inv() Instance Public methods Alias for:

2015-04-18 08:29:13
map

map() Instance Public methods Alias for:

2015-04-18 08:57:20
==

==(other) Instance Public methods Returns true if and only if the

2015-04-18 06:11:26
-

-(m) Instance Public methods Matrix

2015-04-18 06:04:53