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_
65 throw std::logic_error(
"Index is out of bound." );
69 #endif // ifndef _RELEASE_
75 Vec3T<F>::operator() ( Int i )
const
78 PushCallStack(
"Vec3T::operator()");
79 #endif // ifndef _RELEASE_
84 throw std::logic_error(
"Index is out of bound." );
88 #endif // ifndef _RELEASE_
94 Vec3T<F>::operator[] ( Int i )
97 PushCallStack(
"Vec3T::operator[]");
98 #endif // ifndef _RELEASE_
103 throw std::logic_error(
"Index is out of bound." );
107 #endif // ifndef _RELEASE_
113 Vec3T<F>::operator[] ( Int i )
const
116 PushCallStack(
"Vec3T::operator[]");
117 #endif // ifndef _RELEASE_
118 if( i < 0 || i > 2 ){
122 throw std::logic_error(
"Index is out of bound." );
126 #endif // ifndef _RELEASE_
133 #endif // _PEXSI_TINYVEC_IMPL_HPP_