ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
block_matrix.hpp File Reference
#include "dmrg/block_matrix/block_matrix.h"
#include "utils/function_objects.h"
#include "utils/bindings.hpp"
#include <alps/type_traits/is_complex.hpp>
#include <boost/serialization/serialization.hpp>
#include <boost/ptr_container/serialize_ptr_vector.hpp>

Go to the source code of this file.

Namespaces

 detail
 

Functions

template<class Matrix , class Generator >
void detail::generate_impl (Matrix &m, Generator g)
 
template<class Matrix , class SymmGroup >
std::ostream & operator<< (std::ostream &os, block_matrix< Matrix, SymmGroup > const &m)
 

Function Documentation

template<class Matrix , class SymmGroup >
std::ostream& operator<< ( std::ostream &  os,
block_matrix< Matrix, SymmGroup > const &  m 
)

Definition at line 331 of file block_matrix.hpp.

332 {
333  os << "Left HS: " << m.left_basis() << std::endl;
334  os << "Right HS: " << m.right_basis() << std::endl;
335  for (std::size_t k = 0; k < m.n_blocks(); ++k)
336  os << "Block (" << m.left_basis()[k].first << "," << m.right_basis()[k].first << "):\n" << m[k] << std::endl;
337  os << std::endl;
338  return os;
339 }
size_type n_blocks() const
Index< SymmGroup > const & right_basis() const
Index< SymmGroup > const & left_basis() const