rg.wtdsums function

Calculate Weighted Sums for a Matrix