ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dmat22.cpp
Go to the documentation of this file.
1 
6 #include "fvar.hpp"
7 
8 #ifdef __TURBOC__
9  #pragma hdrstop
10  #include <iostream.h>
11 #endif
12 
13 #ifdef __ZTC__
14  #include <iostream.hpp>
15 #endif
16 
23 {
24  for (int i = rowmin(); i <= rowmax(); ++i)
25  {
26  elem(i) = value;
27  }
28  return *this;
29 }
36 {
37  for (int i = rowmin(); i <= rowmax(); ++i)
38  {
39  elem(i) /= value;
40  }
41  return *this;
42 }
49 {
50  for (int i = rowmin(); i <= rowmax(); ++i)
51  {
52  elem(i) *= value;
53  }
54  return *this;
55 }
dmatrix & operator*=(double d)
Multiply value to all elements in dmatrix.
Definition: dmat22.cpp:48
dmatrix & operator=(const dmatrix &t)
Assign values in other to dmatrix.
Definition: dmat4.cpp:27
int rowmax() const
Definition: fvar.hpp:2929
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
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
int rowmin() const
Definition: fvar.hpp:2925
dmatrix & operator/=(double d)
Divide value to all elements in dmatrix.
Definition: dmat22.cpp:35