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
c4a63d77
Commit
c4a63d77
authored
Jan 26, 2013
by
Davis King
Browse files
Fixed bug in the axpy/scpy BLAS bindings which triggered when empty matrices
were assigned to each other.
parent
8d217377
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dlib/matrix/matrix_blas_bindings.h
dlib/matrix/matrix_blas_bindings.h
+6
-6
No files found.
dlib/matrix/matrix_blas_bindings.h
View file @
c4a63d77
...
...
@@ -545,9 +545,9 @@ namespace dlib
DLIB_ADD_BLAS_BINDING
(
m
)
{
if
(
transpose
==
false
)
{
const
int
N
=
static_cast
<
int
>
(
src
.
size
());
if
(
transpose
==
false
&&
N
!=
0
)
{
if
(
add_to
)
{
cblas_axpy
(
N
,
alpha
,
get_ptr
(
src
),
1
,
get_ptr
(
dest
),
1
);
...
...
@@ -574,9 +574,9 @@ namespace dlib
DLIB_ADD_BLAS_BINDING
(
rv
)
{
if
(
transpose
==
false
)
{
const
int
N
=
static_cast
<
int
>
(
src
.
size
());
if
(
transpose
==
false
&&
N
!=
0
)
{
if
(
add_to
)
{
cblas_axpy
(
N
,
alpha
,
get_ptr
(
src
),
1
,
get_ptr
(
dest
),
1
);
...
...
@@ -603,9 +603,9 @@ namespace dlib
DLIB_ADD_BLAS_BINDING
(
cv
)
{
if
(
transpose
==
false
)
{
const
int
N
=
static_cast
<
int
>
(
src
.
size
());
if
(
transpose
==
false
&&
N
!=
0
)
{
if
(
add_to
)
{
cblas_axpy
(
N
,
alpha
,
get_ptr
(
src
),
1
,
get_ptr
(
dest
),
1
);
...
...
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