GithubHelp home page GithubHelp logo

Comments (3)

nh2 avatar nh2 commented on August 27, 2024

Hm, I might be wrong here.

Is e.g. https://github.com/davisking/dlib/blob/51c7a3597935ed2cb969521a0ada0b7209f78ec2/dlib/matrix/lapack/gesvd.h a header for public consumption?

I suspect that because it declares inline functions such as

inline integer gesvd (const char jobu, const char jobvt,
const integer m, const integer n, float* a, const integer lda,
float* s, float* u, const integer ldu,
float* vt, const integer ldvt,
float* work, const integer lwork)
{
integer info = 0;
DLIB_FORTRAN_ID(sgesvd)(&jobu, &jobvt, &m, &n, a, &lda, s, u, &ldu, vt, &ldvt, work, &lwork, &info);
return info;
}

-llapack actually has to be given even in the downstream project.

Let me know what's right!

from dlib.

davisking avatar davisking commented on August 27, 2024

Right, all the linear algebra stuff in dlib is templated and in headers. You don't even have to compile any of the .cpp files in dlib to use that stuff, so the client has to link to lapack.

from dlib.

nh2 avatar nh2 commented on August 27, 2024

All clear, then there is no bug here. Closing!

from dlib.

Related Issues (20)

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.