Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Francesco Brarda
stan-math-petsc
Commits
89dde159
Commit
89dde159
authored
5 years ago
by
Stan Jenkins
Browse files
Options
Download
Email Patches
Plain Diff
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/stable/2017-11-14)
parent
32d9547d
stan-petsc
develop
feature/1258-ad-test-core
feature/issue-1115-newton_solver
feature/issue-989-rev-mat-eig
feature/python-test-math-dependencies
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stan/math/opencl/matrix_cl.hpp
+11
-5
stan/math/opencl/matrix_cl.hpp
with
11 additions
and
5 deletions
+11
-5
stan/math/opencl/matrix_cl.hpp
View file @
89dde159
...
...
@@ -201,7 +201,13 @@ class matrix_cl<T, enable_if_arithmetic<T>> {
}
}
matrix_cl
(
matrix_cl
<
T
>&&
A
)
:
buffer_cl_
(
A
.
buffer_cl_
),
rows_
(
A
.
rows_
),
cols_
(
A
.
cols_
),
view_
(
A
.
view_
),
read_events_
(
std
::
move
(
A
.
read_events_
)),
write_events_
(
std
::
move
(
A
.
write_events_
))
{}
matrix_cl
(
matrix_cl
<
T
>&&
A
)
:
buffer_cl_
(
A
.
buffer_cl_
),
rows_
(
A
.
rows_
),
cols_
(
A
.
cols_
),
view_
(
A
.
view_
),
read_events_
(
std
::
move
(
A
.
read_events_
)),
write_events_
(
std
::
move
(
A
.
write_events_
))
{}
/**
* Constructor for the matrix_cl that
...
...
@@ -366,10 +372,10 @@ class matrix_cl<T, enable_if_arithmetic<T>> {
* Move a \c matrix_cl to another
*/
matrix_cl
<
T
>&
operator
=
(
matrix_cl
<
T
>&&
a
)
{
check_size_match
(
"move of (OpenCL) matrix"
,
"source.rows()"
,
a
.
rows
(),
"destination.rows()"
,
rows
());
check_size_match
(
"move of (OpenCL) matrix"
,
"source.cols()"
,
a
.
cols
(),
"destination.cols()"
,
cols
());
check_size_match
(
"move of (OpenCL) matrix"
,
"source.rows()"
,
a
.
rows
(),
"destination.rows()"
,
rows
());
check_size_match
(
"move of (OpenCL) matrix"
,
"source.cols()"
,
a
.
cols
(),
"destination.cols()"
,
cols
());
// Need to wait for all of matrices events before destroying old buffer
this
->
wait_for_read_write_events
();
buffer_cl_
=
a
.
buffer
();
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help