@ Override public MatMulOutput call ( final MatMulInput input ) throws Exception { final int index = input . getIndex ( ) ; final Matrix < Double > leftMatrix = input . getLeftMatrix ( ) ; final Matrix < Double > rightMatrix = input . getRightMatrix ( ) ; final Matrix < Double > result = leftMatrix . multiply ( rightMatrix ) ; return new MatMulOutput ( index , result ) ; }
Computes multiplication of two matrices .