antioch-0.4.0
Functions | Variables
std Namespace Reference

Functions

template<template< typename, int, int, int, int, int > class _Matrix, typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
 max (const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &a, const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &b) ANTIOCH_AUTOFUNC(_Matrix< _Scalar ANTIOCH_COMMA _Rows ANTIOCH_COMMA _Cols ANTIOCH_COMMA _Options ANTIOCH_COMMA _MaxRows ANTIOCH_COMMA _MaxCols >
 
array ().max(b.array())) template< template< typename
 
typename _Scalar int _Rows int
_Cols int _Options int
_MaxRows int _MaxCols inline 
min (const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &a, const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &b) ANTIOCH_AUTOFUNC(_Matrix< _Scalar ANTIOCH_COMMA _Rows ANTIOCH_COMMA _Cols ANTIOCH_COMMA _Options ANTIOCH_COMMA _MaxRows ANTIOCH_COMMA _MaxCols >
 
template<typename T >
Antioch::enable_if_c
< Antioch::is_valarray< T >
::value, std::ostream & >
::type 
operator<< (std::ostream &output, const T &a)
 
template<typename T , typename T2 >
Antioch::enable_if_c
< Antioch::is_valarray< T >
::value, typename
Antioch::state_type< T >::type >
::type 
pow (const T &in, const T2 &n)
 
template<typename T >
std::valarray< T > max (const std::valarray< T > &a, const std::valarray< T > &b)
 
template<typename T >
std::valarray< T > min (const std::valarray< T > &a, const std::valarray< T > &b)
 
template<typename T >
std::ostream & operator<< (std::ostream &output, const std::vector< T > &a)
 
template<typename T >
std::vector< T > operator* (const std::vector< T > &src, const T &mul)
 
template<typename T >
std::vector< T > operator/ (const std::vector< T > &src, const T &mul)
 

Variables

int
 

Function Documentation

a std::array ( )
template<template< typename, int, int, int, int, int > class _Matrix, typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
std::max ( const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &  a,
const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &  b 
)
inline
template<typename T >
std::valarray< T > std::max ( const std::valarray< T > &  a,
const std::valarray< T > &  b 
)
inline

Definition at line 83 of file valarray_utils.h.

References max().

84 {
85  using std::max;
86 
87  const size_t size = a.size();
88  std::valarray<T> out(size);
89  for (size_t i=0; i != size; ++i)
90  out[i] = max(a[i], b[i]);
91  return out;
92 }
T max(const std::valarray< T > &in)
max(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &a, const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &b) ANTIOCH_AUTOFUNC(_Matrix< _Scalar ANTIOCH_COMMA _Rows ANTIOCH_COMMA _Cols ANTIOCH_COMMA _Options ANTIOCH_COMMA _MaxRows ANTIOCH_COMMA _MaxCols >
std::min ( const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &  a,
const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &  b 
)
inline
template<typename T >
std::valarray< T > std::min ( const std::valarray< T > &  a,
const std::valarray< T > &  b 
)
inline

Definition at line 98 of file valarray_utils.h.

References min().

99 {
100  using std::min;
101 
102  const size_t size = a.size();
103  std::valarray<T> out(size);
104  for (size_t i=0; i != size; ++i)
105  out[i] = min(a[i], b[i]);
106  return out;
107 }
T min(const std::valarray< T > &in)
typename _Scalar int _Rows int _Cols int _Options int _MaxRows int _MaxCols inline min(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &a, const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &b) ANTIOCH_AUTOFUNC(_Matrix< _Scalar ANTIOCH_COMMA _Rows ANTIOCH_COMMA _Cols ANTIOCH_COMMA _Options ANTIOCH_COMMA _MaxRows ANTIOCH_COMMA _MaxCols >
template<typename T >
std::vector< T > std::operator* ( const std::vector< T > &  src,
const T &  mul 
)
inline

Definition at line 67 of file vector_utils.h.

68 {
69  std::vector<T> output(src);
70  const std::size_t size = src.size();
71  for (std::size_t i=1; i<size; ++i)
72  output[i] = src[i] * mul;
73 
74  return output;
75 }
template<typename T >
std::vector< T > std::operator/ ( const std::vector< T > &  src,
const T &  mul 
)
inline

Definition at line 80 of file vector_utils.h.

81 {
82  std::vector<T> output(src);
83  const std::size_t size = src.size();
84  for (std::size_t i=1; i<size; ++i)
85  output[i] = src[i] / mul;
86 
87  return output;
88 }
template<typename T >
std::ostream & std::operator<< ( std::ostream &  output,
const std::vector< T > &  a 
)
inline

Definition at line 52 of file vector_utils.h.

53 {
54  output << '{';
55  const std::size_t size = a.size();
56  if (size)
57  output << a[0];
58  for (std::size_t i=1; i<size; ++i)
59  output << ',' << a[i];
60  output << '}';
61  return output;
62 }
template<typename T >
Antioch::enable_if_c< Antioch::is_valarray< T >::value, std::ostream & >::type std::operator<< ( std::ostream &  output,
const T &  a 
)
inline

Definition at line 54 of file valarray_utils.h.

55 {
56  output << '{';
57  const std::size_t size = a.size();
58  if (size)
59  output << a[0];
60  for (std::size_t i=1; i<size; ++i)
61  output << ',' << a[i];
62  output << '}';
63  return output;
64 }
template<typename T , typename T2 >
Antioch::enable_if_c< Antioch::is_valarray< T >::value, typename Antioch::state_type< T >::type >::type std::pow ( const T &  in,
const T2 &  n 
)
inline

Definition at line 71 of file valarray_utils.h.

Referenced by Antioch::Units< T >::add_SI(), BHE(), Antioch::build_rate(), Antioch::Units< T >::develop_symbol(), F(), FTroe(), Antioch::ReactionSet< CoeffType >::get_reactive_scheme(), HE(), Kooij(), Antioch::MixtureAveragedTransportMixture< CoeffType >::MixtureAveragedTransportMixture(), Antioch::Units< T >::raise(), test_values(), tester(), vectester(), VH(), and Antioch::WilkeMixture< CoeffType >::WilkeMixture().

72 {
73  typename Antioch::state_type<T>::type out=in;
74  const size_t size = in.size();
75  for (size_t i=0; i != size; ++i)
76  out[i] = pow(in[i], n);
77  return out;
78 }
Antioch::enable_if_c< Antioch::is_valarray< T >::value, typename Antioch::state_type< T >::type >::type pow(const T &in, const T2 &n)

Variable Documentation

a std::int

Generated on Thu Jul 7 2016 11:09:52 for antioch-0.4.0 by  doxygen 1.8.8