Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
726efee4
Commit
726efee4
authored
Sep 03, 2016
by
Rostislav Vasilikhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
http://code.opencv.org/issues/4278
parent
0a30f64f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
matmul.cpp
modules/core/src/matmul.cpp
+5
-5
No files found.
modules/core/src/matmul.cpp
View file @
726efee4
...
...
@@ -1013,7 +1013,7 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
GEMMBlockMulFunc
blockMulFunc
;
GEMMStoreFunc
storeFunc
;
Mat
*
matD
=
&
D
,
tmat
;
in
t
tmat_size
=
0
;
size_
t
tmat_size
=
0
;
const
uchar
*
Cdata
=
C
.
data
;
size_t
Cstep
=
C
.
data
?
(
size_t
)
C
.
step
:
0
;
AutoBuffer
<
uchar
>
buf
;
...
...
@@ -1046,7 +1046,7 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
if
(
D
.
data
==
A
.
data
||
D
.
data
==
B
.
data
)
{
tmat_size
=
d_size
.
width
*
d_size
.
height
*
CV_ELEM_SIZE
(
type
);
tmat_size
=
(
size_t
)
d_size
.
width
*
d_size
.
height
*
CV_ELEM_SIZE
(
type
);
// Allocate tmat later, once the size of buf is known
matD
=
&
tmat
;
}
...
...
@@ -1137,7 +1137,7 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
int
is_b_t
=
flags
&
GEMM_2_T
;
int
elem_size
=
CV_ELEM_SIZE
(
type
);
int
dk0_1
,
dk0_2
;
in
t
a_buf_size
=
0
,
b_buf_size
,
d_buf_size
;
size_
t
a_buf_size
=
0
,
b_buf_size
,
d_buf_size
;
uchar
*
a_buf
=
0
;
uchar
*
b_buf
=
0
;
uchar
*
d_buf
=
0
;
...
...
@@ -1178,8 +1178,8 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
dn0
=
block_size
/
dk0
;
dk0_1
=
(
dn0
+
dn0
/
8
+
2
)
&
-
2
;
b_buf_size
=
(
dk0
+
dk0
/
8
+
1
)
*
dk0_1
*
elem_size
;
d_buf_size
=
(
dk0
+
dk0
/
8
+
1
)
*
dk0_1
*
work_elem_size
;
b_buf_size
=
(
size_t
)(
dk0
+
dk0
/
8
+
1
)
*
dk0_1
*
elem_size
;
d_buf_size
=
(
size_t
)(
dk0
+
dk0
/
8
+
1
)
*
dk0_1
*
work_elem_size
;
if
(
is_a_t
)
{
...
...
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