You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 123 Next »

Multiplication of matrices

  public static void main() throws IOException {
    HamaConfiguration conf = new HamaConfiguration();
    Matrix m1 = DenseMatrix.random(conf, 1000, 1000);
    Matrix m2 = DenseMatrix.random(conf, 1000, 1000);

    Matrix result = m1.mult(m2);
    // or multiplication using blocking algorithm
    Matrix result = m1.mult(m2, 100);
 
  }
  • No labels