Return real part of the gradient
这个提交存在于:
父节点
39979edc44
当前提交
f312d73503
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -400,7 +400,7 @@ def eigsolve(num_modes: int,
|
|||
df_dy = scipy_iop @ (AzU - zU @ zTAzU)
|
||||
else:
|
||||
df_dy = (AzU - zU @ zTAzU)
|
||||
return numpy.abs(f), numpy.sign(f) * df_dy.ravel()
|
||||
return numpy.abs(f), numpy.sign(f) * numpy.real(df_dy).ravel()
|
||||
|
||||
'''
|
||||
Use the conjugate gradient method and the approximate gradient calculation to
|
||||
|
|
|
|||
正在加载…
添加表格
添加链接
在新议题中引用