34 #include <boost/numeric/ublas/matrix_sparse.hpp>
35 #include <boost/numeric/ublas/matrix_proxy.hpp>
45 template <
class Matrix,
class SymmGroup>
class compressor;
46 template <
class Matrix,
class SymmGroup>
class MPOIndexer;
48 template<
class Matrix,
class SymmGroup>
58 typedef boost::shared_ptr<OPTable<Matrix, SymmGroup> >
op_table_ptr;
61 typedef std::pair<tag_type, value_type> internal_value_type;
63 typedef boost::numeric::ublas::compressed_matrix< internal_value_type,
64 boost::numeric::ublas::column_major
65 , 0, boost::numeric::ublas::unbounded_array<index_type>
68 typedef std::vector<std::set<index_type> > RowIndex;
72 typedef boost::numeric::ublas::matrix_column<const CSCMatrix>
col_proxy;
75 typedef std::vector<boost::tuple<std::size_t, std::size_t, tag_type, value_type> > prempo_t;
maquis::traits::scalar_type< Matrix >::type scalar_type
void set(index_type li, index_type ri, op_t const &op, value_type scale_=1.0)
std::vector< int > placement_l
void divide_by_scalar(const scalar_type &)
index_type row_dim() const
tag_detail::tag_type tag_type
op_table_ptr get_operator_table() const
declaration of block_matrix class
OPTable< Matrix, SymmGroup >::tag_type tag_type
tag_type tag_number(index_type left_index, index_type right_index) const
row_proxy row(index_type row_i) const
MPOTensor_detail::row_proxy< typename RowIndex::value_type::const_iterator > row_proxy
include one of the Index class definitions
MPOTensor_detail::const_term_descriptor< Matrix, SymmGroup > at(index_type left_index, index_type right_index) const
bool has(index_type left_index, index_type right_index) const
std::vector< int > placement_r
MPOTensor(index_type=1, index_type=1, prempo_t const &=prempo_t(), op_table_ptr=op_table_ptr())
col_proxy column(index_type col_i) const
boost::shared_ptr< OPTable< Matrix, SymmGroup > > op_table_ptr
definition of MPOTensor object
boost::numeric::ublas::matrix_column< const CSCMatrix > col_proxy
void multiply_by_scalar(const scalar_type &)
index_type col_dim() const
OPTable< Matrix, SymmGroup >::op_t op_t
declaration of OPTable, TagHandler and KronHandler
Matrix::value_type value_type