ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
lwtDev::TimeDistributedNode Class Reference

#include <Graph.h>

Inheritance diagram for lwtDev::TimeDistributedNode:
Collaboration diagram for lwtDev::TimeDistributedNode:

Public Member Functions

 TimeDistributedNode (const Stack *, const ISequenceNode *source)
 
virtual MatrixXd scan (const ISource &) const override
 
virtual size_t n_outputs () const override
 

Private Attributes

const Stackm_stack
 
const ISequenceNodem_source
 

Detailed Description

Definition at line 98 of file Graph.h.

Constructor & Destructor Documentation

◆ TimeDistributedNode()

lwtDev::TimeDistributedNode::TimeDistributedNode ( const Stack stack,
const ISequenceNode source 
)

Definition at line 174 of file Graph.cxx.

175  :
176  m_stack(stack),
178  {
179  }

Member Function Documentation

◆ n_outputs()

size_t lwtDev::TimeDistributedNode::n_outputs ( ) const
overridevirtual

Implements lwtDev::ISequenceNode.

Definition at line 189 of file Graph.cxx.

189  {
190  return m_stack->n_outputs();
191  }

◆ scan()

MatrixXd lwtDev::TimeDistributedNode::scan ( const ISource source) const
overridevirtual

Implements lwtDev::ISequenceNode.

Definition at line 180 of file Graph.cxx.

180  {
181  MatrixXd input = m_source->scan(source);
182  MatrixXd output(m_stack->n_outputs(), input.cols());
183  size_t n_columns = input.cols();
184  for (size_t col_n = 0; col_n < n_columns; col_n++) {
185  output.col(col_n) = m_stack->compute(input.col(col_n));
186  }
187  return output;
188  }

Member Data Documentation

◆ m_source

const ISequenceNode* lwtDev::TimeDistributedNode::m_source
private

Definition at line 106 of file Graph.h.

◆ m_stack

const Stack* lwtDev::TimeDistributedNode::m_stack
private

Definition at line 105 of file Graph.h.


The documentation for this class was generated from the following files:
lwtDev::Stack::n_outputs
size_t n_outputs() const
Definition: Stack.cxx:57
lwtDev::TimeDistributedNode::m_source
const ISequenceNode * m_source
Definition: Graph.h:106
lwtDev::ISequenceNode::scan
virtual MatrixXd scan(const ISource &) const =0
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
merge.output
output
Definition: merge.py:17
lwtDev::TimeDistributedNode::m_stack
const Stack * m_stack
Definition: Graph.h:105
copySelective.source
string source
Definition: copySelective.py:32
lwtDev::Stack::compute
VectorXd compute(VectorXd) const
Definition: Stack.cxx:51