Statistics
| Revision:

root / trunk / src / linad99 / dmat32.cpp @ 1921

History | View | Annotate | Download (674 Bytes)

1
/*
2
 * $Id: dmat32.cpp 1921 2014-04-23 18:47:05Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#include "fvar.hpp"
12
#if !defined(OPT_LIB)
13
/**
14
 * Description not yet available.
15
 * \param
16
 */
17
const dvector& dmatrix::operator()(int i) const
18
 {
19
     if (i<rowmin())
20
     {
21
       cerr << "matrix bound exceeded -- row index too low in "
22
       "dmatrix::operator()" << "value was" << i;
23
       ad_exit(21);
24
     }
25
     if (i>rowmax())
26
     {
27
       cerr << "matrix bound exceeded -- row index too high in "
28
       "dmatrix::operator()" << "value was" << i;
29
       ad_exit(22);
30
     }
31
   return *(m+i);
32
 }
33
#endif