this method do something similar to a Matrix multiplying col-Vector operation.
the input blockMatrixRDD must have the same cols with the input dvec
and the gridPartitioner parameter decide how the blockMatrixRDD is partitioned.
the f function defined what operator will be executed between the joined blockMatrix element
and the coresponding dvec partition.
What changes were proposed in this pull request?
1. add two
VFUtils
helper methodsblockMatrixHorzZipVec
andblockMatrixVertZipVec
this method do something similar to a Matrix multiplying col-Vector operation. the input
blockMatrixRDD
must have the same cols with the inputdvec
and the gridPartitioner parameter decide how theblockMatrixRDD
is partitioned. thef
function defined what operator will be executed between the joined blockMatrix element and the corespondingdvec
partition.similar to
blockMatrixHorzZipVec
, but it is like a row-Vector multiplying Matrix operation.2. remove the
CustomCoalescer
class. (Useless code.)How was this patch tested?
Testcases for
blockMatrixHorzZipVec
andblockMatrixVertZipVec
added. OtherVFUtils
helper functions testcases also added.