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

#include <Graph.h>

Inheritance diagram for lwtDev::SumNode:
Collaboration diagram for lwtDev::SumNode:

Public Member Functions

 SumNode (const ISequenceNode *source)
 
virtual VectorXd compute (const ISource &) const override
 
virtual size_t n_outputs () const override
 

Private Attributes

const ISequenceNodem_source
 

Detailed Description

Definition at line 108 of file Graph.h.

Constructor & Destructor Documentation

◆ SumNode()

lwtDev::SumNode::SumNode ( const ISequenceNode source)

Definition at line 193 of file Graph.cxx.

193  :
195  {
196  }

Member Function Documentation

◆ compute()

VectorXd lwtDev::SumNode::compute ( const ISource source) const
overridevirtual

Implements lwtDev::INode.

Definition at line 197 of file Graph.cxx.

197  {
198  return m_source->scan(source).rowwise().sum();
199  }

◆ n_outputs()

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

Implements lwtDev::INode.

Definition at line 200 of file Graph.cxx.

200  {
201  return m_source->n_outputs();
202  }

Member Data Documentation

◆ m_source

const ISequenceNode* lwtDev::SumNode::m_source
private

Definition at line 115 of file Graph.h.


The documentation for this class was generated from the following files:
lwtDev::ISequenceNode::scan
virtual MatrixXd scan(const ISource &) const =0
lwtDev::SumNode::m_source
const ISequenceNode * m_source
Definition: Graph.h:115
lwtDev::ISequenceNode::n_outputs
virtual size_t n_outputs() const =0
copySelective.source
string source
Definition: copySelective.py:32