You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\note For a system with N equations, the row_id's must be a continuous
103
100
range of integers from \f$ 0 \ldots n-1 \f$.
104
101
105
-
<DT>left_hand_size</DT>
106
-
<DD>Text value. The name of the column storing the 'left hand size' of the
102
+
<DT>LHS</DT>
103
+
<DD>Text value. The name of the column storing the 'left hand side' of the
107
104
equations stored as an array.</DD>
108
105
109
-
<DT>right_hand_size</DT>
110
-
<DD>Text value. The name of the column storing the 'right hand size' of the
106
+
<DT>RHS</DT>
107
+
<DD>Text value. The name of the column storing the 'right hand side' of the
111
108
equations.</DD>
112
109
113
110
<DT>grouping_col (optional) </DT>
@@ -121,13 +118,13 @@ equations.</DD>
121
118
<DD>Text value. Optimizer specific parameters. Default: NULL.</DD>
122
119
</DL>
123
120
124
-
121
+
@anchor dls_opt_params
125
122
@par Optimizer Parameters
126
123
127
124
For each optimizer, there are specific parameters that can be tuned
128
125
for better performance.
129
-
130
-
<DL>
126
+
\par
127
+
<DL class="arglist">
131
128
<DT>algorithm (default: householderqr)</dT>
132
129
<DD>
133
130
@@ -148,16 +145,19 @@ for better performance.
148
145
llt | Pos. Definite | +++ | +
149
146
ldlt | Pos. or Neg Def | +++ | ++
150
147
148
+
For speed '++' is faster than '+', which is faster than '-'.
149
+
For accuracy '+++' is better than '++'.
150
+
151
151
More details about the individual algorithms can be found on the <a href="http://eigen.tuxfamily.org/dox-devel/group__TutorialLinearAlgebra.html"> Eigen documentation</a>. Eigen is an open source library for linear algebra.
152
152
153
153
154
154
</DD>
155
155
</DL>
156
156
157
-
157
+
@anchor dls_output
158
158
@par Output statistics
159
-
160
-
<DL>
159
+
Output is stored in the <em>tbl_result</em> table.
160
+
<DL class="arglist">
161
161
<DT>solution</dT>
162
162
<DD>
163
163
The solution is an array (of double precision) with the variables in the same
@@ -167,8 +167,8 @@ order as that provided as input in the 'left_hand_side' column name of the
167
167
168
168
<DT>residual_norm</dT>
169
169
<DD>
170
-
Computes the scaled residual norm, defined as \f$ \frac{|Ax - b|}{|b|} \f$
171
-
gives the user an indication of the accuracy of the solution.
170
+
Computes the scaled residual norm, defined as \f$ \frac{|Ax - b|}{|b|} \f$.
171
+
This value is an indication of the accuracy of the solution.
172
172
</DD>
173
173
174
174
<DT>iters</dT>
@@ -184,27 +184,27 @@ The number of iterations required by the algorithm (only applicable for
184
184
185
185
186
186
187
-
187
+
@anchor dls_examples
188
188
@examp
189
189
190
190
-# Create the sample data set:
191
191
\verbatim
192
-
sql> CREATE TABLE source_table (id INTEGER NOT NULL,
192
+
sql> CREATE TABLE linear_systems_test_data (id INTEGER NOT NULL,
193
193
lhs DOUBLE PRECISION[],
194
194
rhs DOUBLE PRECISION);
195
-
sql> INSERT INTO linear_systems_test_data(id, a, b) VaLUES
195
+
sql> INSERT INTO linear_systems_test_data(id, lhs, rhs) VaLUES
196
196
(0, ARRAY[1,0,0], 20),
197
197
(1, ARRAY[0,1,0], 15),
198
198
(2, ARRAY[0,0,1], 20);
199
199
\endverbatim
200
200
201
201
-# Solve the linear systems with default parameters
0 commit comments