#pragma once #ifndef __CVTT_ENDPOINTREFINER_H__ #define __CVTT_ENDPOINTREFINER_H__ #include "ConvectionKernels_ParallelMath.h" namespace cvtt { namespace Internal { // Solve for a, b where v = a*t + b // This allows endpoints to be mapped to where T=0 and T=1 // Least squares from totals: // a = (tv - t*v/w)/(tt - t*t/w) // b = (v - a*t)/w template<int TVectorSize> class EndpointRefiner { … }; } } #endif