round(ndigits=0) Instance Public methods Returns a matrix with entries rounded to the given precision (see Float#round)
regular?() Instance Public methods Returns true if this is a regular (i.e. non-singular) matrix.
rectangular() Instance Public methods Alias for: rect
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
real?() Instance Public methods Returns true if all entries of the matrix are real.
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
rank_e() Instance Public methods deprecated; use #rank
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
permutation?() Instance Public methods Returns true is this is a permutation 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.
Page 1779 of 2275