concepts::MultiIndex< dim > Class Template Reference
#include <multiArray.hh>
Public Member Functions | |
StiffArray< dim, uint > & | apply (uint &fnc(uint &)) |
Application operator to each component, e.g. More... | |
Array< uint > | array_data () const |
uint * | data () |
Returns a pointer to the data in the array. More... | |
const uint * | data () const |
Returns a pointer to the data in the array. More... | |
uint | length () |
MultiIndex () | |
Constructor. More... | |
MultiIndex (const MultiIndex< dim > &a) | |
Copy constructor. More... | |
MultiIndex (const uint &dft) | |
Constructor. More... | |
MultiIndex (const uint dft[]) | |
Constructor. More... | |
operator Array< uint > () const | |
operator const uint * () const | |
Returns a pointer to the data in the array. More... | |
operator uint * () | |
Returns a pointer to the data in the array. More... | |
bool | operator!= (const MultiIndex< dim > &a) const |
Comparison operator. More... | |
StiffArray< dim, uint > & | operator*= (const StiffArray< dim, uint > &a) |
Multiplication operator. More... | |
StiffArray< dim, uint > & | operator*= (const uint n) |
Scaling operator. More... | |
StiffArray< dim, uint > & | operator+= (const uint n) |
Addition operator. More... | |
StiffArray< dim, uint > & | operator-= (const uint n) |
Subtraction operator. More... | |
StiffArray< dim, uint > & | operator/= (const uint n) |
Division operator. More... | |
bool | operator== (const MultiIndex< dim > &a) const |
Comparison operator. More... | |
uint & | operator[] (const int i) |
Index operator. More... | |
const uint & | operator[] (const int i) const |
Index operator. More... | |
void | zeros () |
Fills the memory with zeros. More... | |
virtual | ~MultiIndex () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
uint * | data_ |
Data. More... | |
Detailed Description
template<uint dim>
class concepts::MultiIndex< dim >
Definition at line 43 of file multiArray.hh.
Constructor & Destructor Documentation
◆ MultiIndex() [1/4]
|
inline |
Constructor.
Definition at line 46 of file multiArray.hh.
◆ MultiIndex() [2/4]
|
inline |
Constructor.
- Parameters
-
dft Default value. This is used in the first allocation and not in subsequent allocations.
Definition at line 52 of file multiArray.hh.
◆ MultiIndex() [3/4]
concepts::MultiIndex< dim >::MultiIndex | ( | const uint | dft[] | ) |
Constructor.
- Parameters
-
dft C array of size sz.
Take care for the length of the C array.
Definition at line 78 of file multiArray.hh.
◆ MultiIndex() [4/4]
|
inline |
Copy constructor.
Definition at line 62 of file multiArray.hh.
◆ ~MultiIndex()
|
inlinevirtual |
Definition at line 63 of file multiArray.hh.
Member Function Documentation
◆ apply()
|
inlineinherited |
Application operator to each component, e.g.
std::sin or std::conj
Definition at line 140 of file stiffArray.hh.
◆ array_data()
|
inlineinherited |
Definition at line 92 of file stiffArray.hh.
◆ data() [1/2]
|
inlineinherited |
Returns a pointer to the data in the array.
Definition at line 85 of file stiffArray.hh.
◆ data() [2/2]
|
inlineinherited |
Returns a pointer to the data in the array.
Definition at line 87 of file stiffArray.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::StiffArray< dim, uint >.
Definition at line 103 of file multiArray.hh.
◆ length()
|
inlineinherited |
Definition at line 77 of file stiffArray.hh.
◆ operator Array< uint >()
|
inlineinherited |
Definition at line 90 of file stiffArray.hh.
◆ operator const uint *()
|
inlineinherited |
Returns a pointer to the data in the array.
Definition at line 83 of file stiffArray.hh.
◆ operator uint *()
|
inlineinherited |
Returns a pointer to the data in the array.
Definition at line 81 of file stiffArray.hh.
◆ operator!=()
bool concepts::MultiIndex< dim >::operator!= | ( | const MultiIndex< dim > & | a | ) | const |
Comparison operator.
Definition at line 98 of file multiArray.hh.
◆ operator*=() [1/2]
|
inlineinherited |
Multiplication operator.
Definition at line 133 of file stiffArray.hh.
◆ operator*=() [2/2]
|
inlineinherited |
Scaling operator.
Definition at line 108 of file stiffArray.hh.
◆ operator+=()
|
inlineinherited |
Addition operator.
Definition at line 123 of file stiffArray.hh.
◆ operator-=()
|
inlineinherited |
Subtraction operator.
Definition at line 128 of file stiffArray.hh.
◆ operator/=()
|
inlineinherited |
Division operator.
Definition at line 113 of file stiffArray.hh.
◆ operator==()
bool concepts::MultiIndex< dim >::operator== | ( | const MultiIndex< dim > & | a | ) | const |
◆ operator[]() [1/2]
|
inlineinherited |
Index operator.
Definition at line 101 of file stiffArray.hh.
◆ operator[]() [2/2]
|
inlineinherited |
Index operator.
Definition at line 95 of file stiffArray.hh.
◆ zeros()
|
inlineinherited |
Fills the memory with zeros.
Definition at line 79 of file stiffArray.hh.
Member Data Documentation
◆ data_
|
privateinherited |
Data.
Definition at line 148 of file stiffArray.hh.
The documentation for this class was generated from the following file:
- toolbox/multiArray.hh