maroba / findiff

Python package for numerical derivatives and partial differential equations in any number of dimensions.
MIT License
420 stars 60 forks source link

matrix representation doesn't work with order>2 #24

Closed Overnickel closed 4 years ago

Overnickel commented 4 years ago

Hi,

the matrix representation seems doesn't work when order larger than 2. For instance, the below code will raise an error: x = np.zeros((10)) d3_dx3 = FinDiff((0, 1, 3)) mat = d3_dx3.matrix(x.shape) print(mat.astype(int))

Screen Shot 2020-04-30 at 2 25 35 AM
maroba commented 4 years ago

Sorry for the late reply! All right, there was a bug that should now be fixed. Version 0.8.2 is now available for installation with pip.