ublas icon indicating copy to clipboard operation
ublas copied to clipboard

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

Open amitsingh19975 opened this issue 3 years ago • 0 comments

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

    using tensor_t = tensor_dynamic<float>;
    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

amitsingh19975 avatar May 26 '21 14:05 amitsingh19975