Class for slicing index.
More...
#include <ndarray-11.hpp>
|
| Range () |
| Slicing constructor.
|
|
| Range (const std::string &str) |
|
| Range (int start, int stop, int step, bool has_stop=true) |
|
|
static Range | parseRange (const std::string &str) |
|
|
int | start |
|
int | stop |
|
int | step |
|
bool | has_stop |
| Flag to check if stop is given.
|
|
◆ Range()
Slicing constructor.
- Parameters
-
Example
int main() {
{
{0, 1, 2},
{3, 4, 5}
},
{
{6, 7, 8},
{9,10,11}
},
};
auto result1 = array.slice(s1);
auto result2 = array["0:1, 1:"];
auto result3 = array.slice["0:1, 1:, ::2"];
}
A simple multi-dimensional array implementation in C++11.
An interface to create Ndarray.
Definition ndarray-11.hpp:375
Class for slicing index.
Definition ndarray-11.hpp:57
The documentation for this struct was generated from the following file: