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
Post a Comment