np.isclose(), deepxde.grad.jacobian(), deepxde.grad.hessian()
numpy as np @ np.isclose(a, b, atol = c) a,b가 허용오차 c 내에 있는지 확인. True / False로 반환 >>>> np.isclose(0,0.1,atol=0.09) False >>>> np.isclose(0,0.1,atol=0.11) True atol = c가 입력되지 않으면 단순히 a = b인지 (오차 1e-8정도) 확인한다. deepxde as dde @ dde.grad.jacobian(output_tensor, input_tensor,i = i_th_row, j = j_th_col) ex) du_x = dde.grad.jacobian(Y, X, i = 0, j = 0)은 아래와 같은 도함수를 정의한다. deepxde as dde @ dde.grad.hessian(output_tensor, input_tensor,i = i_th_row, j = j_th_col, component = m) ex) dde.grad.hessian(y,x, i =