ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
imat3.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include "fvar.hpp"
12 #ifdef __TURBOC__
13  #pragma hdrstop
14 #endif
15 
20  void imatrix::initialize (void)
21  {
22  for (int i=rowmin();i<=rowmax();i++)
23  {
24  (*this)(i).initialize();
25  }
26  }
27 
32  imatrix trans(const imatrix& m1)
33  {
34  imatrix tmp(m1.colmin(),m1.colmax(),m1.rowmin(),m1.rowmax());
35 
36  for (int i=m1.rowmin(); i<=m1.rowmax(); i++)
37  {
38  for (int j=m1.colmin(); j<=m1.colmax(); j++)
39  {
40  tmp[j][i]=m1[i][j];
41  }
42  }
43  return (tmp);
44  }
Description not yet available.
Definition: imatrix.h:69
dmatrix trans(const dmatrix &m1)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: dmat2.cpp:13
int rowmin() const
Definition: imatrix.h:146
void initialize(void)
Description not yet available.
Definition: imat3.cpp:20
int colmin(void) const
Definition: imatrix.h:155
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int colmax(void) const
Definition: imatrix.h:159
int rowmax() const
Definition: imatrix.h:150