Commits

Lisandro Dalcin committed 6c69338

Fix NURBS.breaks() to return multiplicities as 32bit integers

Comments (0)

Files changed (1)

src/igakit/nurbs.py

         if not mults:
             return np_unique(U[p:-p])
         u, idx = np_unique(U[p:-p], return_inverse=True)
-        s = np.bincount(idx)
+        s = np.bincount(idx).astype('i')
         FindMult = _bsp.FindMult
         m = len(U)-1; n = m-p-1;
         for k, j in ((p, 0), (n, -1)):