Tenncor
Public Member Functions | Public Attributes | Private Attributes | List of all members
PrettyEquation Struct Referencefinal

Use PrettyTree to render teq::TensptrT graph as an ascii art. More...

#include <teq.hpp>

Collaboration diagram for PrettyEquation:
Collaboration graph
[legend]

Public Member Functions

 PrettyEquation (void)
 
void print (std::ostream &out, const teq::TensptrT &ptr)
 Stream equation of ptr to out. More...
 
void print (std::ostream &out, teq::iTensor *ptr)
 Stream equation of raw ptr to out. More...
 

Public Attributes

LabelsMapT labels_
 For every label associated with a tensor, show LABEL=value in the tree. More...
 
bool showshape_ = false
 Print every tensor's shape if true, otherwise don't. More...
 

Private Attributes

PrettyTree< teq::iTensor * > drawer_
 Actual ascii renderer. More...
 

Detailed Description

Use PrettyTree to render teq::TensptrT graph as an ascii art.

Constructor & Destructor Documentation

◆ PrettyEquation()

PrettyEquation::PrettyEquation ( void  )
inline

Member Function Documentation

◆ print() [1/2]

void PrettyEquation::print ( std::ostream &  out,
const teq::TensptrT ptr 
)
inline

Stream equation of ptr to out.

◆ print() [2/2]

void PrettyEquation::print ( std::ostream &  out,
teq::iTensor ptr 
)
inline

Stream equation of raw ptr to out.

Member Data Documentation

◆ drawer_

PrettyTree<teq::iTensor*> PrettyEquation::drawer_
private

Actual ascii renderer.

◆ labels_

LabelsMapT PrettyEquation::labels_

For every label associated with a tensor, show LABEL=value in the tree.

◆ showshape_

bool PrettyEquation::showshape_ = false

Print every tensor's shape if true, otherwise don't.


The documentation for this struct was generated from the following file: