|
ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
#include <SolidHarmonicsStorage.h>
Public Member Functions | |
| SolidHarmonicsStorage (int numRows=0, bool initializeToZero=true) | |
| SolidHarmonicsStorage (const SolidHarmonicsStorage &s) | |
| ~SolidHarmonicsStorage () | |
| SolidHarmonicsStorage & | operator= (SolidHarmonicsStorage s) |
| SolidHarmonicsStorage & | operator+= (const SolidHarmonicsStorage &s) |
| SolidHarmonicsStorage & | operator*= (double scalar) |
| int | getNumRows () const |
| int | getTotalNumValues () const |
| void | setToZero () |
| int | index (int l, int m) const |
| double & | getValue (int l, int m) |
| double & | getValueSequential (int i) |
| double | getValueConst (int l, int m) const |
| double | getValueConstSequential (int i) const |
Friends | |
| void | swap (SolidHarmonicsStorage &s1, SolidHarmonicsStorage &s2) |
Class to store the solid-harmonics expansions in the form of a triangular matrix. Provides, storage, means to access it and trivial (entrywise) math operations.
| bhfmm::SolidHarmonicsStorage::SolidHarmonicsStorage | ( | int | numRows = 0, |
| bool | initializeToZero = true |
||
| ) |
constructor
| numRows | - the number of rows that the (lower) triangular matrix should have |
| initializeToZero | - if true, values are initialized to zero, otherwise left uninitialized |
| bhfmm::SolidHarmonicsStorage::SolidHarmonicsStorage | ( | const SolidHarmonicsStorage & | s | ) |
copy constructor
| s |
| bhfmm::SolidHarmonicsStorage::~SolidHarmonicsStorage | ( | ) |
Destructor - frees allocated memory
|
inline |
| int bhfmm::SolidHarmonicsStorage::getTotalNumValues | ( | ) | const |
|
inline |
access to value in matrix form
| l | row |
| m | column |
|
inline |
const-access to value in matrix form
| l | row |
| m | column |
|
inline |
const-access to value sequentially
| i | entry |
|
inline |
access to value sequentially
| i | index |
|
inline |
calculate the sequential index, corresponding to entry (l,m)
| l | row |
| m | column |
| SolidHarmonicsStorage & bhfmm::SolidHarmonicsStorage::operator*= | ( | double | scalar | ) |
scalar multiplication
| scalar |
| SolidHarmonicsStorage & bhfmm::SolidHarmonicsStorage::operator+= | ( | const SolidHarmonicsStorage & | s | ) |
entrywise addition
| s |
| SolidHarmonicsStorage & bhfmm::SolidHarmonicsStorage::operator= | ( | SolidHarmonicsStorage | s | ) |
assignment operator: values are copied entrywise
| s |
| void bhfmm::SolidHarmonicsStorage::setToZero | ( | ) |
set all entries to zero
|
friend |
swap function (for the copy-and-swap idiom)
| s1 | |
| s2 |