conjugate() Instance Public methods 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 conj
conj() Instance Public methods Alias for: conjugate
component(i, j) Instance Public methods Alias for: []
column_vectors() Instance Public methods Returns an array of the column vectors of the matrix. See Vector.
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.
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
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.
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.
[](i, j) Instance Public methods Returns element (i,j) of the matrix. That is: row i, column j. element component
==(other) Instance Public methods Returns true if and only if the two matrices contain equal elements.
Page 1783 of 2275