From: Amitha P. <pe...@cs...> - 2001-11-09 15:52:19
|
> No, it is just acos( a.b / |a||b| ), which is in general a complex > number. How is acos( complex ) defined? Such a function does not exist in vcl, so the template instantiations for vnl_vector<complex> fail. > acos( |a.b| / |a||b| ) cannot be correct since then the angle between > (1,0) and (-1,1) would be 45 degrees instead of 135 degrees. Certainly, for real-valued vectors. However, for complex-valued vectors, perhaps it is "good enough"? Either way, it doesn't really solve the problem of implementation. Amitha. |