#include <sleipnir/autodiff/Slice.hpp>
|
constexpr | Slice ()=default |
|
template<typename Stop >
requires std::same_as<Stop, slicing::none_t> || std::convertible_to<Stop, int> |
constexpr | Slice (Stop stop) |
|
template<typename Start , typename Stop >
requires (std::same_as<Start, slicing::none_t> || std::convertible_to<Start, int>) && (std::same_as<Stop, slicing::none_t> || std::convertible_to<Stop, int>) |
constexpr | Slice (Start start, Stop stop) |
|
template<typename Start , typename Stop , typename Step >
requires (std::same_as<Start, slicing::none_t> || std::convertible_to<Start, int>) && (std::same_as<Stop, slicing::none_t> || std::convertible_to<Stop, int>) && (std::same_as<Step, slicing::none_t> || std::convertible_to<Step, int>) |
constexpr | Slice (Start start, Stop stop, Step step) |
|
constexpr int | Adjust (int length) |
|
◆ Slice() [1/4]
◆ Slice() [2/4]
Constructs a slice.
- Parameters
-
stop | Slice stop index (exclusive). |
◆ Slice() [3/4]
Constructs a slice.
- Parameters
-
start | Slice start index (inclusive). |
stop | Slice stop index (exclusive). |
◆ Slice() [4/4]
Constructs a slice.
- Parameters
-
start | Slice start index (inclusive). |
stop | Slice stop index (exclusive). |
step | Slice step. |
◆ Adjust()
Adjusts start and end slice indices assuming a sequence of the specified length.
- Parameters
-
length | The sequence length. |
- Returns
- The slice length.
◆ start
int sleipnir::Slice::start = 0 |
◆ step
int sleipnir::Slice::step = 1 |
◆ stop
int sleipnir::Slice::stop = 0 |
The documentation for this class was generated from the following file: