File size: 204 Bytes
995244d
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from cupy._core.core import create_ufunc

rsqrt = create_ufunc(
    'cupy_rsqrt',
    ('e->e', 'f->f', 'd->d', 'F->F', 'D->D'),
    'out0 = rsqrt(in0)',
    doc='''Returns the reciprocal square root.''')