Error in lbfgsAdd (line 21): lbfgsAddC(​y,s,Y,S,ys​,int32(lbf​gs_end)) -- Unrecognized function or variable 'lbfgsAddC'

1 次查看(过去 30 天)
Running the code from lbfgsAdd.m and I get the error bfgsAdd (line 21): lbfgsAddC(y,s,Y,S,ys,int32(lbfgs_end)) -- Unrecognized function or variable 'lbfgsAddC'. How do I solve this?
  4 个评论
Torsten
Torsten 2024-1-13
编辑:Torsten 2024-1-14
Can't you do what is suggested in my above link:
solve it with modifying ex1a_linreg.m line 46 to
options = struct('useMex',0);
?
In this case, MATLAB will just use the .m file, not the mex-file.

请先登录,再进行评论。

采纳的回答

Julia Gorman
Julia Gorman 2024-1-14
移动:Angelo Yeo 2024-1-28
I ended up solving this by running mex lbfgsAddC.c and then moving the output of that to the same folder as lbfgsAdd.m and it worked. Thanks for the help though!

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by