Statistics
| Revision:

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

History | View | Annotate | Download (714 Bytes)

1
/*
2
 * $Id: dmat32.cpp 1131 2013-08-02 22:51:34Z 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
#    ifdef SAFE_ARRAYS
20
     if (i<rowmin())
21
     {
22
       cerr << "matrix bound exceeded -- row index too low in dmatrix::operator()"
23
             << "value was" << i;
24
       ad_exit(21);
25
     }
26
     if (i>rowmax())
27
     {
28
       cerr << "matrix bound exceeded -- row index too high in dmatrix::operator()"
29
             << "value was" << i;
30
       ad_exit(22);
31
     }
32
#    endif
33
   return *(m+i);
34
 }
35
#endif