()
| 87 | |
| 88 | |
| 89 | def test_dm_2d(): |
| 90 | |
| 91 | uknots = np.array([0, 0, 0, 0, 0.25, 0.5, 0.75, 1, 1, 1, 1]) |
| 92 | uparams = np.linspace(0, 1, 100) |
| 93 | uorder = 3 |
| 94 | |
| 95 | vknots = np.array([0, 0, 0, 0.5, 1, 1, 1]) |
| 96 | vparams = np.linspace(0, 1, 100) |
| 97 | vorder = 2 |
| 98 | |
| 99 | res = designMatrix2D(uparams, vparams, uorder, vorder, uknots, vknots) |
| 100 | |
| 101 | C = res.coo() |
| 102 | |
| 103 | assert C.shape[0] == len(uparams) |
| 104 | assert C.shape[1] == (len(uknots) - uorder - 1) * (len(vknots) - vorder - 1) |
| 105 | |
| 106 | |
| 107 | def test_dm(): |
nothing calls this directly
no test coverage detected