e20301a8eda29405fea73f40575b9832ee6bb31a,scikits/cuda/integrate.py,,trapz2d,#Any#Any#Any#,250
Before Change
if float_type == np.complex64:
return (np.float32(result.x)+1j*np.float32(result.y))*dxdy
elif float_type == np.complex128:
return (np.float64(result.x)+1j*np.float64(result.y))*dxdy
elif float_type == np.float32:
return np.float32(result)*dxdy
else:
return np.float64(result)*dxdy
if __name__ == "__main__":
import doctest
doctest.testmod()
After Change
result = cublas_func(x_gpu.size, x_gpu.gpudata, 1,
trapz_mult_gpu.gpudata, 1)
return float_type(dx)*float_type(dy)*result
if __name__ == "__main__":
import doctest
doctest.testmod()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: lebedov/scikit-cuda
Commit Name: e20301a8eda29405fea73f40575b9832ee6bb31a
Time: 2011-11-02
Author: lev@columbia.edu
File Name: scikits/cuda/integrate.py
Class Name:
Method Name: trapz2d
Project Name: lebedov/scikit-cuda
Commit Name: e20301a8eda29405fea73f40575b9832ee6bb31a
Time: 2011-11-02
Author: lev@columbia.edu
File Name: scikits/cuda/integrate.py
Class Name:
Method Name: trapz2d
Project Name: lebedov/scikit-cuda
Commit Name: e20301a8eda29405fea73f40575b9832ee6bb31a
Time: 2011-11-02
Author: lev@columbia.edu
File Name: scikits/cuda/integrate.py
Class Name:
Method Name: trapz
Project Name: open-mmlab/mmcv
Commit Name: 9332a1dd29b5aefb82d7c15e79e73908d5c09fee
Time: 2020-02-19
Author: 34728304+JoannaLXY@users.noreply.github.com
File Name: mmcv/image/transforms/normalize.py
Class Name:
Method Name: imnormalize