ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ModuleBase::realArray Class Reference

double float array More...

#include <realarray.h>

Collaboration diagram for ModuleBase::realArray:

Public Member Functions

 realArray (const int d1=1, const int d2=1, const int d3=1)
 
 realArray (const int d1, const int d2, const int d3, const int d4)
 
 ~realArray ()
 
void create (const int d1, const int d2, const int d3)
 create 3 dimensional real array
 
void create (const int d1, const int d2, const int d3, const int d4)
 
 realArray (const realArray &cd)
 
const realArrayoperator= (const realArray &right)
 Equal a realArray to another one.
 
const realArrayoperator= (const double &right)
 Set all value of an array to a double float number.
 
double & operator() (const int d1, const int d2, const int d3)
 Access elements by using operator "()".
 
double & operator() (const int d1, const int d2, const int d3, const int d4)
 
const double & operator() (const int d1, const int d2, const int d3) const
 Access elements by using "()" through pointer without changing its elements.
 
const double & operator() (const int d1, const int d2, const int d3, const int d4) const
 
void zero_out (void)
 Set all elements of an IntArray to zero.
 
int getSize () const
 Get the Size object.
 
int getDim () const
 Get the Dim object i.e. the dimension of a real array.
 
int getBound1 () const
 Get the Bound1 object i.e. the first dimension size.
 
int getBound2 () const
 
int getBound3 () const
 
int getBound4 () const
 

Static Public Member Functions

static int getArrayCount (void)
 Get the Array Count object.
 

Public Attributes

double * ptr
 

Private Member Functions

void freemem ()
 

Private Attributes

int size
 
int dim
 
int bound1
 
int bound2
 
int bound3
 
int bound4
 

Static Private Attributes

static int arrayCount = 0
 

Detailed Description

double float array

Constructor & Destructor Documentation

◆ realArray() [1/3]

ModuleBase::realArray::realArray ( const int  d1 = 1,
const int  d2 = 1,
const int  d3 = 1 
)
Here is the call graph for this function:

◆ realArray() [2/3]

ModuleBase::realArray::realArray ( const int  d1,
const int  d2,
const int  d3,
const int  d4 
)
Here is the call graph for this function:

◆ ~realArray()

ModuleBase::realArray::~realArray ( )

◆ realArray() [3/3]

ModuleBase::realArray::realArray ( const realArray cd)
Here is the call graph for this function:

Member Function Documentation

◆ create() [1/2]

void ModuleBase::realArray::create ( const int  d1,
const int  d2,
const int  d3 
)

create 3 dimensional real array

Parameters
[in]d1The first dimension size
[in]d2The second dimension size
[in]d3The third dimension size
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create() [2/2]

void ModuleBase::realArray::create ( const int  d1,
const int  d2,
const int  d3,
const int  d4 
)
Here is the call graph for this function:

◆ freemem()

void ModuleBase::realArray::freemem ( )
private

◆ getArrayCount()

static int ModuleBase::realArray::getArrayCount ( void  )
inlinestatic

Get the Array Count object.

Returns
int
Here is the caller graph for this function:

◆ getBound1()

int ModuleBase::realArray::getBound1 ( ) const
inline

Get the Bound1 object i.e. the first dimension size.

Returns
int
Here is the caller graph for this function:

◆ getBound2()

int ModuleBase::realArray::getBound2 ( ) const
inline
Here is the caller graph for this function:

◆ getBound3()

int ModuleBase::realArray::getBound3 ( ) const
inline
Here is the caller graph for this function:

◆ getBound4()

int ModuleBase::realArray::getBound4 ( ) const
inline
Here is the caller graph for this function:

◆ getDim()

int ModuleBase::realArray::getDim ( ) const
inline

Get the Dim object i.e. the dimension of a real array.

Returns
int
Here is the caller graph for this function:

◆ getSize()

int ModuleBase::realArray::getSize ( ) const
inline

Get the Size object.

Returns
int
Here is the caller graph for this function:

◆ operator()() [1/4]

double & ModuleBase::realArray::operator() ( const int  d1,
const int  d2,
const int  d3 
)

Access elements by using operator "()".

Parameters
d1
d2
d3
Returns
double&

◆ operator()() [2/4]

const double & ModuleBase::realArray::operator() ( const int  d1,
const int  d2,
const int  d3 
) const

Access elements by using "()" through pointer without changing its elements.

Parameters
d1
d2
d3
Returns
const double&

◆ operator()() [3/4]

double & ModuleBase::realArray::operator() ( const int  d1,
const int  d2,
const int  d3,
const int  d4 
)

◆ operator()() [4/4]

const double & ModuleBase::realArray::operator() ( const int  d1,
const int  d2,
const int  d3,
const int  d4 
) const

◆ operator=() [1/2]

const realArray & ModuleBase::realArray::operator= ( const double &  right)

Set all value of an array to a double float number.

Parameters
right
Returns
const realArray&

◆ operator=() [2/2]

const realArray & ModuleBase::realArray::operator= ( const realArray right)

Equal a realArray to another one.

Parameters
right
Returns
const realArray&

◆ zero_out()

void ModuleBase::realArray::zero_out ( void  )

Set all elements of an IntArray to zero.

Here is the caller graph for this function:

Member Data Documentation

◆ arrayCount

int ModuleBase::realArray::arrayCount = 0
staticprivate

◆ bound1

int ModuleBase::realArray::bound1
private

◆ bound2

int ModuleBase::realArray::bound2
private

◆ bound3

int ModuleBase::realArray::bound3
private

◆ bound4

int ModuleBase::realArray::bound4
private

◆ dim

int ModuleBase::realArray::dim
private

◆ ptr

double* ModuleBase::realArray::ptr

◆ size

int ModuleBase::realArray::size
private

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