creates a matrix where `rows' indicates rows. `rows' is an array of arrays, e.g, Matrix[[11, 12], [21, 22]]
creates a matrix where `rows' indicates rows. if optional argument `copy' is false, use the array as internal structure of the metrix without copying.
creates a new matrix using `columns` as set of colums vectors.
creates a matrix where `columns' indicates columns.
creates a diagonal matrix such that the diagal compornents is given by `values'.
creates an n-by-n scalar matrix such that the diagal compornent is given by `value'.
creates an n-by-n unit matrix.
creates an n-by-n zero matrix.
creates a 1-by-n matrix such the row vector is `row'. `row' is specifed as a Vector or an Array.
creates a 1-by-n matrix such that column vector is `column'. `column' is specifed as a Vector or an Array.
returns (i,j) compornent
returns the number of rows
returns the number of columns
returns the i-th row vector. when the block is supplied for the method, the block is iterated over all row vectors.
returns the jth column vector. when the block is supplied for the method, the block is iterated over all column vectors.
creates a matrix which is the result of iteration of given block over all compornents.
returns sub matrix. parameter is specified as the following:
Is regular?
Is singular? i.e. Is non-regular?
Is square?
times
plus
minus
self * m.inv
inverse
power
returns the determinant
returns the rank
returns the trace
returns the transposed
array of row vectors
array of column vectors
converts each element to Array
converts each element to Float
converts each element to Integer
converts each element to Rational
returns string representation
*1matrix.rbから英語のままとってきたので誰か訳してください。