412413414415416417418419420421422
@Override public Matrix sub(Matrix other) { if (this.isSameDim(other)) { Matrix dump = this.dup(); dump.subi(other); return dump; } else { errorProcessor .error("the two matrices should have same dimensions."); return null;
434435436437438439440441442443444
} @Override public Matrix sub(double scale) { Matrix dump = this.dup(); dump.subi(scale); return dump; } @Override public void multi(Matrix other) {