VMPS++
Loading...
Searching...
No Matches
PivotVector< Symmetry, Scalar_ > Struct Template Reference

Detailed Description

template<typename Symmetry, typename Scalar_>
struct PivotVector< Symmetry, Scalar_ >

Definition at line 9 of file DmrgPivotVector.h.

#include <DmrgPivotVector.h>

Public Types

typedef Scalar_ Scalar
 

Public Member Functions

 PivotVector ()
 
 PivotVector (const Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > &C)
 
 PivotVector (const vector< Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > > &A12)
 
 PivotVector (const vector< Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > > &A12, const vector< qarray< Symmetry::Nq > > &qloc12, const vector< Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > > &A34, const vector< qarray< Symmetry::Nq > > &qloc34, const qarray< Symmetry::Nq > &Qtop, const qarray< Symmetry::Nq > &Qbot, bool DRY=false)
 
void outerResize (const PivotVector &Vrhs)
 
void setZero ()
 
size_t size () const
 
void print_dims () const
 
Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & operator[] (size_t i)
 
Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & operator() (size_t i)
 
const Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & operator[] (size_t i) const
 
const Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & operator() (size_t i) const
 
PivotVector< Symmetry, Scalar_ > & operator+= (const PivotVector< Symmetry, Scalar_ > &Vrhs)
 
PivotVector< Symmetry, Scalar_ > & operator-= (const PivotVector< Symmetry, Scalar_ > &Vrhs)
 
template<typename OtherScalar >
PivotVector< Symmetry, Scalar_ > & operator*= (const OtherScalar &alpha)
 
template<typename OtherScalar >
PivotVector< Symmetry, Scalar_ > & operator/= (const OtherScalar &alpha)
 

Public Attributes

vector< Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > > data
 

Static Public Attributes

static constexpr std::size_t Nq = Symmetry::Nq
 

Member Typedef Documentation

◆ Scalar

template<typename Symmetry , typename Scalar_ >
typedef Scalar_ PivotVector< Symmetry, Scalar_ >::Scalar

Definition at line 11 of file DmrgPivotVector.h.

Constructor & Destructor Documentation

◆ PivotVector() [1/4]

template<typename Symmetry , typename Scalar_ >
PivotVector< Symmetry, Scalar_ >::PivotVector ( )
inline

Definition at line 15 of file DmrgPivotVector.h.

◆ PivotVector() [2/4]

template<typename Symmetry , typename Scalar_ >
PivotVector< Symmetry, Scalar_ >::PivotVector ( const Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > &  C)
inline

Set from a center matrix.

Definition at line 21 of file DmrgPivotVector.h.

◆ PivotVector() [3/4]

template<typename Symmetry , typename Scalar_ >
PivotVector< Symmetry, Scalar_ >::PivotVector ( const vector< Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > > &  A12)
inline

Set from one A-tensor.

Definition at line 28 of file DmrgPivotVector.h.

◆ PivotVector() [4/4]

template<typename Symmetry , typename Scalar_ >
PivotVector< Symmetry, Scalar_ >::PivotVector ( const vector< Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > > &  A12,
const vector< qarray< Symmetry::Nq > > &  qloc12,
const vector< Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > > &  A34,
const vector< qarray< Symmetry::Nq > > &  qloc34,
const qarray< Symmetry::Nq > &  Qtop,
const qarray< Symmetry::Nq > &  Qbot,
bool  DRY = false 
)
inline

Make contraction of two A-tensors.

Definition at line 33 of file DmrgPivotVector.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename Symmetry , typename Scalar_ >
Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & PivotVector< Symmetry, Scalar_ >::operator() ( size_t  i)
inline

Definition at line 107 of file DmrgPivotVector.h.

◆ operator()() [2/2]

template<typename Symmetry , typename Scalar_ >
const Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & PivotVector< Symmetry, Scalar_ >::operator() ( size_t  i) const
inline

Definition at line 109 of file DmrgPivotVector.h.

◆ operator*=()

template<typename Symmetry , typename Scalar_ >
template<typename OtherScalar >
PivotVector< Symmetry, Scalar_ > & PivotVector< Symmetry, Scalar_ >::operator*= ( const OtherScalar &  alpha)

Definition at line 225 of file DmrgPivotVector.h.

◆ operator+=()

template<typename Symmetry , typename Scalar_ >
PivotVector< Symmetry, Scalar_ > & PivotVector< Symmetry, Scalar_ >::operator+= ( const PivotVector< Symmetry, Scalar_ > &  Vrhs)

Definition at line 122 of file DmrgPivotVector.h.

◆ operator-=()

template<typename Symmetry , typename Scalar_ >
PivotVector< Symmetry, Scalar_ > & PivotVector< Symmetry, Scalar_ >::operator-= ( const PivotVector< Symmetry, Scalar_ > &  Vrhs)

Definition at line 172 of file DmrgPivotVector.h.

◆ operator/=()

template<typename Symmetry , typename Scalar_ >
template<typename OtherScalar >
PivotVector< Symmetry, Scalar_ > & PivotVector< Symmetry, Scalar_ >::operator/= ( const OtherScalar &  alpha)

Definition at line 241 of file DmrgPivotVector.h.

◆ operator[]() [1/2]

template<typename Symmetry , typename Scalar_ >
Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & PivotVector< Symmetry, Scalar_ >::operator[] ( size_t  i)
inline

Definition at line 106 of file DmrgPivotVector.h.

◆ operator[]() [2/2]

template<typename Symmetry , typename Scalar_ >
const Biped< Symmetry, Matrix< Scalar_, Dynamic, Dynamic > > & PivotVector< Symmetry, Scalar_ >::operator[] ( size_t  i) const
inline

Definition at line 108 of file DmrgPivotVector.h.

◆ outerResize()

template<typename Symmetry , typename Scalar_ >
void PivotVector< Symmetry, Scalar_ >::outerResize ( const PivotVector< Symmetry, Scalar_ > &  Vrhs)
inline

Set blocks as in Vrhs, but do not resize the matrices

Definition at line 51 of file DmrgPivotVector.h.

◆ print_dims()

template<typename Symmetry , typename Scalar_ >
void PivotVector< Symmetry, Scalar_ >::print_dims ( ) const
inline

Definition at line 76 of file DmrgPivotVector.h.

◆ setZero()

template<typename Symmetry , typename Scalar_ >
void PivotVector< Symmetry, Scalar_ >::setZero ( )
inline

Definition at line 65 of file DmrgPivotVector.h.

◆ size()

template<typename Symmetry , typename Scalar_ >
size_t PivotVector< Symmetry, Scalar_ >::size ( ) const
inline

Definition at line 74 of file DmrgPivotVector.h.

Member Data Documentation

◆ data

template<typename Symmetry , typename Scalar_ >
vector<Biped<Symmetry,Matrix<Scalar_,Dynamic,Dynamic> > > PivotVector< Symmetry, Scalar_ >::data

Definition at line 116 of file DmrgPivotVector.h.

◆ Nq

template<typename Symmetry , typename Scalar_ >
constexpr std::size_t PivotVector< Symmetry, Scalar_ >::Nq = Symmetry::Nq
staticconstexpr

Definition at line 13 of file DmrgPivotVector.h.


The documentation for this struct was generated from the following file: