ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dvect3.cpp
Go to the documentation of this file.
1 
6 #include <fvar.hpp>
7 
13 double norm(const dvector& t1)
14 {
15  double tmp = t1 * t1;
16  if (tmp > 0)
17  {
18  tmp = pow(tmp,.5);
19  }
20  return tmp;
21 }
28 double norm2(const dvector& t1)
29 {
30  double tmp = t1 * t1;
31  return tmp;
32 }
33 double sumsq(const dvector& t1) { return norm2(t1); }
double sumsq(const d3_array &a)
Definition: d3arr2a.cpp:181
Vector of double precision numbers.
Definition: dvector.h:50
double norm(const d3_array &a)
Return computed norm value of a.
Definition: d3arr2a.cpp:190
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double norm2(const d3_array &a)
Return sum of squared elements in a.
Definition: d3arr2a.cpp:167
d3_array pow(const d3_array &m, int e)
Description not yet available.
Definition: d3arr6.cpp:17