Skip to content
Snippets Groups Projects
Commit 2b19619d authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

note on fct Compute::scalarR

parent 263b26a6
No related branches found
No related tags found
1 merge request!1733Align polarization with PhysRef; simplify and unify API and GUI
...@@ -63,7 +63,7 @@ double Compute::magneticR(const SpinMatrix& R, const SpinMatrix& polMatrix, ...@@ -63,7 +63,7 @@ double Compute::magneticR(const SpinMatrix& R, const SpinMatrix& polMatrix,
return std::abs(trace); return std::abs(trace);
} }
double Compute::scalarR(complex_t R) double Compute::scalarR(complex_t R) // Let's keep this function for analogy with magneticR
{ {
return std::norm(R); return std::norm(R); // absolute value squared
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment