diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-10-14 15:23:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 15:23:35 +0300 |
commit | 4ccfbe69b7a8c511d262a9759e576bb87ec119cc (patch) | |
tree | cc8102f44414cf856a5a87fb9c0f62bb149f3886 /doc/source/reference/c-api | |
parent | 820a439494aa8c5a199edadd6bf38af400f67caa (diff) | |
parent | faaf29998d421529113d0bf40dc432c1017544b7 (diff) | |
download | numpy-4ccfbe69b7a8c511d262a9759e576bb87ec119cc.tar.gz |
Merge pull request #17559 from takanori-pskq/i16217-remove-directives
DOC: Remove directives for some constants
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r-- | doc/source/reference/c-api/dtype.rst | 13 | ||||
-rw-r--r-- | doc/source/reference/c-api/ufunc.rst | 9 |
2 files changed, 6 insertions, 16 deletions
diff --git a/doc/source/reference/c-api/dtype.rst b/doc/source/reference/c-api/dtype.rst index 47b998302..a1a53cdb6 100644 --- a/doc/source/reference/c-api/dtype.rst +++ b/doc/source/reference/c-api/dtype.rst @@ -221,24 +221,17 @@ Defines Max and min values for integers ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -.. c:var:: NPY_MAX_INT{bits} - -.. c:var:: NPY_MAX_UINT{bits} - -.. c:var:: NPY_MIN_INT{bits} - +``NPY_MAX_INT{bits}``, ``NPY_MAX_UINT{bits}``, ``NPY_MIN_INT{bits}`` These are defined for ``{bits}`` = 8, 16, 32, 64, 128, and 256 and provide the maximum (minimum) value of the corresponding (unsigned) integer type. Note: the actual integer type may not be available on all platforms (i.e. 128-bit and 256-bit integers are rare). -.. c:var:: NPY_MIN_{type} - +``NPY_MIN_{type}`` This is defined for ``{type}`` = **BYTE**, **SHORT**, **INT**, **LONG**, **LONGLONG**, **INTP** -.. c:var:: NPY_MAX_{type} - +``NPY_MAX_{type}`` This is defined for all defined for ``{type}`` = **BYTE**, **UBYTE**, **SHORT**, **USHORT**, **INT**, **UINT**, **LONG**, **ULONG**, **LONGLONG**, **ULONGLONG**, **INTP**, **UINTP** diff --git a/doc/source/reference/c-api/ufunc.rst b/doc/source/reference/c-api/ufunc.rst index 05ddf0dba..9eb70c3fb 100644 --- a/doc/source/reference/c-api/ufunc.rst +++ b/doc/source/reference/c-api/ufunc.rst @@ -10,8 +10,7 @@ UFunc API Constants --------- -.. c:var:: UFUNC_ERR_{HANDLER} - +``UFUNC_ERR_{HANDLER}`` .. c:macro:: UFUNC_ERR_IGNORE .. c:macro:: UFUNC_ERR_WARN @@ -20,8 +19,7 @@ Constants .. c:macro:: UFUNC_ERR_CALL -.. c:var:: UFUNC_{THING}_{ERR} - +``UFUNC_{THING}_{ERR}`` .. c:macro:: UFUNC_MASK_DIVIDEBYZERO .. c:macro:: UFUNC_MASK_OVERFLOW @@ -46,8 +44,7 @@ Constants .. c:macro:: UFUNC_FPE_INVALID -.. c:var:: PyUFunc_{VALUE} - +``PyUFunc_{VALUE}`` .. c:macro:: PyUFunc_One .. c:macro:: PyUFunc_Zero |