You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'numpy.ndarray' object has no attribute 'device'
File "fealpy\sparse\ops.py", line 65, in spdiags
diags_inds = bm.arange(len_diags, device=data.device, dtype=bm.int64)
File "fealpy\fem\dirichlet_bc.py", line 140, in apply_matrix
D0 = spdiags(1-bdIdx, 0, A.shape[0], A.shape[0])
File "fealpy\fealpy\fem\dirichlet_bc.py", line 120, in apply
A = self.apply_matrix(A, check=check)
File "poisson_lfem_dirichlet.py", line 108, in <module>
A, F = DirichletBC(space, gd=pde.solution).apply(A, F)
The text was updated successfully, but these errors were encountered:
2025-5-10, 尝试运行
example/fem/poisson_lfem_dirichlet.py
, backend 为默认的 numpy, 信息如下:The text was updated successfully, but these errors were encountered: