Skip to content

Commit 3573547

Browse files
committed
Fix memory issue when using VecXf
1 parent 392673f commit 3573547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/mahalanobis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ void TestMahalanobis() {
118118
}
119119

120120
void TestMahaWhitened() {
121-
SECTION("Vec2 + Vars") {
121+
SECTION("VecX + Vars") {
122122
VecXf x = VecXf::Random(2);
123-
const VecXf stdevs = (VecXf(2) << 1, 5).finished();
123+
VecXf stdevs = Vec2f::Ones();
124124
const auto &[s, Js] = MahaWhitened(x, stdevs, true);
125125
TINYOPT_LOG("loss = [{}, J:{}]", s, Js);
126126
auto J = diff::CalculateJac(x, [&](const auto x) { return MahaWhitened(x, stdevs); });

0 commit comments

Comments
 (0)