Fix ~40 typos found by codespell across the codebase

libeigen/eigen!2181

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-02-21 21:29:50 -08:00
parent f52ad04bbb
commit 44c6132163
29 changed files with 43 additions and 50 deletions

View File

@@ -845,7 +845,7 @@ void testNistHahn1(void) {
VERIFY_IS_APPROX(x[0], 1.0776351733E+00);
VERIFY_IS_APPROX(x[1], -1.2269296921E-01);
VERIFY_IS_APPROX(x[2], 4.0863750610E-03);
VERIFY_IS_APPROX(x[3], -1.426264e-06); // shoulde be : -1.4262662514E-06
VERIFY_IS_APPROX(x[3], -1.426264e-06); // should be : -1.4262662514E-06
VERIFY_IS_APPROX(x[4], -5.7609940901E-03);
VERIFY_IS_APPROX(x[5], 2.4053735503E-04);
VERIFY_IS_APPROX(x[6], -1.2314450199E-07);
@@ -867,7 +867,7 @@ void testNistHahn1(void) {
VERIFY_IS_APPROX(x[0], 1.077640); // should be : 1.0776351733E+00
VERIFY_IS_APPROX(x[1], -0.1226933); // should be : -1.2269296921E-01
VERIFY_IS_APPROX(x[2], 0.004086383); // should be : 4.0863750610E-03
VERIFY_IS_APPROX(x[3], -1.426277e-06); // shoulde be : -1.4262662514E-06
VERIFY_IS_APPROX(x[3], -1.426277e-06); // should be : -1.4262662514E-06
VERIFY_IS_APPROX(x[4], -5.7609940901E-03);
VERIFY_IS_APPROX(x[5], 0.00024053772); // should be : 2.4053735503E-04
VERIFY_IS_APPROX(x[6], -1.231450e-07); // should be : -1.2314450199E-07

View File

@@ -471,7 +471,7 @@ void test_sum_accuracy() {
Tensor<ScalarType, 0> sum;
sum = tensor.sum();
// Compute the reference value in double precsion.
// Compute the reference value in double precision.
double expected_sum = 0.0;
double abs_sum = 0.0;
for (int i = 0; i < num_elements; ++i) {

View File

@@ -30,7 +30,7 @@ using Eigen::GlobalRealFlag;
using Eigen::GlobalZeroFlag;
using Eigen::NegationFlag;
// helper function to determine if the compiler intantiated a static
// helper function to determine if the compiler instantiated a static
// or dynamic symmetry group
template <typename... Sym>
bool isDynGroup(StaticSGroup<Sym...> const& dummy) {

View File

@@ -505,7 +505,7 @@ void testNistHahn1(void) {
VERIFY_IS_APPROX(x[0], 1.0776351733E+00);
VERIFY_IS_APPROX(x[1], -1.2269296921E-01);
VERIFY_IS_APPROX(x[2], 4.0863750610E-03);
VERIFY_IS_APPROX(x[3], -1.426264e-06); // shoulde be : -1.4262662514E-06
VERIFY_IS_APPROX(x[3], -1.426264e-06); // should be : -1.4262662514E-06
VERIFY_IS_APPROX(x[4], -5.7609940901E-03);
VERIFY_IS_APPROX(x[5], 2.4053735503E-04);
VERIFY_IS_APPROX(x[6], -1.2314450199E-07);
@@ -528,7 +528,7 @@ void testNistHahn1(void) {
VERIFY_IS_APPROX(x[0], 1.077640); // should be : 1.0776351733E+00
VERIFY_IS_APPROX(x[1], -0.1226933); // should be : -1.2269296921E-01
VERIFY_IS_APPROX(x[2], 0.004086383); // should be : 4.0863750610E-03
VERIFY_IS_APPROX(x[3], -1.426277e-06); // shoulde be : -1.4262662514E-06
VERIFY_IS_APPROX(x[3], -1.426277e-06); // should be : -1.4262662514E-06
VERIFY_IS_APPROX(x[4], -5.7609940901E-03);
VERIFY_IS_APPROX(x[5], 0.00024053772); // should be : 2.4053735503E-04
VERIFY_IS_APPROX(x[6], -1.231450e-07); // should be : -1.2314450199E-07

View File

@@ -65,7 +65,7 @@ void array_special_functions() {
ArrayType m1 = ArrayType::Random(rows, cols);
ArrayType m2 = ArrayType::Random(rows, cols);
// Test various propreties of igamma & igammac. These are normalized
// Test various properties of igamma & igammac. These are normalized
// gamma integrals where
// igammac(a, x) = Gamma(a, x) / Gamma(a)
// igamma(a, x) = gamma(a, x) / Gamma(a)