-(m) Instance Public methods Matrix subtraction. Matrix[[1,5], [4,2]] - Matrix[[9,3], [-4,1]] => -8 2 8 1
/(other) Instance Public methods Matrix division (multiplication by the inverse). Matrix[[7,6], [3,9]] / Matrix[[2,9], [3,1]] => -7 1 -3 -6
==(other) Instance Public methods Returns true if and only if the two matrices contain equal elements.
[](i, j) Instance Public methods Returns element (i,j) of the matrix. That is: row i, column j. element component
clone() Instance Public methods Returns a clone of the matrix, so that the contents of each do not reference identical objects. There should be no good reason to do this since Matrices are immutable.
coerce(other) Instance Public methods The coerce method provides support for Ruby type coercion. This coercion mechanism is used by Ruby to handle mixed-type numeric operations: it is intended to find a compatible common type between the two operands of the operator. See also Numeric#coerce.
collect() Instance Public methods Returns a matrix that is the result of iteration of the given block over all elements of the matrix. Matrix[ [1,2], [3,4] ].collect { |e| e**2 } => 1 4 9 16 map
column(j) Instance Public methods Returns column vector number j of the matrix as a Vector (starting at 0 like an array). When a block is given, the elements of that vector are iterated.
column_vectors() Instance Public methods Returns an array of the column vectors of the matrix. See Vector.
component(i, j) Instance Public methods Alias for: []
Page 549 of 11844