#include <FastInputPreprocessor.h>
Definition at line 32 of file FastInputPreprocessor.h.
◆ FastInputPreprocessor()
| lwt::atlas::FastInputPreprocessor::FastInputPreprocessor |
( |
const std::vector< Input > & | inputs, |
|
|
const std::vector< std::string > & | order ) |
Definition at line 44 of file FastInputPreprocessor.cxx.
46 :
49 {
50 size_t in_num = 0;
51 for (const auto& input: inputs) {
54 in_num++;
55 }
56 m_indices = get_value_indices(order, inputs);
57 }
◆ operator()()
| VectorXd lwt::atlas::FastInputPreprocessor::operator() |
( |
const VectorXd & | in | ) |
const |
Definition at line 58 of file FastInputPreprocessor.cxx.
58 {
60 size_t input_number = 0;
62 if (static_cast<int>(index) >= in.rows()) {
63 throw NNEvaluationException(
64 "index " + std::to_string(index) + " is out of range, scalar "
65 "input only has " + std::to_string(in.rows()) + " entries");
66 }
67 invec(input_number) = in(index);
68 input_number++;
69 }
71 }
◆ m_indices
| std::vector<size_t> lwt::atlas::FastInputPreprocessor::m_indices |
|
private |
◆ m_offsets
| VectorXd lwt::atlas::FastInputPreprocessor::m_offsets |
|
private |
◆ m_scales
| VectorXd lwt::atlas::FastInputPreprocessor::m_scales |
|
private |
The documentation for this class was generated from the following files: