![]() If you want other coefficient-wise \(\ell^p\) norms, use the lpNorm() method. We refrain from speaking of the \(\ell^2\) norm of a matrix because that can mean different things. These operations can also operate on matrices in that case, a n-by-p matrix is seen as a vector of size (n*p), so for example the norm() method returns the "Frobenius" or "Hilbert-Schmidt" norm. It is equal to the dot product of the vector by itself, and equivalently to the sum of squared absolute values of its coefficients.Įigen also provides the norm() method, which returns the square root of squaredNorm(). \(\ell^2\)) squared norm of a vector can be obtained squaredNorm(). The trace of a matrix, as returned by the function trace(), is the sum of the diagonal coefficients and can equivalently be computed a.diagonal().sum(). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |