|
Clustering
C++20 header-only: DBSCAN, HDBSCAN, k-means.
|
Inner class providing base functionality for element access in NDArray. More...
#include <clustering/ndarray.h>
Public Member Functions | |
| const T * | data () const |
| Returns a pointer to the element data. | |
Protected Member Functions | |
| BaseAccessor (NDArray< T, N, Layout::Contig > *ndarray, std::size_t index, std::size_t dim) | |
| Constructs a BaseAccessor for a given NDArray, index, and dimension. | |
Protected Attributes | |
| NDArray< T, N, Layout::Contig > * | m_ndarray |
| Pointer to the NDArray. | |
| std::size_t | m_index |
| Index in the flat representation of the array. | |
| std::size_t | m_dim |
| Current dimension of the accessor. | |
Inner class providing base functionality for element access in NDArray.
Accessors are produced only by the contiguous instantiation of NDArray; the pointer type is fixed to Layout::Contig so constructing one from a strided array is ill-formed.
|
inlineprotected |
|
inline |
|
protected |
|
protected |
|
protected |