ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template Tmatrix

ietl::Tmatrix

Synopsis

// In header: <alps/src/ietl/tmatrix.h>

template<typename VS> 
class Tmatrix {
public:
  // types
  typedef vectorspace_traits< VS >::scalar_type    scalar_type;   
  typedef vectorspace_traits< VS >::vector_type    vector_type;   
  typedef vectorspace_traits< VS >::magnitude_type magnitude_type;
  typedef vectorspace_traits< VS >::size_type      size_type;     

  // construct/copy/destruct
  Tmatrix();

  // public member functions
  void push_back(magnitude_type, magnitude_type);
  void push_back(std::pair< magnitude_type, magnitude_type >);
  const std::vector< magnitude_type > & eigenvalues(bool = true) const;
  const std::vector< magnitude_type > & errors(bool = true) const;
  const std::vector< int > & multiplicities(bool = true) const;
  std::vector< magnitude_type > const & diagonal() const;
  std::vector< magnitude_type > const & subdiagonal() const;
  template<typename Archive> void save(Archive &) const;
  template<typename Archive> void load(Archive &);

  // private member functions
  void compute(bool = false) const;
};

Description

Tmatrix public construct/copy/destruct

  1. Tmatrix();

Tmatrix public member functions

  1. void push_back(magnitude_type a, magnitude_type b);
  2. void push_back(std::pair< magnitude_type, magnitude_type > a_and_b);
  3. const std::vector< magnitude_type > & 
    eigenvalues(bool discard_ghosts = true) const;
  4. const std::vector< magnitude_type > & errors(bool discard_ghosts = true) const;
  5. const std::vector< int > & multiplicities(bool discard_ghosts = true) const;
  6. std::vector< magnitude_type > const & diagonal() const;
  7. std::vector< magnitude_type > const & subdiagonal() const;
  8. template<typename Archive> void save(Archive & ar) const;
  9. template<typename Archive> void load(Archive & ar);

Tmatrix private member functions

  1. void compute(bool do_err = false) const;
Copyright © 2011 Matthias Troyer, Bela Bauer, Robin Jäger

PrevUpHomeNext