~chaffra/+junk/trilinos

« back to all changes in this revision

Viewing changes to packages/sacado/Fad/TinyFadET/tfad.h

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Johannes Ring
  • Date: 2009-12-13 12:53:22 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091213125322-in0nrdjc55deqsw9
Tags: 10.0.3.dfsg-1
[Christophe Prud'homme]
* New upstream release

[Johannes Ring]
* debian/patches/libname.patch: Add prefix 'libtrilinos_' to all
  libraries. 
* debian/patches/soname.patch: Add soversion to libraries.
* debian/watch: Update download URL.
* debian/control:
  - Remove python-numeric from Build-Depends (virtual package).
  - Remove automake and autotools from Build-Depends and add cmake to
    reflect switch to CMake.
  - Add python-support to Build-Depends.
* debian/rules: 
  - Cleanup and updates for switch to CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
 
142
142
}
143
143
 
144
 
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator=(const T& val) 
 
144
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator=(const T& v) 
145
145
{
146
 
  val_ = val;
 
146
  val_ = v;
147
147
 
148
148
  for(int i=0; i<Num; ++i) 
149
149
    dx_[i] = T(0);
181
181
}
182
182
 
183
183
 
184
 
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator+= (const T& val)
185
 
{
186
 
  val_ += val;
187
 
 
188
 
  return *this;
189
 
}
190
 
 
191
 
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator-= (const T& val)
192
 
{
193
 
  val_ -= val;
194
 
 
195
 
  return *this;
196
 
}
197
 
 
198
 
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator*= (const T& val)
199
 
{
200
 
  val_ *= val;
201
 
 
202
 
  for (int i=0; i<Num;++i)
203
 
      dx_[i] *= val;
204
 
 
205
 
  return *this;
206
 
}
207
 
 
208
 
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator/= (const T& val)
209
 
{
210
 
  val_ /= val;
211
 
 
212
 
  for (int i=0; i<Num;++i)
213
 
      dx_[i] /= val;
 
184
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator+= (const T& v)
 
185
{
 
186
  val_ += v;
 
187
 
 
188
  return *this;
 
189
}
 
190
 
 
191
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator-= (const T& v)
 
192
{
 
193
  val_ -= v;
 
194
 
 
195
  return *this;
 
196
}
 
197
 
 
198
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator*= (const T& v)
 
199
{
 
200
  val_ *= v;
 
201
 
 
202
  for (int i=0; i<Num;++i)
 
203
      dx_[i] *= v;
 
204
 
 
205
  return *this;
 
206
}
 
207
 
 
208
template <int Num,class T> inline  TFad<Num,T> & TFad<Num,T>::operator/= (const T& v)
 
209
{
 
210
  val_ /= v;
 
211
 
 
212
  for (int i=0; i<Num;++i)
 
213
      dx_[i] /= v;
214
214
 
215
215
  return *this;
216
216
}