![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Joint moment array of size (n_1+1)x...x(n_d+1), stored column major. More...
#include <line/api/moment/moment_tensor.h>
Public Member Functions | |
| MomentTensor () | |
| MomentTensor (const std::vector< T > &v) | |
| A plain moment vector, i.e. | |
| MomentTensor (const std::vector< std::size_t > &extents) | |
| A zero-filled array of the given extents, with trailing singletons dropped. | |
| std::size_t | order () const |
| std::size_t | numel () const |
| std::size_t | stride (std::size_t l) const |
| Stride of dimension l in the column-major layout. | |
| std::size_t | index (const std::vector< std::size_t > &ord) const |
| Linear index of the multi-index ord, whose entries are the moment orders. | |
| const T & | at (const std::vector< std::size_t > &ord) const |
| T & | at (const std::vector< std::size_t > &ord) |
| void | normalize () |
| Drops the trailing singleton dimensions, keeping at least one. | |
Public Attributes | |
| std::vector< std::size_t > | sz |
| std::vector< T > | data |
Joint moment array of size (n_1+1)x...x(n_d+1), stored column major.
Definition at line 42 of file moment_tensor.h.
|
inline |
Definition at line 46 of file moment_tensor.h.
References sz.
|
inlineexplicit |
|
inlineexplicit |
A zero-filled array of the given extents, with trailing singletons dropped.
Definition at line 52 of file moment_tensor.h.
References data, normalize(), numel(), and sz.
|
inline |
Definition at line 85 of file moment_tensor.h.
|
inline |
Definition at line 84 of file moment_tensor.h.
|
inline |
Linear index of the multi-index ord, whose entries are the moment orders.
Definition at line 73 of file moment_tensor.h.
References line::InputError::InputError(), and sz.
|
inline |
Drops the trailing singleton dimensions, keeping at least one.
Definition at line 88 of file moment_tensor.h.
References sz.
Referenced by MomentTensor().
|
inline |
Definition at line 59 of file moment_tensor.h.
References sz.
Referenced by line::moment::moment_joint_aggregate(), line::moment::moment_joint_marking(), line::moment::moment_tensortrans(), and MomentTensor().
|
inline |
Definition at line 57 of file moment_tensor.h.
References sz.
Referenced by line::moment::moment_joint_aggregate(), line::moment::moment_joint_central_from_raw(), line::moment::moment_joint_central_from_raw_mean(), line::moment::moment_jointtrans(), and line::moment::moment_tensortrans().
|
inline |
Stride of dimension l in the column-major layout.
Definition at line 66 of file moment_tensor.h.
References sz.
Referenced by line::moment::moment_joint_central_from_raw(), and line::moment::moment_tensortrans().
| std::vector<T> line::moment::MomentTensor< T >::data |
Definition at line 44 of file moment_tensor.h.
Referenced by at(), at(), line::moment::moment_joint_aggregate(), line::moment::moment_joint_central_from_raw(), line::moment::moment_joint_cumulant_from_raw(), line::moment::moment_joint_marking(), line::moment::moment_joint_raw_from_cumulant(), line::moment::moment_tensortrans(), MomentTensor(), and MomentTensor().
| std::vector<std::size_t> line::moment::MomentTensor< T >::sz |
Definition at line 43 of file moment_tensor.h.
Referenced by index(), line::moment::moment_joint_aggregate(), line::moment::moment_joint_central_from_raw(), line::moment::moment_joint_central_from_raw_mean(), line::moment::moment_joint_cumulant_from_raw(), line::moment::moment_joint_raw_from_cumulant(), line::moment::moment_jointtrans(), line::moment::moment_tensorsize(), line::moment::moment_tensortrans(), MomentTensor(), MomentTensor(), MomentTensor(), normalize(), numel(), order(), and stride().