Update pre-commit hooks and versions for clang-format, black, and isort (#3059)

This commit is contained in:
Nripesh Niketan
2026-01-26 06:57:04 -08:00
committed by GitHub
parent 5bd99dd5ec
commit b6aa03e5b8
37 changed files with 376 additions and 335 deletions
+6 -4
View File
@@ -394,12 +394,14 @@ TEST_CASE("test matrix cholesky") {
linalg::cholesky(array({0.0, 1.0}), /* upper = */ false, Device::cpu));
// Unsupported types throw
CHECK_THROWS(linalg::cholesky(
array({0, 1}, {1, 2}), /* upper = */ false, Device::cpu));
CHECK_THROWS(
linalg::cholesky(
array({0, 1}, {1, 2}), /* upper = */ false, Device::cpu));
// Non-square throws.
CHECK_THROWS(linalg::cholesky(
array({1, 2, 3, 4, 5, 6}, {2, 3}), /* upper = */ false, Device::cpu));
CHECK_THROWS(
linalg::cholesky(
array({1, 2, 3, 4, 5, 6}, {2, 3}), /* upper = */ false, Device::cpu));
const auto prng_key = random::key(220398);
const auto sqrtA = random::normal({5, 5}, prng_key);