4 #include <blitz/array.h> 12 template <
class T1,
class T2>
14 const blitz::Array<T1, 1>& target,
17 return minIndex(abs(target-data))(0);
25 template <
class T1,
class T2>
27 const blitz::Array<T1, 1>& target,
28 const blitz::Array<T2, 1>& data)
30 blitz::Array<int, 1> a(data.shape());
31 for(
int i=a.base(blitz::firstDim); i<a.base(blitz::firstDim)+a.rows(); i++)
int closest_point(const blitz::Array< T1, 1 > &target, T2 data)
Contains classes to abstract away details in various Spurr Radiative Transfer software.