def sapyb(self, a, y, b, out, num_threads = NUM_THREADS):
r'''performs axpby element-wise on the BlockDataContainer containers'''
if out is None:
out = self*0
kwargs = {'a':a, 'b':b, 'out':out, 'num_threads': NUM_THREADS}
return self.binary_operations(BlockDataContainer.SAPYB, y, **kwargs)
In order to work with other code (e.g
SVRGFunction)BlockDataContainer.sapybmethod needs to be able to acceptout=Noneand should return aBlockDataContainerCurrently throws error in
SVRG.approximate_gradient