如何在OjAlgo上的OperateOnAll上使用Abs,sqrt等?

I'm trying to take square root on all elements in a matrix A by doing the following command.

A.operateOnAll()

But the argument must be UnaryFunction<N> and I don't know how to create that. I reading the API documention, but still don't know how to create a sqrt procedure for matrix A

https://javadoc.scijava.org/ojAlgo/index.html?org/ojalgo/function/FunctionSet.html

评论