Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c4a63d77
Commit
c4a63d77
authored
Jan 26, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in the axpy/scpy BLAS bindings which triggered when empty matrices
were assigned to each other.
parent
8d217377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
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
)
{
const
int
N
=
static_cast
<
int
>
(
src
.
size
());
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
)
{
const
int
N
=
static_cast
<
int
>
(
src
.
size
());
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
)
{
const
int
N
=
static_cast
<
int
>
(
src
.
size
());
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