Lines Matching refs:degree
57 void computePade(MatrixType& result, const MatrixType& T, int degree);
131 int degree;
142 degree = getPadeDegree(normTminusI);
144 if ((degree - degree2 <= 1) || (numberOfExtraSquareRoots == 1))
153 computePade(result, T, degree);
157 /* \brief Get suitable degree for Pade approximation. (specialized for RealScalar = float) */
161 const float maxNormForPade[] = { 2.5111573934555054e-1 /* degree = 3 */ , 4.0535837411880493e-1,
163 int degree = 3;
164 for (; degree <= maxPadeDegree; ++degree)
165 if (normTminusI <= maxNormForPade[degree - minPadeDegree])
167 return degree;
170 /* \brief Get suitable degree for Pade approximation. (specialized for RealScalar = double) */
174 const double maxNormForPade[] = { 1.6206284795015624e-2 /* degree = 3 */ , 5.3873532631381171e-2,
176 int degree = 3;
177 for (; degree <= maxPadeDegree; ++degree)
178 if (normTminusI <= maxNormForPade[degree - minPadeDegree])
180 return degree;
183 /* \brief Get suitable degree for Pade approximation. (specialized for RealScalar = long double) */
188 const long double maxNormForPade[] = { 1.6206284795015624e-2L /* degree = 3 */ , 5.3873532631381171e-2L,
191 const long double maxNormForPade[] = { 5.48256690357782863103e-3L /* degree = 3 */, 2.34559162387971167321e-2L,
195 const long double maxNormForPade[] = { 8.58970550342939562202529664318890e-5L /* degree = 3 */,
201 const long double maxNormForPade[] = { 4.7419931187193005048501568167858103e-5L /* degree = 3 */,
207 int degree = 3;
208 for (; degree <= maxPadeDegree; ++degree)
209 if (normTminusI <= maxNormForPade[degree - minPadeDegree])
211 return degree;
216 void MatrixLogarithmAtomic<MatrixType>::computePade(MatrixType& result, const MatrixType& T, int degree)
218 switch (degree) {
235 const int degree = 3;
240 eigen_assert(degree <= maxPadeDegree);
243 for (int k = 0; k < degree; ++k)
251 const int degree = 4;
256 eigen_assert(degree <= maxPadeDegree);
259 for (int k = 0; k < degree; ++k)
267 const int degree = 5;
274 eigen_assert(degree <= maxPadeDegree);
277 for (int k = 0; k < degree; ++k)
285 const int degree = 6;
292 eigen_assert(degree <= maxPadeDegree);
295 for (int k = 0; k < degree; ++k)
303 const int degree = 7;
312 eigen_assert(degree <= maxPadeDegree);
315 for (int k = 0; k < degree; ++k)
323 const int degree = 8;
332 eigen_assert(degree <= maxPadeDegree);
335 for (int k = 0; k < degree; ++k)
343 const int degree = 9;
354 eigen_assert(degree <= maxPadeDegree);
357 for (int k = 0; k < degree; ++k)
365 const int degree = 10;
376 eigen_assert(degree <= maxPadeDegree);
379 for (int k = 0; k < degree; ++k)
387 const int degree = 11;
400 eigen_assert(degree <= maxPadeDegree);
403 for (int k = 0; k < degree; ++k)