Skip to content

Commit 55ab75d

Browse files
committed
doc some types
1 parent ffe7d07 commit 55ab75d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

doc/shared/sundials/Types.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@ code can use SUNDIALS without modifying the code to use ``sunrealtype``,
8888
``SUN_RCONST``, or the ``SUNR`` macros so long as the SUNDIALS libraries are built
8989
to use the corresponding precision (see :numref:`Installation.Options`).
9090

91+
For implementation reasons, SUNDIALS also defines the types:
92+
93+
.. c:type:: sunrealtype1d
94+
95+
This is a ``sunrealtype*`` which should be treated as 1D contiguous array.
96+
97+
.. c:type:: sunrealtype2d
98+
99+
This is a ``sunrealtype**`` which should be treated as 2D contiguous array.
100+
101+
.. c:type:: sunrealtype3d
102+
103+
This is a ``sunrealtype***`` which should be treated as 3D contiguous array.
104+
105+
91106
Integer types used for indexing
92107
-------------------------------
93108

@@ -116,6 +131,20 @@ SUNDIALS without modifying the code to use ``sunindextype``, so long as the
116131
SUNDIALS libraries use the appropriate index storage type (for details see
117132
:numref:`Installation.Options`).
118133

134+
For implementation reasons, SUNDIALS also defines the types:
135+
136+
.. c:type:: sunindextype1d
137+
138+
This is a ``sunindextype*`` which should be treated as 1D contiguous array.
139+
140+
.. c:type:: sunindextype2d
141+
142+
This is a ``sunindextype**`` which should be treated as 2D contiguous array.
143+
144+
.. c:type:: sunindextype3d
145+
146+
This is a ``sunindextype***`` which should be treated as 3D contiguous array.
147+
119148
Integer type used for counters
120149
------------------------------
121150

0 commit comments

Comments
 (0)