ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
dmat22.cpp
Go to the documentation of this file.
00001 
00009 #include <stdio.h>
00010 #include <math.h>
00011 #include "fvar.hpp"
00012 
00013 #ifdef __TURBOC__
00014   #pragma hdrstop
00015   #include <iostream.h>
00016 #endif
00017 
00018 #ifdef __ZTC__
00019   #include <iostream.hpp>
00020 #endif
00021 
00025 dmatrix& dmatrix::operator=(const double x)
00026 {
00027   for (int i = rowmin(); i <= rowmax(); ++i)
00028   {
00029     elem(i) = x;
00030   }
00031   return *this;
00032 }
00036 dmatrix& dmatrix::operator/=(const double x)
00037 {
00038   for (int i = rowmin(); i <= rowmax(); ++i)
00039   {
00040     elem(i) /= x;
00041   }
00042   return *this;
00043 }
00047 dmatrix& dmatrix::operator*=(const double x)
00048 {
00049   for (int i = rowmin(); i <= rowmax(); ++i)
00050   {
00051     elem(i) *= x;
00052   }
00053   return *this;
00054 }