GithubHelp home page GithubHelp logo

'lbfgsAddC' undefined about stanford_dl_ex HOT 4 OPEN

amaas avatar amaas commented on June 13, 2024 9
'lbfgsAddC' undefined

from stanford_dl_ex.

Comments (4)

nicsurpatanu avatar nicsurpatanu commented on June 13, 2024

or compile the files using common/minFunc_2012/mexAll.m

I had to change mexAll.m to compile without error on Octave 3.8.1 on OS X:

mexAll.m >>>>>>>>>>>>
% minFunc
fprintf('Compiling minFunc files...\n');
mex -o minFunc/compiled/mcholC.mex minFunc/mex/mcholC.c
mex -o minFunc/compiled/lbfgsC.mex minFunc/mex/lbfgsC.c
mex -o minFunc/compiled/lbfgsAddC.mex minFunc/mex/lbfgsAddC.c
mex -o minFunc/compiled/lbfgsProdC.mex minFunc/mex/lbfgsProdC.c

from stanford_dl_ex.

cx0 avatar cx0 commented on June 13, 2024

Mark Schmidt wrote:

You get the error "??? Undefined function or method 'lbfgsAddC'". This occurs if Matlab can't find the mex file for your operating system. If this occurs, you can either: (i) set 'options.useMex' to 0, or (ii) compile the mex file for your operating system by running the mexAll function. If you end up compiling a file in minFunc for your operating system, please send it to me and I will add to the distribution.

Though, modifying mexAll as to compile all relevant files (lbgfs*.c) solved the issue for me.

from stanford_dl_ex.

zhangshengshan avatar zhangshengshan commented on June 13, 2024

@nicsurpatanu i modify mexAll.m as you did, however when run run mexAll cmd in the octave-cli ,i got a err message like folllows
error_pic
and the mexAll.m is as follow

  1 % minFunc
  2 fprintf('Compiling minFunc files...\n');
  3 mex -o minFunc/compiled minFunc/mex/mcholC.c
  4 mex -o minFunc/compiled minFunc/mex/lbfgsC.c
  5 mex -o minFunc/compiled minFunc/mex/lbfgsAddC.c
  6 mex -o minFunc/compiled minFunc/mex/lbfgsProdC.c
  7```

from stanford_dl_ex.

zhangshengshan avatar zhangshengshan commented on June 13, 2024

@osoylemez how to compile all relevant files?

from stanford_dl_ex.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.