boostorg / boostorg/ublas

Incorrect parameter ordering in element_sub

Open
#129 4 comments 0 reactions 1 assignee Claimed by @stefanseefeld View on GitHub
bug
Dominant language
C++
Stars
122
Forks
151
PR merge metrics
No merged PRs in 30d

Description

The parameter ordering of a call to element_wise within one of the element_sub overloads is incorrect.

Since the function signature of element_wise is:
```
void element_wise(ublas::matrix const &a,
ublas::matrix const &b,
ublas::matrix &result,
O op, compute::command_queue& queue)
```

The call in the first element_sub overload should be changed to:
`element_wise(a, b, result, compute::minus(), queue);`
as opposed to
`element_wise(a, b, compute::minus(), result, queue);`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.