Majoranapp
A C++ library for studying MZM in non-interacting systems
VectorViewer.hpp
Go to the documentation of this file.
1 #ifndef VECTORVIEWER_HPP
2 #define VECTORVIEWER_HPP
3 
4 #include <functional>
5 
6 #include "Info.hpp"
7 #include "QuantumSystem/Dimensions.hpp"
9 
10 using ViewerFunction = std::function<void(arma::mat &vectors, int deg)>;
11 
16 {
17 public:
18  static int height;
19  static int length;
20  static int width;
21 
23 
24  static void SetDimensions(Dimensions &dimensions)
25  {
26  height = dimensions.GetHeight();
27  length = dimensions.GetLength();
28  width = dimensions.GetWidth();
29  }
30 };
31 
33 int VectorViewer::length{10};
34 int VectorViewer::width{1};
35 
37 
38 #endif
static int width
Definition: VectorViewer.hpp:20
static int height
Definition: VectorViewer.hpp:18
static int length
Definition: VectorViewer.hpp:19
static void SetDimensions(Dimensions &dimensions)
Definition: VectorViewer.hpp:24
std::function< void(arma::mat &vectors, int deg)> ViewerFunction
Definition: VectorViewer.hpp:10
class for viewing eigenvectors
Definition: VectorViewer.hpp:15
static void View(arma::mat &vectors, int deg)
Definition: DefaultViewer.hpp:16
static ViewerFunction View
Definition: VectorViewer.hpp:22