Revision 1580 trunk/src/linad99/fvar.hpp

fvar.hpp (revision 1580)
959 959
   }				// returns the maximum allowable index
960 960
   int size() const
961 961
   {
962
      return shape->index_max - shape->index_min + 1;
962
      return shape ? shape->index_max - shape->index_min + 1 : 0;
963 963
   }				// returns the maximum allowable index
964 964
   void shift(int min);
965 965

  
......
1033 1033

  
1034 1034
   void initialize(void);
1035 1035
   friend class lmatrix;
1036
};				// end of class lvector
1036
};
1037 1037

  
1038 1038
AD_LONG_INT sum(const lvector &);
1039 1039

  

Also available in: Unified diff