KrisLibrary  1.0.0
MatrixEquationPrinter.h
1 #ifndef MATH_MATRIX_EQUATION_PRINTER_H
2 #define MATH_MATRIX_EQUATION_PRINTER_H
3 
4 #include "matrix.h"
5 #include <list>
6 
7 namespace Math
8 {
9 
11 {
12  EquationTerm();
13  int Height() const;
14  int Width() const;
15  void PrintLine(int line,std::ostream& out) const;
16 
17  const Matrix* matrix;
18  const Vector* vector;
19  const char* text;
20  Real scalar;
21  bool transpose;
22  bool ASCIIshade;
23 };
24 
26 {
27 public:
28  void PushMatrix(const Matrix&);
29  void PushMatrixTranspose(const Matrix&);
30  void PushVector(const Vector&);
31  void PushText(const char*);
32  void PushScalar(Real);
33  inline void PushAdd() { PushText("+"); }
34  inline void PushSub() { PushText("-"); }
35  inline void PushTimes() { PushText("*"); }
36  inline void PushDot() { PushText("."); }
37  inline void PushEquals() { PushText("="); }
38  void Print(std::ostream& out) const;
39  void Clear();
40 
41  std::list<EquationTerm> terms;
42 };
43 
44 
45 } //namespace Math
46 
47 #endif
Definition: MatrixEquationPrinter.h:25
Definition: MatrixEquationPrinter.h:10
Contains all definitions in the Math package.
Definition: WorkspaceBound.h:12