double float array
More...
#include <realarray.h>
|
| | 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 realArray & | operator= (const realArray &right) |
| | Equal a realArray to another one.
|
| |
| const realArray & | operator= (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 |
| |
◆ realArray() [1/3]
| ModuleBase::realArray::realArray |
( |
const int |
d1 = 1, |
|
|
const int |
d2 = 1, |
|
|
const int |
d3 = 1 |
|
) |
| |
◆ realArray() [2/3]
| ModuleBase::realArray::realArray |
( |
const int |
d1, |
|
|
const int |
d2, |
|
|
const int |
d3, |
|
|
const int |
d4 |
|
) |
| |
◆ ~realArray()
| ModuleBase::realArray::~realArray |
( |
| ) |
|
◆ realArray() [3/3]
| ModuleBase::realArray::realArray |
( |
const realArray & |
cd | ) |
|
◆ create() [1/2]
| void ModuleBase::realArray::create |
( |
const int |
d1, |
|
|
const int |
d2, |
|
|
const int |
d3 |
|
) |
| |
create 3 dimensional real array
- Parameters
-
| [in] | d1 | The first dimension size |
| [in] | d2 | The second dimension size |
| [in] | d3 | The third dimension size |
◆ create() [2/2]
| void ModuleBase::realArray::create |
( |
const int |
d1, |
|
|
const int |
d2, |
|
|
const int |
d3, |
|
|
const int |
d4 |
|
) |
| |
◆ freemem()
| void ModuleBase::realArray::freemem |
( |
| ) |
|
|
private |
◆ getArrayCount()
| static int ModuleBase::realArray::getArrayCount |
( |
void |
| ) |
|
|
inlinestatic |
Get the Array Count object.
- Returns
- int
◆ getBound1()
| int ModuleBase::realArray::getBound1 |
( |
| ) |
const |
|
inline |
Get the Bound1 object i.e. the first dimension size.
- Returns
- int
◆ getBound2()
| int ModuleBase::realArray::getBound2 |
( |
| ) |
const |
|
inline |
◆ getBound3()
| int ModuleBase::realArray::getBound3 |
( |
| ) |
const |
|
inline |
◆ getBound4()
| int ModuleBase::realArray::getBound4 |
( |
| ) |
const |
|
inline |
◆ getDim()
| int ModuleBase::realArray::getDim |
( |
| ) |
const |
|
inline |
Get the Dim object i.e. the dimension of a real array.
- Returns
- int
◆ getSize()
| int ModuleBase::realArray::getSize |
( |
| ) |
const |
|
inline |
Get the Size object.
- Returns
- int
◆ operator()() [1/4]
| double & ModuleBase::realArray::operator() |
( |
const int |
d1, |
|
|
const int |
d2, |
|
|
const int |
d3 |
|
) |
| |
Access elements by using operator "()".
- Parameters
-
- 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
-
- 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
-
- Returns
- const realArray&
◆ operator=() [2/2]
◆ zero_out()
| void ModuleBase::realArray::zero_out |
( |
void |
| ) |
|
Set all elements of an IntArray to zero.
◆ 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:
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/realarray.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/realarray.cpp