A kaldi function only has header file in C++
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
add a comment |
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
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
add a comment |
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
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
c++ kaldi
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
Ok I see, thanks a lot !
– exteralvictor
Nov 21 '18 at 6:11
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Ok I see, thanks a lot !
– exteralvictor
Nov 21 '18 at 6:11
add a comment |
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.
Ok I see, thanks a lot !
– exteralvictor
Nov 21 '18 at 6:11
add a comment |
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.
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.
answered Nov 21 '18 at 5:28
duskwuffduskwuff
148k19178236
148k19178236
Ok I see, thanks a lot !
– exteralvictor
Nov 21 '18 at 6:11
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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