Open
Description
Hello there,
I am experiencing some issues while trying to use weight_matrix
I try to generate a RBF-FD matrix as:
phi = 'phs3'
n = 25
order = 3
A_mat_x = weight_matrix(x=points,p=points,n=n,diffs=[1,0],phi=phi,order=order)
However, I get the following error:
Traceback (most recent call last):
File "C:\Users\itojimenez\PycharmProjects\beam_shaping_3D_freeform\rbf_fd_deriv_approx.py", line 72, in <module>
A_mat_x = weight_matrix(x=points,p=points,n=n,diffs=[1,0],phi=phi,order=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\itojimenez\PycharmProjects\beam_shaping_3D_freeform\.venv\Lib\site-packages\rbf\pde\fd.py", line 297, in weight_matrix
data[..., start:stop, :] = weights(
^^^^^^^^
File "C:\Users\itojimenez\PycharmProjects\beam_shaping_3D_freeform\.venv\Lib\site-packages\rbf\pde\fd.py", line 154, in weights
P = mvmonos(s, pwr)
^^^^^^^^^^^^^^^
File "rbf/poly.pyx", line 73, in rbf.poly.mvmonos
File "rbf/poly.pyx", line 80, in rbf.poly._mvmonos
ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'
What could be going on here? I see here that the issue is with the type of the arguments given to mvmonnos
but to be honest I never changed anything.
In fact, I was using always the weight_matrix
function with no problem in the same way. It was now that suddently this problem happened. I tried reinstalling the repository but the issue persist.
Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels