projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68e2d49
)
more improvement
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 12 Nov 2021 03:48:36 +0000
(19:48 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 12 Nov 2021 03:48:36 +0000
(19:48 -0800)
src/language/stats/matrix.c
patch
|
blob
|
history
diff --git
a/src/language/stats/matrix.c
b/src/language/stats/matrix.c
index 8eb029b7bae64ac95e348849fb45cbe81fda81cd..8445e64ac3fff4ed9794ecdaf3402c5ad50a86cb 100644
(file)
--- a/
src/language/stats/matrix.c
+++ b/
src/language/stats/matrix.c
@@
-6317,14
+6317,16
@@
matrix_mget_commit_var (struct ccase **rows, size_t n_rows,
for (size_t j = 0; j < sn; j++)
{
struct variable *var = dict_get_var (d, ss + j);
for (size_t j = 0; j < sn; j++)
{
struct variable *var = dict_get_var (d, ss + j);
+ const union value *value = case_data (rows[0], var);
pivot_table_put2 (pt, j, var_index,
pivot_table_put2 (pt, j, var_index,
- pivot_value_new_
number (case_num (rows[0], var)
));
+ pivot_value_new_
var_value (var, value
));
}
for (size_t j = 0; j < fn; j++)
{
struct variable *var = dict_get_var (d, fs + j);
}
for (size_t j = 0; j < fn; j++)
{
struct variable *var = dict_get_var (d, fs + j);
+ const union value *value = case_data (rows[0], var);
pivot_table_put2 (pt, j + sn, var_index,
pivot_table_put2 (pt, j + sn, var_index,
- pivot_value_new_
number (case_num (rows[0], var)
));
+ pivot_value_new_
var_value (var, value
));
}
for (size_t j = 0; j < sizeof values / sizeof *values; j++)
pivot_table_put2 (pt, j + sn + fn, var_index,
}
for (size_t j = 0; j < sizeof values / sizeof *values; j++)
pivot_table_put2 (pt, j + sn + fn, var_index,