|
CNum 0.2.1
CPU-optimized ML library for C++
|
#include <StrideView.h>
Public Member Functions | |
| StrideView (T *ptr=nullptr, size_t stride=1, size_t range=0) | |
| Overloaded default constructor. | |
| StrideIterator< T > | begin () const |
| Get an iterator to the beginning of a view. | |
| StrideIterator< T > | end () const |
| Get an iterator to the end of the view. | |
| BinaryMask | operator<= (T val) |
| Create a binary mask of values less than or equal to another. | |
| size_t | size () const |
| Get the number of elements in the stride view (n_strides in the view). | |
| CNum::DataStructs::Views::StrideView< T >::StrideView | ( | T * | ptr = nullptr, |
| size_t | stride = 1, | ||
| size_t | range = 0 ) |
Overloaded default constructor.
| ptr | Raw pointer to the beginning of the view |
| stride | The amount of elements in the pointer between each element in the view |
| range | The range of the view (in strides) |
| StrideIterator< T > CNum::DataStructs::Views::StrideView< T >::begin | ( | ) | const |
Get an iterator to the beginning of a view.
| StrideIterator< T > CNum::DataStructs::Views::StrideView< T >::end | ( | ) | const |
Get an iterator to the end of the view.
| BinaryMask CNum::DataStructs::Views::StrideView< T >::operator<= | ( | T | val | ) |
Create a binary mask of values less than or equal to another.
| size_t CNum::DataStructs::Views::StrideView< T >::size | ( | ) | const |
Get the number of elements in the stride view (n_strides in the view).