1. Lisandro Dalcin
  2. igakit

Commits

Lisandro Dalcin  committed 6c69338

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

  • Participants
  • Parent commits c896d31
  • Branches default

Comments (0)

Files changed (1)

File src/igakit/nurbs.py

View file
  • Ignore whitespace
         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)):