![]() |
ReFRACtor
|
We frequently have a array of numbers with units associated with them. More...
#include <array_with_unit.h>
Inheritance diagram for FullPhysics::ArrayWithUnit< T, D >:
Collaboration diagram for FullPhysics::ArrayWithUnit< T, D >:Public Member Functions | |
| ArrayWithUnit () | |
| ArrayWithUnit (const ArrayWithUnit< T, D > &V) | |
| ArrayWithUnit (const blitz::Array< T, D > &Value, const Unit &Value_units) | |
| ArrayWithUnit (const blitz::Array< T, D > &Value, const std::string &Value_units_name) | |
| int | cols () const |
| ArrayWithUnit< T, D > | convert (const Unit &R) const |
| Convert to the given units. More... | |
| ArrayWithUnit< T, D > | convert_wave (const Unit &R) const |
| We often need to handle conversion from wavenumber to/from wavelength. More... | |
| int | depth () const |
| DoubleWithUnit | operator() (int i1) const |
| DoubleWithUnit | operator() (int i1, int i2) const |
| DoubleWithUnit | operator() (int i1, int i2, int i3) const |
| DoubleWithUnit | operator() (int i1, int i2, int i3, int i4) const |
| template<class I > | |
| ArrayWithUnit< T, D > | operator() (I i1) const |
| template<class I > | |
| ArrayWithUnit< T, D > | operator() (I i1, I i2) const |
| template<class I > | |
| ArrayWithUnit< T, D > | operator() (I i1, I i2, I i3) const |
| template<class I > | |
| ArrayWithUnit< T, D > | operator() (I i1, I i2, I i3, I i4) const |
| template<class I , class J > | |
| ArrayWithUnit< T, D-1 > | operator() (I i1, J i2) const |
| template<class I , class J > | |
| ArrayWithUnit< T, D-1 > | operator() (J i1, I i2, I i3) const |
| template<class I , class J > | |
| ArrayWithUnit< T, D-1 > | operator() (I i1, J i2, I i3) const |
| template<class I , class J > | |
| ArrayWithUnit< T, D-1 > | operator() (I i1, I i2, J i3) const |
| template<class I , class J > | |
| ArrayWithUnit< T, D-2 > | operator() (I i1, J i2, J i3) const |
| template<class I , class J > | |
| ArrayWithUnit< T, D-2 > | operator() (J i1, I i2, J i3) const |
| template<class I , class J > | |
| ArrayWithUnit< T, D-2 > | operator() (J i1, J i2, I i3) const |
| ArrayWithUnit< T, D > & | operator*= (const ArrayWithUnit< T, D > &V) |
| Basic math operators for class. More... | |
| ArrayWithUnit< T, D > & | operator+= (const ArrayWithUnit< T, D > &V) |
| ArrayWithUnit< T, D > & | operator-= (const ArrayWithUnit< T, D > &V) |
| ArrayWithUnit< T, D > & | operator/= (const ArrayWithUnit< T, D > &V) |
| ArrayWithUnit< T, D > & | operator= (const ArrayWithUnit< T, D > &V) |
| Assignment operator so internals are correctly set. More... | |
| void | print (std::ostream &Os) const |
| std::string | print_to_string () const |
| Print to string. More... | |
| int | rows () const |
Public Attributes | |
| Unit | units |
| blitz::Array< T, D > | value |
We frequently have a array of numbers with units associated with them.
This is a simple structure that just keeps these two things together.
Definition at line 15 of file array_with_unit.h.
|
inline |
Definition at line 18 of file array_with_unit.h.
|
inline |
Definition at line 19 of file array_with_unit.h.
|
inline |
Definition at line 21 of file array_with_unit.h.
|
inline |
Definition at line 23 of file array_with_unit.h.
|
inline |
Definition at line 129 of file array_with_unit.h.
|
inline |
Convert to the given units.
Definition at line 101 of file array_with_unit.h.
|
inline |
We often need to handle conversion from wavenumber to/from wavelength.
This is either a normal conversion of the units before and after match in the power of length (so cm^-1 to m^-1), or do an inversion. Since we do this often enough, it is worth having a function that handles this logic.
Definition at line 117 of file array_with_unit.h.
|
inline |
Definition at line 130 of file array_with_unit.h.
|
inline |
Definition at line 47 of file array_with_unit.h.
|
inline |
Definition at line 49 of file array_with_unit.h.
|
inline |
Definition at line 51 of file array_with_unit.h.
|
inline |
Definition at line 53 of file array_with_unit.h.
|
inline |
Definition at line 60 of file array_with_unit.h.
|
inline |
Definition at line 64 of file array_with_unit.h.
|
inline |
Definition at line 67 of file array_with_unit.h.
|
inline |
Definition at line 70 of file array_with_unit.h.
|
inline |
Definition at line 74 of file array_with_unit.h.
|
inline |
Definition at line 78 of file array_with_unit.h.
|
inline |
Definition at line 81 of file array_with_unit.h.
|
inline |
Definition at line 84 of file array_with_unit.h.
|
inline |
Definition at line 88 of file array_with_unit.h.
|
inline |
Definition at line 91 of file array_with_unit.h.
|
inline |
Definition at line 94 of file array_with_unit.h.
|
inline |
Basic math operators for class.
Definition at line 38 of file array_with_unit.h.
|
inline |
Definition at line 42 of file array_with_unit.h.
|
inline |
Definition at line 44 of file array_with_unit.h.
|
inline |
Definition at line 40 of file array_with_unit.h.
|
inline |
Assignment operator so internals are correctly set.
Definition at line 32 of file array_with_unit.h.
|
inline |
Definition at line 132 of file array_with_unit.h.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
|
inline |
Definition at line 128 of file array_with_unit.h.
| Unit FullPhysics::ArrayWithUnit< T, D >::units |
Definition at line 27 of file array_with_unit.h.
| blitz::Array<T, D> FullPhysics::ArrayWithUnit< T, D >::value |
Definition at line 26 of file array_with_unit.h.