boostorg / boostorg/ublas

Exception raised on the construction of the tensor from the `tensor_expression`

Open
#118 0 comments 0 reactions 2 assignees Claimed by @amitsingh19975 View on GitHub
bug
Dominant language
C++
Stars
122
Forks
151
PR merge metrics
No merged PRs in 30d

Description

When constructing expression such as `A + 3 * B` and constructing a tensor out of the expression, the exception is raised, which should not happen.

```cpp
using tensor_t = tensor_dynamic;
auto const e = extents<>{3,2};

auto const a = tensor_t(e, 1.f);

auto const three = 3.f;
auto const expr = a + three * a;
auto const t = tensor_t(expr); // exception
```

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.