From 81cb6a51d0358151a7174481e140074401ca4afa Mon Sep 17 00:00:00 2001 From: Jonas Schulze Date: Thu, 16 Mar 2023 23:11:43 +0000 Subject: [PATCH] Fix some typos --- Eigen/src/Core/util/Constants.h | 2 +- doc/CustomizingEigen_Plugins.dox | 2 +- doc/FunctionsTakingEigenTypes.dox | 2 +- doc/SparseQuickReference.dox | 2 +- doc/examples/matrixfree_cg.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h index 017508779..67a697650 100644 --- a/Eigen/src/Core/util/Constants.h +++ b/Eigen/src/Core/util/Constants.h @@ -136,7 +136,7 @@ const unsigned int LinearAccessBit = 0x10; * Means the expression has a coeffRef() method, i.e. is writable as its individual coefficients are directly addressable. * This rules out read-only expressions. * - * Note that DirectAccessBit and LvalueBit are mutually orthogonal, as there are examples of expression having one but note + * Note that DirectAccessBit and LvalueBit are mutually orthogonal, as there are examples of expression having one but not * the other: * \li writable expressions that don't have a very simple memory layout as a strided array, have LvalueBit but not DirectAccessBit * \li Map-to-const expressions, for example Map, have DirectAccessBit but not LvalueBit diff --git a/doc/CustomizingEigen_Plugins.dox b/doc/CustomizingEigen_Plugins.dox index d88f2409b..9ab0200ff 100644 --- a/doc/CustomizingEigen_Plugins.dox +++ b/doc/CustomizingEigen_Plugins.dox @@ -59,7 +59,7 @@ operator+(const Scalar& scalar, const MatrixBase& mat) { return CwiseBinaryOp, const ConstantReturnType, Derived>(Constant(rows(),cols(),scalar), mat.derived()); } \endcode -Then one can the following declaration in the config.h or whatever prerequisites header file of his project: +Then one can add the following declaration in the config.h or whatever prerequisites header file of his project: \code #define EIGEN_MATRIXBASE_PLUGIN "MatrixBaseAddons.h" \endcode diff --git a/doc/FunctionsTakingEigenTypes.dox b/doc/FunctionsTakingEigenTypes.dox index 6b4e49214..3e745462c 100644 --- a/doc/FunctionsTakingEigenTypes.dox +++ b/doc/FunctionsTakingEigenTypes.dox @@ -126,7 +126,7 @@ and contrary to what one might think at first, this implementation is fine unles MatrixXf x,y,z; MatrixXf C = cov(x,y+z); \endcode -In this special case, the example is fine and will be working because both parameters are declared as \e const references. The compiler creates a temporary and evaluates the expression x+z into this temporary. Once the function is processed, the temporary is released and the result is assigned to C. +In this special case, the example is fine and will be working because both parameters are declared as \e const references. The compiler creates a temporary and evaluates the expression y+z into this temporary. Once the function is processed, the temporary is released and the result is assigned to C. \b Note: Functions taking \e const references to Matrix (or Array) can process expressions at the cost of temporaries. diff --git a/doc/SparseQuickReference.dox b/doc/SparseQuickReference.dox index b8264a444..68ac2dc8a 100644 --- a/doc/SparseQuickReference.dox +++ b/doc/SparseQuickReference.dox @@ -153,7 +153,7 @@ It is easy to perform arithmetic operations on sparse matrices provided that the \code perm.indices(); // Reference to the vector of indices sm1.twistedBy(perm); // Permute rows and columns -sm2 = sm1 * perm; // Permute the columns +sm2 = sm1 * perm; // Permute the rows sm2 = perm * sm1; // Permute the columns \endcode diff --git a/doc/examples/matrixfree_cg.cpp b/doc/examples/matrixfree_cg.cpp index 74699381c..413c9a3f8 100644 --- a/doc/examples/matrixfree_cg.cpp +++ b/doc/examples/matrixfree_cg.cpp @@ -9,7 +9,7 @@ using Eigen::SparseMatrix; namespace Eigen { namespace internal { - // MatrixReplacement looks-like a SparseMatrix, so let's inherits its traits: + // MatrixReplacement looks-like a SparseMatrix, so let's inherit its traits: template<> struct traits : public Eigen::internal::traits > {};