minor(*param) Instance Public methods Returns a section of the matrix. The parameters are either: start_row, nrows, start_col, ncols; OR row_range, col_range Matrix.diagonal(9, 5, -3).minor(0..1, 0..2) => 9 0 0 0 5 0 Like Array#[], negative indices count backward from the end of the row or column (-1 is the last element). Returns nil if the starting row or column is greater than #row_count or #column_count respectively.
normal?() Instance Public methods Returns true is this is a normal matrix. Raises an error if matrix is not square.
orthogonal?() Instance Public methods Returns true is this is an orthogonal matrix Raises an error if matrix is not square.
permutation?() Instance Public methods Returns true is this is a permutation matrix Raises an error if matrix is not square.
rank() Instance Public methods Returns the rank of the matrix. Beware that using Float values can yield erroneous results because of their lack of precision. Consider using exact types like Rational or BigDecimal instead. Matrix[[7,6], [3,9]].rank => 2
rank_e() Instance Public methods deprecated; use #rank
real() Instance Public methods Returns the real part of the matrix. Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]] => 1+2i i 0 1 2 3 Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].real => 1 0 0 1 2 3
real?() Instance Public methods Returns true if all entries of the matrix are real.
rect() Instance Public methods Returns an array containing matrices corresponding to the real and imaginary parts of the matrix m.rect == [m.real, m.imag] # ==> true for all matrices m rectangular
rectangular() Instance Public methods Alias for: rect
Page 553 of 11844