libfbm
0.1
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 379 of file libfbm.hpp.
|
inline |
Definition at line 382 of file libfbm.hpp.
|
inline |
Iterate the vector value using the given base.
Definition at line 391 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 409 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 427 of file libfbm.hpp.
|
inline |
Serialized position of the vector.
Definition at line 445 of file libfbm.hpp.
|
inline |
Serialized position of the vector.
Definition at line 458 of file libfbm.hpp.
|
inline |
Definition at line 384 of file libfbm.hpp.
|
inline |
Definition at line 385 of file libfbm.hpp.
|
inline |
Definition at line 387 of file libfbm.hpp.
|
inline |
Zero all vector components.
Definition at line 471 of file libfbm.hpp.
Definition at line 493 of file libfbm.hpp.
Definition at line 501 of file libfbm.hpp.
Definition at line 477 of file libfbm.hpp.
Definition at line 485 of file libfbm.hpp.