@@ -88,6 +88,21 @@ code can use SUNDIALS without modifying the code to use ``sunrealtype``,
88
88
``SUN_RCONST ``, or the ``SUNR `` macros so long as the SUNDIALS libraries are built
89
89
to use the corresponding precision (see :numref: `Installation.Options `).
90
90
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
+
91
106
Integer types used for indexing
92
107
-------------------------------
93
108
@@ -116,6 +131,20 @@ SUNDIALS without modifying the code to use ``sunindextype``, so long as the
116
131
SUNDIALS libraries use the appropriate index storage type (for details see
117
132
:numref: `Installation.Options `).
118
133
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
+
119
148
Integer type used for counters
120
149
------------------------------
121
150
0 commit comments