#include <FastGraph.h>
|
| typedef std::vector< Eigen::VectorXd > | NodeVec |
| typedef std::vector< Eigen::MatrixXd > | SeqNodeVec |
Definition at line 32 of file FastGraph.h.
◆ IP
◆ IVP
◆ NodeVec
◆ Preprocs
◆ SeqNodeVec
◆ VecPreprocs
◆ FastGraph() [1/2]
| lwt::atlas::FastGraph::FastGraph |
( |
const GraphConfig & | config, |
|
|
const InputOrder & | order, |
|
|
std::string | default_output = "" ) |
Definition at line 109 of file FastGraph.cxx.
110 :
112 {
113
116
119
120 for (
size_t i = 0;
i <
config.inputs.size();
i++) {
121 const lwt::InputNodeConfig&
node =
config.inputs.at(i);
123 std::vector<std::string> varorder =
order.scalar.at(input_node).second;
125 new FastInputPreprocessor(
node.variables, varorder));
126 }
127 for (
size_t i = 0;
i <
config.input_sequences.size();
i++) {
128 const lwt::InputNodeConfig&
node =
config.input_sequences.at(i);
130 std::vector<std::string> varorder =
order.sequence.at(input_node).second;
132 new FastInputVectorPreprocessor(
node.variables, varorder));
133 }
134 if (default_output.size() > 0) {
135 if (!
config.outputs.count(default_output)) {
136 throw NNConfigurationException("no output node" + default_output);
137 }
139 }
else if (
config.outputs.size() == 1) {
141 } else {
142 throw NNConfigurationException("you must specify a default output");
143 }
144 }
SourceIndices m_input_indices
VecPreprocs m_vec_preprocs
◆ ~FastGraph()
| lwt::atlas::FastGraph::~FastGraph |
( |
| ) |
|
Definition at line 146 of file FastGraph.cxx.
146 {
149 delete preproc;
150 preproc = 0;
151 }
153 delete preproc;
154 preproc = 0;
155 }
156 }
◆ FastGraph() [2/2]
| lwt::atlas::FastGraph::FastGraph |
( |
FastGraph & | | ) |
|
|
delete |
◆ compute() [1/2]
| VectorXd lwt::atlas::FastGraph::compute |
( |
const NodeVec & | nodes, |
|
|
const SeqNodeVec & | seq, |
|
|
size_t | idx ) const |
◆ compute() [2/2]
| VectorXd lwt::atlas::FastGraph::compute |
( |
const NodeVec & | nodes, |
|
|
const SeqNodeVec & | seq = {} ) const |
Definition at line 158 of file FastGraph.cxx.
159 {
161 }
Eigen::VectorXd compute(const NodeVec &, const SeqNodeVec &={}) const
◆ operator=()
◆ m_default_output
| size_t lwt::atlas::FastGraph::m_default_output |
|
private |
◆ m_graph
| Graph* lwt::atlas::FastGraph::m_graph |
|
private |
◆ m_input_indices
◆ m_preprocs
| Preprocs lwt::atlas::FastGraph::m_preprocs |
|
private |
◆ m_vec_preprocs
The documentation for this class was generated from the following files: