Lines Matching defs:Matrix
22 public class Matrix {
33 public Matrix(int rows, int cols) {
48 public Matrix(int stride, double[] values) {
58 * @param that is the source Matrix.
60 public Matrix(Matrix that) {
102 public Matrix plus(Matrix that) {
103 return plus(that, new Matrix(n, m));
115 public Matrix plus(Matrix that, Matrix result) {
132 public Matrix minus(Matrix that) {
133 return minus(that, new Matrix(n, m));
144 public Matrix minus(Matrix that, Matrix result) {
161 public Matrix dot(Matrix that) {
162 return dot(that, new Matrix(this.n, that.m));
175 public Matrix dot(Matrix that, Matrix result) {
196 public Matrix transpose() {
197 return transpose(new Matrix(m, n));
209 public Matrix transpose(Matrix result) {
225 public Matrix inverse() {
226 return inverse(new Matrix(n, m), new Matrix(n, 2 * m));
238 public Matrix inverse(Matrix result, Matrix scratch) {
301 if (!(that instanceof Matrix)) return false;
302 Matrix other = (Matrix) that;