ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
index.hpp File Reference
#include <cassert>
#include <cstddef>
#include <iterator>
#include <numeric>
#include <stdexcept>
#include "Vector.hpp"
+ Include dependency graph for index.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Utils
 

Enumerations

enum class  Utils::MemoryOrder { Utils::COLUMN_MAJOR , Utils::ROW_MAJOR }
 

Functions

int Utils::get_linear_index (int a, int b, int c, const Vector3i &adim, MemoryOrder memory_order=MemoryOrder::COLUMN_MAJOR)
 get the linear index from the position (a,b,c) in a 3D grid of dimensions adim.
 
int Utils::get_linear_index (const Vector3i &ind, const Vector3i &adim, MemoryOrder memory_order=MemoryOrder::COLUMN_MAJOR)
 
template<class T >
Utils::lower_triangular (T i, T j)
 Linear index into a lower triangular matrix.