ReFRACtor
FullPhysics::ArrayAdWithUnit< T, D > Class Template Reference

This is a ArrayAd that also has units associated with it. More...

#include <array_ad_with_unit.h>

+ Collaboration diagram for FullPhysics::ArrayAdWithUnit< T, D >:

Public Member Functions

 ArrayAdWithUnit ()
 
 ArrayAdWithUnit (const ArrayAd< T, D > &V, const Unit &U)
 
 ArrayAdWithUnit (const ArrayAd< T, D > &V, const std::string &U)
 
 ArrayAdWithUnit (const ArrayAd< T, D > &V)
 
int cols () const
 
ArrayAdWithUnit< T, D > convert (const Unit &R) const
 Convert to the given units. More...
 
int depth () const
 
bool is_constant () const
 
int number_variable () const
 
AutoDerivativeWithUnit< T > operator() (int i1) const
 
AutoDerivativeWithUnit< T > operator() (int i1, int i2) const
 
AutoDerivativeWithUnit< T > operator() (int i1, int i2, int i3) const
 
AutoDerivativeWithUnit< T > operator() (int i1, int i2, int i3, int i4) const
 
AutoDerivativeWithUnit< T > operator() (int i1, int i2, int i3, int i4, int i5) const
 
void reference (const ArrayAdWithUnit< T, D > &V)
 
int rows () const
 

Public Attributes

Unit units
 
ArrayAd< T, D > value
 

Detailed Description

template<class T, int D>
class FullPhysics::ArrayAdWithUnit< T, D >

This is a ArrayAd that also has units associated with it.

This is a simple structure that just keeps these two things together.

Definition at line 14 of file array_ad_with_unit.h.

Constructor & Destructor Documentation

◆ ArrayAdWithUnit() [1/4]

template<class T, int D>
FullPhysics::ArrayAdWithUnit< T, D >::ArrayAdWithUnit ( )
inline

Definition at line 17 of file array_ad_with_unit.h.

◆ ArrayAdWithUnit() [2/4]

template<class T, int D>
FullPhysics::ArrayAdWithUnit< T, D >::ArrayAdWithUnit ( const ArrayAd< T, D > &  V,
const Unit U 
)
inline

Definition at line 18 of file array_ad_with_unit.h.

◆ ArrayAdWithUnit() [3/4]

template<class T, int D>
FullPhysics::ArrayAdWithUnit< T, D >::ArrayAdWithUnit ( const ArrayAd< T, D > &  V,
const std::string &  U 
)
inline

Definition at line 20 of file array_ad_with_unit.h.

◆ ArrayAdWithUnit() [4/4]

template<class T, int D>
FullPhysics::ArrayAdWithUnit< T, D >::ArrayAdWithUnit ( const ArrayAd< T, D > &  V)
inline

Definition at line 22 of file array_ad_with_unit.h.

Member Function Documentation

◆ cols()

template<class T, int D>
int FullPhysics::ArrayAdWithUnit< T, D >::cols ( ) const
inline

Definition at line 50 of file array_ad_with_unit.h.

◆ convert()

template<class T, int D>
ArrayAdWithUnit<T, D> FullPhysics::ArrayAdWithUnit< T, D >::convert ( const Unit R) const
inline

Convert to the given units.

Definition at line 31 of file array_ad_with_unit.h.

◆ depth()

template<class T, int D>
int FullPhysics::ArrayAdWithUnit< T, D >::depth ( ) const
inline

Definition at line 51 of file array_ad_with_unit.h.

◆ is_constant()

template<class T, int D>
bool FullPhysics::ArrayAdWithUnit< T, D >::is_constant ( ) const
inline

Definition at line 52 of file array_ad_with_unit.h.

◆ number_variable()

template<class T, int D>
int FullPhysics::ArrayAdWithUnit< T, D >::number_variable ( ) const
inline

Definition at line 53 of file array_ad_with_unit.h.

◆ operator()() [1/5]

template<class T, int D>
AutoDerivativeWithUnit<T> FullPhysics::ArrayAdWithUnit< T, D >::operator() ( int  i1) const
inline

Definition at line 38 of file array_ad_with_unit.h.

◆ operator()() [2/5]

template<class T, int D>
AutoDerivativeWithUnit<T> FullPhysics::ArrayAdWithUnit< T, D >::operator() ( int  i1,
int  i2 
) const
inline

Definition at line 40 of file array_ad_with_unit.h.

◆ operator()() [3/5]

template<class T, int D>
AutoDerivativeWithUnit<T> FullPhysics::ArrayAdWithUnit< T, D >::operator() ( int  i1,
int  i2,
int  i3 
) const
inline

Definition at line 42 of file array_ad_with_unit.h.

◆ operator()() [4/5]

template<class T, int D>
AutoDerivativeWithUnit<T> FullPhysics::ArrayAdWithUnit< T, D >::operator() ( int  i1,
int  i2,
int  i3,
int  i4 
) const
inline

Definition at line 44 of file array_ad_with_unit.h.

◆ operator()() [5/5]

template<class T, int D>
AutoDerivativeWithUnit<T> FullPhysics::ArrayAdWithUnit< T, D >::operator() ( int  i1,
int  i2,
int  i3,
int  i4,
int  i5 
) const
inline

Definition at line 46 of file array_ad_with_unit.h.

◆ reference()

template<class T, int D>
void FullPhysics::ArrayAdWithUnit< T, D >::reference ( const ArrayAdWithUnit< T, D > &  V)
inline

Definition at line 54 of file array_ad_with_unit.h.

◆ rows()

template<class T, int D>
int FullPhysics::ArrayAdWithUnit< T, D >::rows ( ) const
inline

Definition at line 49 of file array_ad_with_unit.h.

Member Data Documentation

◆ units

template<class T, int D>
Unit FullPhysics::ArrayAdWithUnit< T, D >::units

Definition at line 25 of file array_ad_with_unit.h.

◆ value

template<class T, int D>
ArrayAd<T, D> FullPhysics::ArrayAdWithUnit< T, D >::value

Definition at line 24 of file array_ad_with_unit.h.


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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:12