ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dmat17.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 
15 {
16  dmatrix identity(min, max, min, max);
17 
18 #ifndef SAFE_INITIALIZE
19  identity.initialize();
20 #endif
21 
22  for (int i = min; i <= max; ++i)
23  {
24  identity.elem(i, i) = 1;
25  }
26 
27  return identity;
28 }
dmatrix identity_matrix(int min, int max)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: dmat17.cpp:14
#define min(a, b)
Definition: cbivnorm.cpp:188
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
Definition: fvar.hpp:2819
dvector & elem(int i)
Definition: fvar.hpp:3011
#define max(a, b)
Definition: cbivnorm.cpp:189
void initialize(void)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: dmat7.cpp:12