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
6dca7dea
"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "7e49ccef3906474bccc83f8a9f33e993f739eb79"
Commit
6dca7dea
authored
Oct 07, 2013
by
Davis King
Browse files
Reverted the changes from 4704356b676c.
parent
03ceb3ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
80 deletions
+74
-80
dlib/matrix/lapack/fortran_id.h
dlib/matrix/lapack/fortran_id.h
+0
-3
dlib/matrix/matrix_blas_bindings.h
dlib/matrix/matrix_blas_bindings.h
+74
-77
No files found.
dlib/matrix/lapack/fortran_id.h
View file @
6dca7dea
...
@@ -46,9 +46,6 @@ namespace dlib
...
@@ -46,9 +46,6 @@ namespace dlib
#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
typedef
int
integer
;
typedef
int
integer
;
typedef
unsigned
int
uinteger
;
typedef
unsigned
int
uinteger
;
#elif defined(_M_X64) // If we are building on windows in Win64 mode
typedef
long
long
int
integer
;
typedef
unsigned
long
long
int
uinteger
;
#else
#else
typedef
long
int
integer
;
typedef
long
int
integer
;
typedef
unsigned
long
int
uinteger
;
typedef
unsigned
long
int
uinteger
;
...
...
dlib/matrix/matrix_blas_bindings.h
View file @
6dca7dea
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
#include "matrix_assign.h"
#include "matrix_assign.h"
#include "matrix_conj_trans.h"
#include "matrix_conj_trans.h"
#include "cblas_constants.h"
#include "cblas_constants.h"
#include "lapack\fortran_id.h"
//#include <iostream>
//#include <iostream>
//using namespace std;
//using namespace std;
...
@@ -45,96 +44,94 @@ namespace dlib
...
@@ -45,96 +44,94 @@ namespace dlib
#define DLIB_TEST_BLAS_BINDING_SCAL
#define DLIB_TEST_BLAS_BINDING_SCAL
#endif
#endif
using
dlib
::
lapack
::
integer
;
extern
"C"
extern
"C"
{
{
// Here we declare the prototypes for the CBLAS calls used by the BLAS bindings below
// Here we declare the prototypes for the CBLAS calls used by the BLAS bindings below
void
cblas_saxpy
(
const
int
eger
N
,
const
float
alpha
,
const
float
*
X
,
void
cblas_saxpy
(
const
int
N
,
const
float
alpha
,
const
float
*
X
,
const
int
eger
incX
,
float
*
Y
,
const
int
eger
incY
);
const
int
incX
,
float
*
Y
,
const
int
incY
);
void
cblas_daxpy
(
const
int
eger
N
,
const
double
alpha
,
const
double
*
X
,
void
cblas_daxpy
(
const
int
N
,
const
double
alpha
,
const
double
*
X
,
const
int
eger
incX
,
double
*
Y
,
const
int
eger
incY
);
const
int
incX
,
double
*
Y
,
const
int
incY
);
void
cblas_caxpy
(
const
int
eger
N
,
const
void
*
alpha
,
const
void
*
X
,
void
cblas_caxpy
(
const
int
N
,
const
void
*
alpha
,
const
void
*
X
,
const
int
eger
incX
,
void
*
Y
,
const
int
eger
incY
);
const
int
incX
,
void
*
Y
,
const
int
incY
);
void
cblas_zaxpy
(
const
int
eger
N
,
const
void
*
alpha
,
const
void
*
X
,
void
cblas_zaxpy
(
const
int
N
,
const
void
*
alpha
,
const
void
*
X
,
const
int
eger
incX
,
void
*
Y
,
const
int
eger
incY
);
const
int
incX
,
void
*
Y
,
const
int
incY
);
void
cblas_sscal
(
const
int
eger
N
,
const
float
alpha
,
float
*
X
,
const
int
eger
incX
);
void
cblas_sscal
(
const
int
N
,
const
float
alpha
,
float
*
X
,
const
int
incX
);
void
cblas_dscal
(
const
int
eger
N
,
const
double
alpha
,
double
*
X
,
const
int
eger
incX
);
void
cblas_dscal
(
const
int
N
,
const
double
alpha
,
double
*
X
,
const
int
incX
);
void
cblas_cscal
(
const
int
eger
N
,
const
void
*
alpha
,
void
*
X
,
const
int
eger
incX
);
void
cblas_cscal
(
const
int
N
,
const
void
*
alpha
,
void
*
X
,
const
int
incX
);
void
cblas_zscal
(
const
int
eger
N
,
const
void
*
alpha
,
void
*
X
,
const
int
eger
incX
);
void
cblas_zscal
(
const
int
N
,
const
void
*
alpha
,
void
*
X
,
const
int
incX
);
void
cblas_sgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
void
cblas_sgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
M
,
const
int
N
,
const
int
eger
K
,
const
float
alpha
,
const
float
*
A
,
const
int
K
,
const
float
alpha
,
const
float
*
A
,
const
int
eger
lda
,
const
float
*
B
,
const
int
eger
ldb
,
const
int
lda
,
const
float
*
B
,
const
int
ldb
,
const
float
beta
,
float
*
C
,
const
int
eger
ldc
);
const
float
beta
,
float
*
C
,
const
int
ldc
);
void
cblas_dgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
void
cblas_dgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
M
,
const
int
N
,
const
int
eger
K
,
const
double
alpha
,
const
double
*
A
,
const
int
K
,
const
double
alpha
,
const
double
*
A
,
const
int
eger
lda
,
const
double
*
B
,
const
int
eger
ldb
,
const
int
lda
,
const
double
*
B
,
const
int
ldb
,
const
double
beta
,
double
*
C
,
const
int
eger
ldc
);
const
double
beta
,
double
*
C
,
const
int
ldc
);
void
cblas_cgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
void
cblas_cgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
M
,
const
int
N
,
const
int
eger
K
,
const
void
*
alpha
,
const
void
*
A
,
const
int
K
,
const
void
*
alpha
,
const
void
*
A
,
const
int
eger
lda
,
const
void
*
B
,
const
int
eger
ldb
,
const
int
lda
,
const
void
*
B
,
const
int
ldb
,
const
void
*
beta
,
void
*
C
,
const
int
eger
ldc
);
const
void
*
beta
,
void
*
C
,
const
int
ldc
);
void
cblas_zgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
void
cblas_zgemm
(
const
enum
CBLAS_ORDER
Order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransB
,
const
int
M
,
const
int
N
,
const
int
eger
K
,
const
void
*
alpha
,
const
void
*
A
,
const
int
K
,
const
void
*
alpha
,
const
void
*
A
,
const
int
eger
lda
,
const
void
*
B
,
const
int
eger
ldb
,
const
int
lda
,
const
void
*
B
,
const
int
ldb
,
const
void
*
beta
,
void
*
C
,
const
int
eger
ldc
);
const
void
*
beta
,
void
*
C
,
const
int
ldc
);
void
cblas_sgemv
(
const
enum
CBLAS_ORDER
order
,
void
cblas_sgemv
(
const
enum
CBLAS_ORDER
order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
M
,
const
int
N
,
const
float
alpha
,
const
float
*
A
,
const
int
eger
lda
,
const
float
alpha
,
const
float
*
A
,
const
int
lda
,
const
float
*
X
,
const
int
eger
incX
,
const
float
beta
,
const
float
*
X
,
const
int
incX
,
const
float
beta
,
float
*
Y
,
const
int
eger
incY
);
float
*
Y
,
const
int
incY
);
void
cblas_dgemv
(
const
enum
CBLAS_ORDER
order
,
void
cblas_dgemv
(
const
enum
CBLAS_ORDER
order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
M
,
const
int
N
,
const
double
alpha
,
const
double
*
A
,
const
int
eger
lda
,
const
double
alpha
,
const
double
*
A
,
const
int
lda
,
const
double
*
X
,
const
int
eger
incX
,
const
double
beta
,
const
double
*
X
,
const
int
incX
,
const
double
beta
,
double
*
Y
,
const
int
eger
incY
);
double
*
Y
,
const
int
incY
);
void
cblas_cgemv
(
const
enum
CBLAS_ORDER
order
,
void
cblas_cgemv
(
const
enum
CBLAS_ORDER
order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
M
,
const
int
N
,
const
void
*
alpha
,
const
void
*
A
,
const
int
eger
lda
,
const
void
*
alpha
,
const
void
*
A
,
const
int
lda
,
const
void
*
X
,
const
int
eger
incX
,
const
void
*
beta
,
const
void
*
X
,
const
int
incX
,
const
void
*
beta
,
void
*
Y
,
const
int
eger
incY
);
void
*
Y
,
const
int
incY
);
void
cblas_zgemv
(
const
enum
CBLAS_ORDER
order
,
void
cblas_zgemv
(
const
enum
CBLAS_ORDER
order
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
eger
M
,
const
int
eger
N
,
const
enum
CBLAS_TRANSPOSE
TransA
,
const
int
M
,
const
int
N
,
const
void
*
alpha
,
const
void
*
A
,
const
int
eger
lda
,
const
void
*
alpha
,
const
void
*
A
,
const
int
lda
,
const
void
*
X
,
const
int
eger
incX
,
const
void
*
beta
,
const
void
*
X
,
const
int
incX
,
const
void
*
beta
,
void
*
Y
,
const
int
eger
incY
);
void
*
Y
,
const
int
incY
);
void
cblas_sger
(
const
enum
CBLAS_ORDER
order
,
const
int
eger
M
,
const
int
eger
N
,
void
cblas_sger
(
const
enum
CBLAS_ORDER
order
,
const
int
M
,
const
int
N
,
const
float
alpha
,
const
float
*
X
,
const
int
eger
incX
,
const
float
alpha
,
const
float
*
X
,
const
int
incX
,
const
float
*
Y
,
const
int
eger
incY
,
float
*
A
,
const
int
eger
lda
);
const
float
*
Y
,
const
int
incY
,
float
*
A
,
const
int
lda
);
void
cblas_dger
(
const
enum
CBLAS_ORDER
order
,
const
int
eger
M
,
const
int
eger
N
,
void
cblas_dger
(
const
enum
CBLAS_ORDER
order
,
const
int
M
,
const
int
N
,
const
double
alpha
,
const
double
*
X
,
const
int
eger
incX
,
const
double
alpha
,
const
double
*
X
,
const
int
incX
,
const
double
*
Y
,
const
int
eger
incY
,
double
*
A
,
const
int
eger
lda
);
const
double
*
Y
,
const
int
incY
,
double
*
A
,
const
int
lda
);
void
cblas_cgerc
(
const
enum
CBLAS_ORDER
order
,
const
int
eger
M
,
const
int
eger
N
,
void
cblas_cgerc
(
const
enum
CBLAS_ORDER
order
,
const
int
M
,
const
int
N
,
const
void
*
alpha
,
const
void
*
X
,
const
int
eger
incX
,
const
void
*
alpha
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
A
,
const
int
eger
lda
);
const
void
*
Y
,
const
int
incY
,
void
*
A
,
const
int
lda
);
void
cblas_zgerc
(
const
enum
CBLAS_ORDER
order
,
const
int
eger
M
,
const
int
eger
N
,
void
cblas_zgerc
(
const
enum
CBLAS_ORDER
order
,
const
int
M
,
const
int
N
,
const
void
*
alpha
,
const
void
*
X
,
const
int
eger
incX
,
const
void
*
alpha
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
A
,
const
int
eger
lda
);
const
void
*
Y
,
const
int
incY
,
void
*
A
,
const
int
lda
);
float
cblas_sdot
(
const
int
eger
N
,
const
float
*
X
,
const
int
eger
incX
,
float
cblas_sdot
(
const
int
N
,
const
float
*
X
,
const
int
incX
,
const
float
*
Y
,
const
int
eger
incY
);
const
float
*
Y
,
const
int
incY
);
double
cblas_ddot
(
const
int
eger
N
,
const
double
*
X
,
const
int
eger
incX
,
double
cblas_ddot
(
const
int
N
,
const
double
*
X
,
const
int
incX
,
const
double
*
Y
,
const
int
eger
incY
);
const
double
*
Y
,
const
int
incY
);
void
cblas_cdotu_sub
(
const
int
eger
N
,
const
void
*
X
,
const
int
eger
incX
,
void
cblas_cdotu_sub
(
const
int
N
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
dotu
);
const
void
*
Y
,
const
int
incY
,
void
*
dotu
);
void
cblas_zdotu_sub
(
const
int
eger
N
,
const
void
*
X
,
const
int
eger
incX
,
void
cblas_zdotu_sub
(
const
int
N
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
dotu
);
const
void
*
Y
,
const
int
incY
,
void
*
dotu
);
void
cblas_cdotc_sub
(
const
int
eger
N
,
const
void
*
X
,
const
int
eger
incX
,
void
cblas_cdotc_sub
(
const
int
N
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
dotc
);
const
void
*
Y
,
const
int
incY
,
void
*
dotc
);
void
cblas_zdotc_sub
(
const
int
eger
N
,
const
void
*
X
,
const
int
eger
incX
,
void
cblas_zdotc_sub
(
const
int
N
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
dotc
);
const
void
*
Y
,
const
int
incY
,
void
*
dotc
);
void
cblas_cgeru
(
const
enum
CBLAS_ORDER
order
,
const
int
eger
M
,
const
int
eger
N
,
void
cblas_cgeru
(
const
enum
CBLAS_ORDER
order
,
const
int
M
,
const
int
N
,
const
void
*
alpha
,
const
void
*
X
,
const
int
eger
incX
,
const
void
*
alpha
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
A
,
const
int
eger
lda
);
const
void
*
Y
,
const
int
incY
,
void
*
A
,
const
int
lda
);
void
cblas_zgeru
(
const
enum
CBLAS_ORDER
order
,
const
int
eger
M
,
const
int
eger
N
,
void
cblas_zgeru
(
const
enum
CBLAS_ORDER
order
,
const
int
M
,
const
int
N
,
const
void
*
alpha
,
const
void
*
X
,
const
int
eger
incX
,
const
void
*
alpha
,
const
void
*
X
,
const
int
incX
,
const
void
*
Y
,
const
int
eger
incY
,
void
*
A
,
const
int
eger
lda
);
const
void
*
Y
,
const
int
incY
,
void
*
A
,
const
int
lda
);
}
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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