Returns a string containing a human-readable representation of the ipaddr. (“#<IPAddr: family:address/mask>”)
Log an UNKNOWN
message. This will be printed no matter what the logger’s level is.
See info
for more information.
Creates a matrix where the diagonal elements are composed of values
.
Matrix.diagonal(9, 5, -3) => 9 0 0 0 5 0 0 0 -3
Returns the (row, column) cofactor which is obtained by multiplying the first minor by (-1)**(row + column).
Matrix.diagonal(9, 5, -3, 4).cofactor(1, 1) => -108
Returns true
if this is a diagonal matrix. Raises an error if matrix is not square.
Returns true
if this is an hermitian matrix. Raises an error if matrix is not square.
Returns true
if this is an orthogonal matrix Raises an error if matrix is not square.
Returns true
if this is an antisymmetric matrix. Raises an error if matrix is not square.
Returns true
if this is a unitary matrix Raises an error if matrix is not square.
Returns a matrix with entries rounded to the given precision (see Float#round
)
Returns the conjugate 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]].conjugate => 1-2i -i 0 1 2 3
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
Overrides Object#inspect
Returns a vector with entries rounded to the given precision (see Float#round
)
Creates a single-row matrix from this vector.
Overrides Object#inspect
Returns an incremented value of default
according to arg
.
Directs to reject specified class argument.
t
Argument class specifier, any object including Class
.
reject(t)