19 #include <iostream.hpp>
37 return(tmp*tmp-tmp1*tmp1);
53 return(
sqrt(tmp*tmp-tmp1*tmp1));
66 tmp =
sum(v) / double(v.
size());
int allocated(const ivector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
unsigned int size() const
double mean(const dvector &vec)
Returns computed mean of vec.
double norm(const d3_array &a)
Return computed norm value of a.
double std_dev(const dvector &vec)
Returns the computed standand deviation of vec.
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double var(const dvector &vec)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void RETURN_ARRAYS_INCREMENT()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
static _THREAD gradient_structure * _instance
void RETURN_ARRAYS_DECREMENT()
class for things related to the gradient structures, including dimension of arrays, size of buffers, etc.
Fundamental data type for reverse mode automatic differentiation.