This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem with std::ceil

Tags: None
(comma "," separated)
SAnton
Registered Member
Posts
16
Karma
0

Problem with std::ceil

Mon Nov 15, 2010 7:35 pm
I have custom data type, so I have error here:

Code: Select all
return ei_cast<RealScalar,int>(std::ceil(-ei_log(NumTraits<RealScalar>::epsilon())/ei_log(RealScalar(10))));


Error is «Error 1 error C2668: 'ceil' : ambiguous call to overloaded function c:\eigen\eigen\src\Core\IO.h 137»

I think each datatype should provide its own ceil function.
SAnton
Registered Member
Posts
16
Karma
0

Re: Problem with std::ceil

Mon Nov 15, 2010 7:51 pm
Other error appears when I use std::complex<my_custom_datatype>

Code: Select all
    template<typename Dest>
    inline void subTo(Dest& dst) const { scaleAndAddTo(dst,-1); }


Error: «Error 1 error C2664: 'void Eigen::ProductBase<Derived,Lhs,Rhs>::scaleAndAddTo<Dest>(Dest &,std::complex<_Ty>) const' : cannot convert parameter 2 from 'int' to 'std::complex<_Ty>' c:\eigen\eigen\src\Core\ProductBase.h 116»


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient