Registered Member
|
Hello,
I have the following code:
However, I get the compilation error. candidate template ignored: couldn't infer template argument 'KeepFunc' void prune(const KeepFunc& keep = KeepFunc()) ^ note: candidate function not viable: requires at least argument 'reference', but no arguments were provided void prune(const Scalar& reference, const RealScalar& epsilon = NumTraits<RealScalar>::dummy_precision()) I thought I should be able to use prune() with no arguments. I am using OSX 10.9.2 with the clang compiler (Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)) Any help would be appreciated. Thanks, Luca |
Moderator
|
Please, have a look at the documentation: http://eigen.tuxfamily.org/dox/classEig ... b07a5036b6
You either have to specify a functor or a reference value. If you want to suppress exact 0, then calling prune(0) will work. |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]