Procházet zdrojové kódy

Update cheb_eval(...)

Dhairya Malhotra před 10 roky
rodič
revize
4db5f8a3e0
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;