libfbm
0.3
Simulation of multi-dimensional stationary Gaussian processes and fractional Brownian motion.
|
Integer vector. More...
#include <libfbm.hpp>
Public Member Functions | |
zvec (size_t dim) | |
int & | operator[] (size_t i) |
const int & | operator[] (size_t i) const |
size_t | size () const |
bool | increment (int base) |
Iterate the vector value using the given base. | |
bool | increment (const zvec &dim) |
Iterate the vector value using the given dimensions. | |
bool | increment_but (const zvec &dim, size_t hold) |
Iterate the vector value using the given dimensions except for the dimension with index hold. | |
size_t | index (size_t base) const |
Serialized position of the vector. | |
size_t | index (const zvec &dim) const |
Serialized position of the vector. | |
void | zero () |
Zero all vector components. |
Friends | |
zvec | operator+ (const zvec &l, const zvec &r) |
zvec | operator- (const zvec &l, const zvec &r) |
zvec | operator* (int f, const zvec &v) |
zvec | operator* (const zvec &v, int f) |
Integer vector.
The maximum dimension of the vector is hardcoded in the LIBFBM_MAX_DIM (it is 8 by default).
Definition at line 411 of file libfbm.hpp.
|
inline |
Definition at line 414 of file libfbm.hpp.
|
inline |
Iterate the vector value using the given base.
Definition at line 423 of file libfbm.hpp.
|
inline |
Iterate the vector value using the given dimensions.
dim.size() must be the same as vector size.
Definition at line 441 of file libfbm.hpp.
|
inline |
Iterate the vector value using the given dimensions except for the dimension with index hold.
dim.size() must be the same as vector size.
Definition at line 459 of file libfbm.hpp.
|
inline |
Serialized position of the vector.
Definition at line 477 of file libfbm.hpp.
|
inline |
Serialized position of the vector.
Definition at line 490 of file libfbm.hpp.
|
inline |
Definition at line 416 of file libfbm.hpp.
|
inline |
Definition at line 417 of file libfbm.hpp.
|
inline |
Definition at line 419 of file libfbm.hpp.
|
inline |
Zero all vector components.
Definition at line 503 of file libfbm.hpp.
Definition at line 525 of file libfbm.hpp.
Definition at line 533 of file libfbm.hpp.
Definition at line 509 of file libfbm.hpp.
Definition at line 517 of file libfbm.hpp.