Skip to content

Commit 7bde4c6

Browse files
committed
comment for fabs registration
1 parent 1cf98b8 commit 7bde4c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

quaddtype/numpy_quaddtype/src/umath/unary_ops.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ init_quad_unary_ops(PyObject *numpy)
156156
if (create_quad_unary_ufunc<quad_absolute, ld_absolute>(numpy, "absolute") < 0) {
157157
return -1;
158158
}
159+
// fabs is simialr to absolute, just not handles complex values (we neither)
160+
// registering the absolute here
159161
if (create_quad_unary_ufunc<quad_absolute, ld_absolute>(numpy, "fabs") < 0) {
160162
return -1;
161163
}

0 commit comments

Comments
 (0)