00001
00002
00003 inline CPPSL_double _drovector::operator()(const long& i) const
00004 {
00005 #ifdef CPPSL_DEBUG
00006 if( i<0 || L<=i ){
00007 std::cerr << "[ERROR] _drovector::operator()(const long&)"
00008 << std::endl
00009 << "The required component is out of the vector size."
00010 << std::endl
00011 << "Your input was (" << i << ")." << std::endl;
00012 exit(1);
00013 }
00014 #endif//CPPSL_DEBUG
00015
00016 return CPPSL_double( Array, 0, i, Desc );
00017 }
00018
00019
00020
00021
00022
00023
00024 inline std::ostream& operator<<(std::ostream& s, const _drovector& vec)
00025 {
00026 for(long i=0; i<vec.Ll; i++){ s << " " << vec(i); }
00027 s << std::endl;
00028
00029 vec.destroy();
00030 return s;
00031 }