A kaldi function only has header file in C++












0















I tried to find the definition of a function cblas_Xaxpy in Kaldi, so I was directed by GOTO Definition to the final place cblas-wrappers.h, where I found



inline void cblas_Xaxpy(const int N, const float alpha, const float *X,
const int incX, float *Y, const int incY) {
cblas_saxpy(N, alpha, X, incX, Y, incY);
}


Apparently the key is cblas_saxpy, first I tried to direct to the source file of this header file, but I did not find any. So I have tried search the whole directory and the parent directory concerning the project and I could not find any file containing the real definition of cblas_saxpy. But this is the original code and I ran it smoothly.



Then I am confused: if this is the correct version, then there should be some place to define the function cblas_saxpy's implementation, but where is it ?










share|improve this question























  • It is defined in the compiled library. You won't see the source code. It is already compiled into a binary object file and stored in the library archive.

    – AnT
    Nov 21 '18 at 5:32


















0















I tried to find the definition of a function cblas_Xaxpy in Kaldi, so I was directed by GOTO Definition to the final place cblas-wrappers.h, where I found



inline void cblas_Xaxpy(const int N, const float alpha, const float *X,
const int incX, float *Y, const int incY) {
cblas_saxpy(N, alpha, X, incX, Y, incY);
}


Apparently the key is cblas_saxpy, first I tried to direct to the source file of this header file, but I did not find any. So I have tried search the whole directory and the parent directory concerning the project and I could not find any file containing the real definition of cblas_saxpy. But this is the original code and I ran it smoothly.



Then I am confused: if this is the correct version, then there should be some place to define the function cblas_saxpy's implementation, but where is it ?










share|improve this question























  • It is defined in the compiled library. You won't see the source code. It is already compiled into a binary object file and stored in the library archive.

    – AnT
    Nov 21 '18 at 5:32
















0












0








0








I tried to find the definition of a function cblas_Xaxpy in Kaldi, so I was directed by GOTO Definition to the final place cblas-wrappers.h, where I found



inline void cblas_Xaxpy(const int N, const float alpha, const float *X,
const int incX, float *Y, const int incY) {
cblas_saxpy(N, alpha, X, incX, Y, incY);
}


Apparently the key is cblas_saxpy, first I tried to direct to the source file of this header file, but I did not find any. So I have tried search the whole directory and the parent directory concerning the project and I could not find any file containing the real definition of cblas_saxpy. But this is the original code and I ran it smoothly.



Then I am confused: if this is the correct version, then there should be some place to define the function cblas_saxpy's implementation, but where is it ?










share|improve this question














I tried to find the definition of a function cblas_Xaxpy in Kaldi, so I was directed by GOTO Definition to the final place cblas-wrappers.h, where I found



inline void cblas_Xaxpy(const int N, const float alpha, const float *X,
const int incX, float *Y, const int incY) {
cblas_saxpy(N, alpha, X, incX, Y, incY);
}


Apparently the key is cblas_saxpy, first I tried to direct to the source file of this header file, but I did not find any. So I have tried search the whole directory and the parent directory concerning the project and I could not find any file containing the real definition of cblas_saxpy. But this is the original code and I ran it smoothly.



Then I am confused: if this is the correct version, then there should be some place to define the function cblas_saxpy's implementation, but where is it ?







c++ kaldi






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 '18 at 5:13









exteralvictorexteralvictor

192215




192215













  • It is defined in the compiled library. You won't see the source code. It is already compiled into a binary object file and stored in the library archive.

    – AnT
    Nov 21 '18 at 5:32





















  • It is defined in the compiled library. You won't see the source code. It is already compiled into a binary object file and stored in the library archive.

    – AnT
    Nov 21 '18 at 5:32



















It is defined in the compiled library. You won't see the source code. It is already compiled into a binary object file and stored in the library archive.

– AnT
Nov 21 '18 at 5:32







It is defined in the compiled library. You won't see the source code. It is already compiled into a binary object file and stored in the library archive.

– AnT
Nov 21 '18 at 5:32














1 Answer
1






active

oldest

votes


















2














cblas_saxpy() is defined in the LAPACK library. (As this is a C library, the source code does not need to be present to compile software against the library.) The definition of cblas_saxpy in that library is a wrapper around some extremely old Fortran code.






share|improve this answer
























  • Ok I see, thanks a lot !

    – exteralvictor
    Nov 21 '18 at 6:11











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53405626%2fa-kaldi-function-only-has-header-file-in-c%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














cblas_saxpy() is defined in the LAPACK library. (As this is a C library, the source code does not need to be present to compile software against the library.) The definition of cblas_saxpy in that library is a wrapper around some extremely old Fortran code.






share|improve this answer
























  • Ok I see, thanks a lot !

    – exteralvictor
    Nov 21 '18 at 6:11
















2














cblas_saxpy() is defined in the LAPACK library. (As this is a C library, the source code does not need to be present to compile software against the library.) The definition of cblas_saxpy in that library is a wrapper around some extremely old Fortran code.






share|improve this answer
























  • Ok I see, thanks a lot !

    – exteralvictor
    Nov 21 '18 at 6:11














2












2








2







cblas_saxpy() is defined in the LAPACK library. (As this is a C library, the source code does not need to be present to compile software against the library.) The definition of cblas_saxpy in that library is a wrapper around some extremely old Fortran code.






share|improve this answer













cblas_saxpy() is defined in the LAPACK library. (As this is a C library, the source code does not need to be present to compile software against the library.) The definition of cblas_saxpy in that library is a wrapper around some extremely old Fortran code.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 '18 at 5:28









duskwuffduskwuff

148k19178236




148k19178236













  • Ok I see, thanks a lot !

    – exteralvictor
    Nov 21 '18 at 6:11



















  • Ok I see, thanks a lot !

    – exteralvictor
    Nov 21 '18 at 6:11

















Ok I see, thanks a lot !

– exteralvictor
Nov 21 '18 at 6:11





Ok I see, thanks a lot !

– exteralvictor
Nov 21 '18 at 6:11




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53405626%2fa-kaldi-function-only-has-header-file-in-c%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini