Skip to content

Commit 1bf7800

Browse files
src/radmeth/radmeth_model.hpp: holding the max_r_count to avoid recomputing it and changed thename of log1p_fact_v as this cache will be used for multiple things
1 parent 109f115 commit 1bf7800

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/radmeth/radmeth_model.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ struct Regression {
9797
// scratch space
9898
std::vector<cumul_counts> cumul;
9999
std::vector<double> p_v;
100-
std::vector<double> log1p_fact_v;
100+
std::vector<double> cache;
101+
std::uint32_t max_r_count{};
101102

102103
[[nodiscard]] std::size_t
103104
n_factors() const {

0 commit comments

Comments
 (0)