ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LCAO_domain::ModuleBase::matrix Class Reference
Collaboration diagram for LCAO_domain::ModuleBase::matrix:

Public Types

using type = double

Public Member Functions

 matrix ()
 matrix (const int nrows, const int ncols, const bool flag_zero=true)
 matrix (const matrix &m1)
 matrix (matrix &&m1)
 ~matrix ()
void create (const int nrow, const int ncol, const bool flag_zero=true)
matrix & operator= (const matrix &m1)
matrix & operator= (matrix &&m1)
double & operator() (const int ir, const int ic)
const double & operator() (const int ir, const int ic) const
void operator*= (const double &s)
void operator+= (const matrix &m)
void operator-= (const matrix &m)
matrix Inverse (void)
double det (void)
double trace_on (void) const
void zero_out (void)
void fill_out (const double x)
void get_extreme_eigen_values (double &ev_lower, double &ev_upper) const
void reshape (const int nr_new, const int nc_new, const bool flag_zero=true)
double max () const
double min () const
double absmax () const
double norm () const
std::ostream & print (std::ostream &os, const double threshold=0.0) const

Public Attributes

int nr =0
int nc =0
double * c =nullptr

Member Typedef Documentation

◆ type

Constructor & Destructor Documentation

◆ matrix() [1/4]

LCAO_domain::ModuleBase::matrix::matrix ( )
inline

◆ matrix() [2/4]

LCAO_domain::ModuleBase::matrix::matrix ( const int nrows,
const int ncols,
const bool flag_zero = true )

◆ matrix() [3/4]

LCAO_domain::ModuleBase::matrix::matrix ( const matrix & m1)

◆ matrix() [4/4]

LCAO_domain::ModuleBase::matrix::matrix ( matrix && m1)

◆ ~matrix()

LCAO_domain::ModuleBase::matrix::~matrix ( )

Member Function Documentation

◆ absmax()

double LCAO_domain::ModuleBase::matrix::absmax ( ) const

◆ create()

void LCAO_domain::ModuleBase::matrix::create ( const int nrow,
const int ncol,
const bool flag_zero = true )
Here is the caller graph for this function:

◆ det()

double LCAO_domain::ModuleBase::matrix::det ( void )

◆ fill_out()

void LCAO_domain::ModuleBase::matrix::fill_out ( const double x)

◆ get_extreme_eigen_values()

void LCAO_domain::ModuleBase::matrix::get_extreme_eigen_values ( double & ev_lower,
double & ev_upper ) const

◆ Inverse()

matrix LCAO_domain::ModuleBase::matrix::Inverse ( void )

◆ max()

double LCAO_domain::ModuleBase::matrix::max ( ) const

◆ min()

double LCAO_domain::ModuleBase::matrix::min ( ) const

◆ norm()

double LCAO_domain::ModuleBase::matrix::norm ( ) const

◆ operator()() [1/2]

double & LCAO_domain::ModuleBase::matrix::operator() ( const int ir,
const int ic )
inline

◆ operator()() [2/2]

const double & LCAO_domain::ModuleBase::matrix::operator() ( const int ir,
const int ic ) const
inline

◆ operator*=()

void LCAO_domain::ModuleBase::matrix::operator*= ( const double & s)

◆ operator+=()

void LCAO_domain::ModuleBase::matrix::operator+= ( const matrix & m)

◆ operator-=()

void LCAO_domain::ModuleBase::matrix::operator-= ( const matrix & m)

◆ operator=() [1/2]

matrix & LCAO_domain::ModuleBase::matrix::operator= ( const matrix & m1)

◆ operator=() [2/2]

matrix & LCAO_domain::ModuleBase::matrix::operator= ( matrix && m1)

◆ print()

std::ostream & LCAO_domain::ModuleBase::matrix::print ( std::ostream & os,
const double threshold = 0.0 ) const

◆ reshape()

void LCAO_domain::ModuleBase::matrix::reshape ( const int nr_new,
const int nc_new,
const bool flag_zero = true )

◆ trace_on()

double LCAO_domain::ModuleBase::matrix::trace_on ( void ) const

◆ zero_out()

void LCAO_domain::ModuleBase::matrix::zero_out ( void )
Here is the caller graph for this function:

Member Data Documentation

◆ c

double* LCAO_domain::ModuleBase::matrix::c =nullptr

◆ nc

int LCAO_domain::ModuleBase::matrix::nc =0

◆ nr

int LCAO_domain::ModuleBase::matrix::nr =0

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