46 #ifndef _PEXSI_TINYVEC_IMPL_HPP_
47 #define _PEXSI_TINYVEC_IMPL_HPP_
56 Vec3T<F>::operator() ( Int i )
59 PushCallStack(
"Vec3T::operator()");
60 #endif // ifndef _RELEASE_
62 throw std::logic_error(
"Index is out of bound." );
66 #endif // ifndef _RELEASE_
72 Vec3T<F>::operator() ( Int i )
const
75 PushCallStack(
"Vec3T::operator()");
76 #endif // ifndef _RELEASE_
78 throw std::logic_error(
"Index is out of bound." );
82 #endif // ifndef _RELEASE_
88 Vec3T<F>::operator[] ( Int i )
91 PushCallStack(
"Vec3T::operator[]");
92 #endif // ifndef _RELEASE_
94 throw std::logic_error(
"Index is out of bound." );
98 #endif // ifndef _RELEASE_
104 Vec3T<F>::operator[] ( Int i )
const
107 PushCallStack(
"Vec3T::operator[]");
108 #endif // ifndef _RELEASE_
109 if( i < 0 || i > 2 ){
110 throw std::logic_error(
"Index is out of bound." );
114 #endif // ifndef _RELEASE_
121 #endif // _PEXSI_TINYVEC_IMPL_HPP_