}
@Override
public Matrix product(final Matrix other) {
if (this.getColumnsNum() == other.getRowsNum()) {
Matrix temp = new InMemoryJBlasMatrix(this.getRowsNum(),
other.getColumnsNum(), errorProcessor);
// System.out.println(temp + "\n");
for (int i = 0; i < this.getRowsNum(); i++) {
for (int j = 0; j < other.getColumnsNum(); j++) {
// System.out.println(this.getRow(i) + "\t" +
// other.getColumn(j) + "\n");
// System.out.println(i + ":" + j + "\t" +
// this.getRow(i).dot(other.getColumn(j)));
// temp.put(i, j, 0.0);
temp.put(i, j, this.getRow(i).dot(other.getColumn(j)));
}
}
return temp;
} else {
errorProcessor