def compute_r(self):
        comps = self.components.r
        n = len(comps)
        result = self.mtx.dot(self.sh_coeffs[:,:n].dot(col(self.components.r)))
        result[result<0] = 0
        return result.reshape((-1,self.num_channels))
dataset/ETHPy150Open mattloper/opendr/lighting.py/SphericalHarmonics.compute_r/original