java - matrix multiplication on hadoop -


i'm looking best , easy way of matrix multiplication on hadoop java. meanwhile looked @ link http://www.norstad.org/matrix-multiply/index.html felt tough understand it.

overall: i've 2 files matrixa(m x n) , matrixb(n x m). want matrixc(m x m) multiplying , b. i'll pass above 2 files mapreduce program.

please me..

could reprocess matrix 2 files as:

 system.out.println( column + " , " + row + "\t" + value ); 

i thinking can map on both outputting:

context.write( new text( column + " , " + row ), new intwritable( value ) ); 

then reduce iterator , multiply values.

for( int val: value ) {     int result *= val; }  context.write( key, new intwritable( result )); 

Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -