Explorar o código

Update cheb_eval(...)

Dhairya Malhotra %!s(int64=10) %!d(string=hai) anos
pai
achega
4db5f8a3e0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      include/cheb_utils.txx

+ 1 - 0
include/cheb_utils.txx

@@ -508,6 +508,7 @@ void cheb_eval(const Vector<T>& coeff_, int cheb_deg, const std::vector<T>& in_x
  */
 template <class T>
 inline void cheb_eval(Vector<T>& coeff_, int cheb_deg, std::vector<T>& coord, Vector<T>& out){
+  if(!coord.size()) return;
   int dim=3;
   int d=cheb_deg+1;
   int n=coord.size()/dim;