`.cwiseSquare()` missing
Describe the feature you would like to be implemented.
.cwiseSquare()
Would such a feature be useful for other users? Why?
Yes. For consistency.
Any hints on how to implement the requested feature?
.array().square().matrix() or if real, then .cwiseAbs2().
Additional resources
The documentation of .cwiseSqrt() at https://docs.huihoo.com/eigen/3/classEigen_1_1ArrayBase.html mentions in “See also” .cwiseSquare(), but the function doesn't seem to actually exist anywhere. Other .cwise functions may be missing too.
Although I just noticed that the documentation is outdated and from some random site that Google found, so maybe the mention of .cwiseSquare() was removed intentionally for some reason.
Although .cwiseMin(x)/.cwiseMax(x) do actually exist, but aren't listed in the official (I think) documentation at https://eigen.tuxfamily.org/dox/group__CoeffwiseMathFunctions.html
A .cwiseClamp(xMin, xMax) function might be useful, too.