#include <FastInputPreprocessor.h>
Definition at line 45 of file FastInputPreprocessor.h.
◆ FastInputVectorPreprocessor()
| lwt::atlas::FastInputVectorPreprocessor::FastInputVectorPreprocessor |
( |
const std::vector< Input > & | inputs, |
|
|
const std::vector< std::string > & | order ) |
Definition at line 75 of file FastInputPreprocessor.cxx.
77 :
80 {
81 size_t in_num = 0;
82 for (const auto& input: inputs) {
85 in_num++;
86 }
87
88
89 if (in_num == 0) {
90 throw NNConfigurationException("need at least one input");
91 }
92 m_indices = get_value_indices(order, inputs);
93 }
◆ operator()()
| MatrixXd lwt::atlas::FastInputVectorPreprocessor::operator() |
( |
const MatrixXd & | in | ) |
const |
Definition at line 94 of file FastInputPreprocessor.cxx.
94 {
95 using namespace Eigen;
96 size_t n_cols = in.cols();
98 size_t in_num = 0;
100 if (static_cast<int>(index) >= in.rows()) {
101 throw NNEvaluationException(
102 "index " + std::to_string(index) + " is out of range, sequence "
103 "input only has " + std::to_string(in.rows()) + " entries");
104 }
105 inmat.row(in_num) = in.row(index);
106 in_num++;
107 }
108 if (n_cols == 0) {
110 }
112 }
◆ m_indices
| std::vector<size_t> lwt::atlas::FastInputVectorPreprocessor::m_indices |
|
private |
◆ m_offsets
| VectorXd lwt::atlas::FastInputVectorPreprocessor::m_offsets |
|
private |
◆ m_scales
| VectorXd lwt::atlas::FastInputVectorPreprocessor::m_scales |
|
private |
The documentation for this class was generated from the following files: