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:

square?

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

2015-04-18 10:10:43
row_vectors

row_vectors() Instance Public methods Returns an array of the row vectors of

2015-04-18 10:02:57
zero?

zero?() Instance Public methods Returns true is this is a matrix

2015-04-18 10:57:01
column_vectors

column_vectors() Instance Public methods Returns an array of the column vectors

2015-04-18 06:42:03
I

I(n) Class Public methods Alias for:

2015-04-18 04:54:09
each_with_index

each_with_index(which = :all) Instance Public methods Same as

2015-04-18 07:16:50
unitary?

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

2015-04-18 10:52:40
diagonal?

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

2015-04-18 07:08:59
symmetric?

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

2015-04-18 10:15:46
imag

imag() Instance Public methods Alias for:

2015-04-18 08:08:25