Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
e3281851
Commit
e3281851
authored
Jul 10, 2016
by
Davis King
Browse files
Added checks to see if cblas.h has already been #included.
parent
15022b22
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
dlib/matrix/cblas_constants.h
dlib/matrix/cblas_constants.h
+2
-0
dlib/matrix/matrix_blas_bindings.h
dlib/matrix/matrix_blas_bindings.h
+2
-0
dlib/matrix/matrix_trsm.h
dlib/matrix/matrix_trsm.h
+2
-1
No files found.
dlib/matrix/cblas_constants.h
View file @
e3281851
...
...
@@ -3,6 +3,7 @@
#ifndef DLIB_CBLAS_CONSTAnTS_Hh_
#define DLIB_CBLAS_CONSTAnTS_Hh_
#ifndef CBLAS_H
namespace
dlib
{
namespace
blas_bindings
...
...
@@ -15,6 +16,7 @@ namespace dlib
}
}
#endif // if not CBLAS_H
#endif // DLIB_CBLAS_CONSTAnTS_Hh_
dlib/matrix/matrix_blas_bindings.h
View file @
e3281851
...
...
@@ -44,6 +44,7 @@ namespace dlib
#define DLIB_TEST_BLAS_BINDING_SCAL
#endif
#ifndef CBLAS_H
extern
"C"
{
// Here we declare the prototypes for the CBLAS calls used by the BLAS bindings below
...
...
@@ -133,6 +134,7 @@ namespace dlib
const
void
*
alpha
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
incY
,
void
*
A
,
const
int
lda
);
}
#endif // if not CBLAS_H
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
dlib/matrix/matrix_trsm.h
View file @
e3281851
...
...
@@ -9,7 +9,7 @@ namespace dlib
{
namespace
blas_bindings
{
#ifndef CBLAS_H
extern
"C"
{
void
cblas_strsm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_SIDE
Side
,
...
...
@@ -24,6 +24,7 @@ namespace dlib
const
double
alpha
,
const
double
*
A
,
const
int
lda
,
double
*
B
,
const
int
ldb
);
}
#endif // if not CBLAS_H
// ------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment