me to compute the result
increases quadratically. Once calculated, however, the result of
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>d</mi><mi>i</mi><mi>a</mi><mi>g</mi><mrow><mo stretchy="true" form="prefix">(</mo><mi>F</mi><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">diag(F)</annotation></semantics></math>
is cached and reused in future runs of these metrics. So only the first
time running these metrics for a pa