funcy
1.6.1
|
#include <frobenius_norm.h>
Public Member Functions | |
SquaredFrobeniusNorm (const Mat &A) | |
SquaredFrobeniusNorm (Mat &&A) | |
void | update (const Mat &A) |
Reset matrix to compute squared norm from. | |
auto | d0 () const noexcept |
Squared matrix norm. | |
auto | d1 (const Mat &dA) const |
First directional derivative. | |
auto | d2 (const Mat &dA1, const Mat &dA2) const |
Second directional derivative. | |
Compute squared Frobenius norm \( \|A\|^2 = A\negthinspace : \negthinspace A = \mathrm{tr}(A^TA) = \sum_{i,j} A_{ij}^2. \)