ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
amoeba.cpp File Reference

(Last Changed on April 05, 2018 for git-revision 113ade054696f6bbf3085c103c16348f3c8a9e78.)

#include <admodel.h>
#include <math.h>

Go to the source code of this file.

Macros

#define GET_PSUM
 Computes psum. More...
 
#define NMAX   5000
 
#define NRANSI
 Author: David Fournier Copyright (c) 2009-2012 ADMB foundation. More...
 
#define NRANSI
 Author: David Fournier Copyright (c) 2009-2012 ADMB foundation. More...
 
#define SWAP(a, b)   {swap=(a);(a)=(b);(b)=swap;}
 Reverses a and b. More...
 

Macro Definition Documentation

#define GET_PSUM
Value:
for (j=1;j<=ndim;j++) {\
for (sum=0.0,i=1;i<=mpts;i++) sum += p[i][j];\
psum[j]=sum;}
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: d3arr.cpp:21

Computes psum.

Definition at line 14 of file amoeba.cpp.

Referenced by function_minimizer::adamoeba().

#define NMAX   5000

Definition at line 9 of file amoeba.cpp.

Referenced by function_minimizer::adamoeba().

#define NRANSI

Author: David Fournier Copyright (c) 2009-2012 ADMB foundation.

Definition at line 101 of file amoeba.cpp.

#define NRANSI

Author: David Fournier Copyright (c) 2009-2012 ADMB foundation.

Definition at line 101 of file amoeba.cpp.

#define SWAP (   a,
 
)    {swap=(a);(a)=(b);(b)=swap;}

Reverses a and b.

Definition at line 22 of file amoeba.cpp.

Referenced by function_minimizer::adamoeba().