template<class DstArrayT, class SrcArrayT>
Actual operation.
Definition at line 41 of file M9poCw.h. References Impala::Core::Array::Element::E1Sqrt(), and Impala::Core::Array::Trait::M9poCw< DstArrayT, SrcArrayT >::mScale. 00044 { 00045 SrcArithT Clx_a = Elx*E - El*Ex; 00046 SrcArithT Cly_a = Ely*E - El*Ey; 00047 SrcArithT Clw_a = Clx_a*Clx_a + Cly_a*Cly_a; 00048 SrcArithT Cllx_a = Ellx*E - Ell*Ex; 00049 SrcArithT Clly_a = Elly*E - Ell*Ey; 00050 SrcArithT Cllw_a = Cllx_a*Cllx_a + Clly_a*Clly_a; 00051 SrcArithT Cw_a = Element::E1Sqrt(Clw_a + Cllw_a); 00052 SrcArithT norm = E*E/mScale; 00053 return Cw_a/norm; 00054 //return Element::E1Log(Cw_a/norm + 1); 00055 //return Element::E1Log(100000000*Cw_a+1) - Element::E1Log(100000000*norm+1); 00056 }
Here is the call graph for this function:
|