|
| | ResampleIndex () |
| |
| void | clear () |
| | Release memory. More...
|
| |
| index_type | index (std::size_t id) const |
| |
| index_type | index (std::size_t id, std::size_t iter_back) const |
| |
| index_type | index (std::size_t id, std::size_t iter_back, std::size_t iter) const |
| | Get the index given the particle ID and iteration number. More...
|
| |
| Vector< index_type > | index_matrix (MatrixLayout layout) const |
| |
| Vector< index_type > | index_matrix (MatrixLayout layout, std::size_t iter_back) const |
| |
| Vector< index_type > | index_matrix (MatrixLayout layout, std::size_t iter_back, std::size_t iter) const |
| | Get the resampling index matrix. More...
|
| |
| std::size_t | index_matrix_ncol () const |
| |
| std::size_t | index_matrix_ncol (std::size_t iter_back) const |
| |
| std::size_t | index_matrix_ncol (std::size_t iter_back, std::size_t iter) const |
| |
| std::size_t | index_matrix_nrow () const |
| |
| std::size_t | index_matrix_nrow (std::size_t iter_back) const |
| |
| std::size_t | num_iter () const |
| | Number of iterations recorded. More...
|
| |
| void | push_back (std::size_t N) |
| | Append an identity resampling index. More...
|
| |
| template<typename InputIter > |
| void | push_back (std::size_t N, InputIter first) |
| | Append a resampling index. More...
|
| |
| template<typename RandomIter > |
| RandomIter | read_index_matrix (MatrixLayout layout, RandomIter first) const |
| |
| template<typename RandomIter > |
| RandomIter | read_index_matrix (MatrixLayout layout, RandomIter first, std::size_t iter_back) const |
| |
| template<typename RandomIter > |
| RandomIter | read_index_matrix (MatrixLayout layout, RandomIter first, std::size_t iter_back, std::size_t iter) const |
| | Read the resampling index matrix into an random access iterator. More...
|
| |
| void | reset () |
| | Reset history. More...
|
| |
| std::size_t | size () const |
| | The sample size of the last iteration. More...
|
| |
| std::size_t | size (std::size_t iter) const |
| | The sample size of a given iteration. More...
|
| |
template<typename IntType = std::size_t>
class mckl::ResampleIndex< IntType >
Record and trace resampling index.
Definition at line 598 of file resample.hpp.
template<typename IntType = std::size_t>
template<typename RandomIter >
Read the resampling index matrix into an random access iterator.
The matrix, say \(M\) is assume to be \(N\) by \(R\), where \(R\) is the number of iterations between iter and iter_back, inclusive; and \(N\) is the sample size at iteration iter_back. The output is equivalent to set the \(M_{i,j}\) to index(i, j, iter_back). Note that, column major will be more efficient.
Definition at line 765 of file resample.hpp.