Function Jet::Utilities::RavelIndex¶
Defined in File Utilities.hpp
Function Documentation¶
-
inline unsigned long long
Jet::Utilities
::
RavelIndex
(const std::vector<size_t> &index, const std::vector<size_t> &shape)¶ Converts a multi-dimensional index into a linear index.
Note
This function is the inverse of UnravelIndex().
- Parameters
index – Multi-index to be raveled, expressed in row-major order.
shape – Size of each index dimension.
- Returns
Linear index associated with the multi-index.
api/function_Utilities_8hpp_1a6005bbb5b254fcbc4bf02bf021c73ea9
Download Python script
Download Notebook
View on GitHub