@@ -32,12 +32,13 @@ using ResidualFunction = double (*)(double, const int64_t *);
32
32
// / The 6th argument is a pointer to the list of AD seed identifiers
33
33
// / The result is the Jacobian value.
34
34
using JacobianFunction = double (*)(double , const int64_t *, const uint64_t *,
35
- double , uint64_t , const uint64_t *);
35
+ double , uint64_t , const uint64_t *);
36
36
37
37
// / A descriptor of a Jacobian function is a pair of value consisting in:
38
38
// / - the function pointer
39
39
// / - the number of elements of each AD seed
40
- using JacobianFunctionDescriptor = std::pair<JacobianFunction, std::vector<uint64_t >>;
40
+ using JacobianFunctionDescriptor =
41
+ std::pair<JacobianFunction, std::vector<uint64_t >>;
41
42
42
43
// / A map indicating the IDs of the buffers living inside the memory pool to
43
44
// / be used as AD seeds for each Jacobian function.
@@ -51,8 +52,8 @@ using JacobianSeedsMap = std::map<JacobianFunction, std::vector<uint64_t>>;
51
52
// / - the end indices (excluded)
52
53
// / - the map indicating the buffer IDs to be used when computing the
53
54
// / partial derivatives
54
- using ThreadEquationsChunk =
55
- std::tuple<Equation, std::vector< int64_t >, std::vector<int64_t >, JacobianSeedsMap>;
55
+ using ThreadEquationsChunk = std::tuple<Equation, std::vector< int64_t >,
56
+ std::vector<int64_t >, JacobianSeedsMap>;
56
57
57
58
class IDAInstance {
58
59
public:
@@ -94,7 +95,7 @@ class IDAInstance {
94
95
// / equation.
95
96
void addJacobianFunction (Equation equationIndex, Variable variableIndex,
96
97
JacobianFunction jacobianFunction,
97
- uint64_t numOfSeeds, uint64_t * seedSizes);
98
+ uint64_t numOfSeeds, uint64_t * seedSizes);
98
99
99
100
// / Instantiate and initialize all the classes needed by IDA in order to
100
101
// / solve the given system of equations. It also sets optional simulation
@@ -162,7 +163,9 @@ class IDAInstance {
162
163
163
164
[[nodiscard]] uint64_t getVariableRank (Variable variable) const ;
164
165
165
- void iterateAccessedArrayVariables (Equation equation, std::function<void (Variable)> callback) const ;
166
+ void
167
+ iterateAccessedArrayVariables (Equation equation,
168
+ std::function<void (Variable)> callback) const ;
166
169
167
170
std::vector<JacobianColumn>
168
171
computeJacobianColumns (Equation eq, const int64_t *equationIndices) const ;
@@ -180,7 +183,7 @@ class IDAInstance {
180
183
void equationsParallelIteration (
181
184
std::function<void (Equation equation,
182
185
const std::vector<int64_t > &equationIndices,
183
- const JacobianSeedsMap& jacobianSeedsMap)>
186
+ const JacobianSeedsMap & jacobianSeedsMap)>
184
187
processFn);
185
188
186
189
void getVariableBeginIndices (Variable variable,
0 commit comments