#include <Source.h>
|
| DummySource (const std::vector< size_t > &input_sizes, const std::vector< std::pair< size_t, size_t > > &={}) |
|
virtual VectorXd | at (size_t index) const override |
|
virtual MatrixXd | matrix_at (size_t index) const override |
|
Definition at line 36 of file Source.h.
◆ DummySource()
lwtDev::DummySource::DummySource |
( |
const std::vector< size_t > & |
input_sizes, |
|
|
const std::vector< std::pair< size_t, size_t > > & |
ma = {} |
|
) |
| |
◆ at()
VectorXd lwtDev::DummySource::at |
( |
size_t |
index | ) |
const |
|
overridevirtual |
Implements lwtDev::ISource.
Definition at line 42 of file Graph.cxx.
48 VectorXd
vec(n_entries);
49 for (
size_t iii = 0; iii < n_entries; iii++) {
◆ matrix_at()
MatrixXd lwtDev::DummySource::matrix_at |
( |
size_t |
index | ) |
const |
|
overridevirtual |
Implements lwtDev::ISource.
Definition at line 54 of file Graph.cxx.
61 MatrixXd
mat(n_rows, n_cols);
62 for (
size_t iii = 0; iii < n_rows; iii++) {
63 for (
size_t jjj = 0; jjj < n_cols; jjj++) {
64 mat(iii, jjj) = jjj + n_cols * iii;
◆ m_matrix_sizes
std::vector<std::pair<size_t, size_t> > lwtDev::DummySource::m_matrix_sizes |
|
private |
◆ m_sizes
std::vector<size_t> lwtDev::DummySource::m_sizes |
|
private |
The documentation for this class was generated from the following files: