@Override final public Matrix times( final Matrix other) { if (other instanceof DiagonalMatrix) { return this.times((DiagonalMatrix) other); } else if (other instanceof DenseMatrix) { return this.times((DenseMatrix) other); } else if (other instanceof SparseMatrix) { return this.times((SparseMatrix) other); } else { return super.times(other); } }
@Override final public Matrix times( final Matrix other) { if (other instanceof DiagonalMatrix) { return this.times((DiagonalMatrix) other); } else if (other instanceof DenseMatrix) { return this.times((DenseMatrix) other); } else if (other instanceof SparseMatrix) { return this.times((SparseMatrix) other); } else { return super.times(other); } }
@Override final public Matrix times( final Matrix other) { if (other instanceof DiagonalMatrix) { return this.times((DiagonalMatrix) other); } else if (other instanceof DenseMatrix) { return this.times((DenseMatrix) other); } else if (other instanceof SparseMatrix) { return this.times((SparseMatrix) other); } else { return super.times(other); } }