| Description | JRuby Details | Architecture | JRuby Extensions | Data Model | See Also |
| Method | JLMatrix Implementation |
| * (multiplication) | If the argument is a Matrix or a Vector, utilizes LAPACK DGEMM or DGEMV respectively. |
| ** (power) | Raises all elements of the matrix to the specified power individually |
| diagonal | Returns a Vector of all the matrix's diagonal elements |
| inverse | Uses LAPACK DGETRF and DGETRI functions to perform matrix inversion |
| reciprocal_condition (or rcond) | Computes the reciprocal condition of a matrix using LAPACK DLANGE->DGETRF->DGECON calls |
| to_java | Returns a two-dimensional Java array of doubles with elements equal to those in the matrix |
| Matrix.from_java(x) | Creates a Matrix from a two-dimensional Java array |
| Matrix.zeroes(m,n) | Creates a Matrix of dimension m-by-n filled with zeroes |
| Method | JLMatrix Implementation |
| ** (power) | Raises all elements of the matrix to the specified power individually |
| count (or length) | Alias for the size method |
| dot(x) | Computes the dot product with another vector using the LAPACK DDOT function |
| each | Yields each element of a vector to a block |
| mean | Calculates the mean of the vector |
| sort | Sorts the elements of a vector in ascending order and returns a new, resulting vector |
| standard_deviation | Computes the standard deviation of a vector using a series of LAPACK calls |
| sum | Computes the sum of all elements |
| sum_squared | Calculates the sum of the squares of all elements |
| to_java | Returns a one-dimensional Java array of doubles containing values equivalent to those in the vector. |
| Vector.from_java(x) | Creates a vector from a one-dimensional Java array |
| Vector.ones(n) | Creates a vector of length n filled with ones |
| Vector.zeroes(n) | Creates a vector of length n filled with zeroes |
| Method | JLMatrix Implementation |
| (Fixnum).* (multiplication) (Bignum).* (multiplication) (Float).* (multiplication) |
If the argument is a Matrix or Vector, all elements are multiplied by the value, and an object of the same type and size as the argument is returned |
| Math::sqrt(x) | If the argument is a Matrix or Vector, an object of the same type and size is returned containing the square root of all elements. |
|
|