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 | |
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 | |
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 |
|
inline |
|
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 |
References elements.
Referenced by add_submatrix(), operator()(), operator+(), operator+=(), and print().
|
inline |
References elements.
Referenced by add_submatrix(), operator()(), operator+(), operator+=(), and print().
Reimplemented in Metric.
References std::abs(), madness::arg(), c, Spinor::components, elements, madness::inner(), ncol(), madness::norm2(), nrow(), op(), and Spinor::truncate().
|
inlinevirtual |
References a, and madness::arg().
|
inline |
|
inline |
|
inline |
References elements, madness::name(), ncol(), nrow(), op(), and madness::print().
std::vector<std::vector<opT> > MatrixOperator::elements |
matrix containing prefactor and operator
Referenced by MatrixOperator(), add_operator(), add_submatrix(), ncol(), nrow(), operator()(), operator+(), operator+=(), and print().