MADNESS
0.10.1
|
class defining an operator in matrix form, fixed to size (4,4) More...
Public Types | |
typedef std::vector< std::pair< double_complex, std::shared_ptr< SCFOperatorBase< double_complex, 3 > > > > | opT |
Public Member Functions | |
MatrixOperator (const int i=4, const int j=4) | |
void | add_operator (const int i, const int j, const double_complex &fac, const std::shared_ptr< SCFOperatorBase< double_complex, 3 >> op) |
void | add_submatrix (int istart, int jstart, const MatrixOperator &submatrix) |
add a submatrix to this More... | |
std::size_t | ncol () const |
std::size_t | nrow () const |
virtual Spinor | operator() (const Spinor &arg) const |
virtual std::vector< Spinor > | operator() (const std::vector< Spinor > &arg) const |
MatrixOperator | operator+ (const MatrixOperator &other) const |
MatrixOperator & | operator+= (const MatrixOperator &other) |
void | print (std::string name="") const |
Public Attributes | |
std::vector< std::vector< opT > > | elements |
matrix containing prefactor and operator More... | |
class defining an operator in matrix form, fixed to size (4,4)
typedef std::vector<std::pair<double_complex,std::shared_ptr<SCFOperatorBase<double_complex,3> > > > MatrixOperator::opT |
|
inlineexplicit |
References e().
|
inline |
References op().
Referenced by make_Hd(), make_Hdiag(), make_sp(), and moments().
|
inline |
add a submatrix to this
[in] | istart | row where to add the submatrix |
[in] | jstart | column where to add the submatrix |
References elements, ncol(), and nrow().
Referenced by make_alpha_p().
|
inline |
Referenced by add_submatrix().
|
inline |
Referenced by add_submatrix().
Reimplemented in Metric.
References std::abs(), madness::arg(), c, Spinor::components, madness::inner(), madness::norm2(), op(), and Spinor::truncate().
|
inlinevirtual |
References a, and madness::arg().
|
inline |
References elements.
|
inline |
References elements.
|
inline |
References madness::name(), op(), and madness::print().
std::vector<std::vector<opT> > MatrixOperator::elements |
matrix containing prefactor and operator
Referenced by add_submatrix(), operator+(), and operator+=().