boostorg / boostorg/ublas

Add out of range exception to the static tensor

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

Description

The static tensor does not check for out of range error, which makes the read and writes of invalid memory or segmentation fault easier.

```cpp
auto t = tensor_static>{4.f};
t.at(1,2,3) = 10.f; // no exception triggered.
```

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.