openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
The vector class and related algorithms. More...
#include <iterator>
#include <cstring>
Go to the source code of this file.
Classes | |
class | SF::vector< T > |
A vector storing arbitrary data. More... | |
Namespaces | |
SF | |
Functions | |
template<class T > | |
void | SF::dsp_from_cnt (const vector< T > &cnt, vector< T > &dsp) |
Compute displacements from counts. More... | |
template<class T > | |
void | SF::cnt_from_dsp (const vector< T > &dsp, vector< T > &cnt) |
Compute counts from displacements. More... | |
template<class T , class S > | |
void | SF::count (const vector< T > &data, vector< S > &cnt) |
Count number of occurrences of indices. More... | |
template<class T > | |
T | SF::sum (const vector< T > &vec) |
Compute sum of a vector's entries. More... | |
template<class T > | |
void | SF::interval (vector< T > &vec, size_t start, size_t end) |
Create an integer interval between start and end. More... | |
template<class T > | |
void | SF::divide (const size_t gsize, const size_t num_parts, vector< T > &loc_sizes) |
divide gsize into num_parts local parts with even distribution of the remainder More... | |
template<class S , class V > | |
void | SF::vec_assign (S *lhs, const V *rhs, size_t size) |
Assign the values in rhs to lhs. The data-type of rhs is cast to the type of lhs. More... | |
template<class T > | |
bool | SF::isEmpty (vector< T > &v) |
Return whether an vector is empty (all values are 0). More... | |