Fix some typos

This commit is contained in:
Jonas Schulze
2023-03-16 23:11:43 +00:00
committed by Rasmus Munk Larsen
parent 555cec17ed
commit 81cb6a51d0
5 changed files with 5 additions and 5 deletions

View File

@@ -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.