📄 tinyvec.cc
字号:
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator%=(const
TinyVector<P_numtype2, N_length>& x)
{
(*this) %= _bz_VecExpr<_bz_typename
TinyVector<P_numtype2, N_length>::T_constIterator>(x.begin());
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator^=(const
TinyVector<P_numtype2, N_length>& x)
{
(*this) ^= _bz_VecExpr<_bz_typename
TinyVector<P_numtype2, N_length>::T_constIterator>(x.begin());
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator&=(const
TinyVector<P_numtype2, N_length>& x)
{
(*this) &= _bz_VecExpr<_bz_typename
TinyVector<P_numtype2, N_length>::T_constIterator>(x.begin());
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator|=(const
TinyVector<P_numtype2, N_length>& x)
{
(*this) |= _bz_VecExpr<_bz_typename
TinyVector<P_numtype2, N_length>::T_constIterator>(x.begin());
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator<<=(const
TinyVector<P_numtype2, N_length>& x)
{
(*this) <<= _bz_VecExpr<_bz_typename
TinyVector<P_numtype2, N_length>::T_constIterator>(x.begin());
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator>>=(const
TinyVector<P_numtype2, N_length>& x)
{
(*this) >>= _bz_VecExpr<_bz_typename
TinyVector<P_numtype2, N_length>::T_constIterator>(x.begin());
return *this;
}
/*****************************************************************************
* Assignment operators with Vector operand
*/
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator=(const Vector<P_numtype2>& x)
{
(*this) = x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator+=(const Vector<P_numtype2>& x)
{
(*this) += x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator-=(const Vector<P_numtype2>& x)
{
(*this) -= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator*=(const Vector<P_numtype2>& x)
{
(*this) *= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator/=(const Vector<P_numtype2>& x)
{
(*this) /= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator%=(const Vector<P_numtype2>& x)
{
(*this) %= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator^=(const Vector<P_numtype2>& x)
{
(*this) ^= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator&=(const Vector<P_numtype2>& x)
{
(*this) &= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator|=(const Vector<P_numtype2>& x)
{
(*this) |= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator<<=(const Vector<P_numtype2>& x)
{
(*this) <<= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator>>=(const Vector<P_numtype2>& x)
{
(*this) >>= x._bz_asVecExpr();
return *this;
}
/*****************************************************************************
* Assignment operators with Range operand
*/
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator=(Range r)
{
(*this) = r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator+=(Range r)
{
(*this) += r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator-=(Range r)
{
(*this) -= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator*=(Range r)
{
(*this) *= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator/=(Range r)
{
(*this) /= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator%=(Range r)
{
(*this) %= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator^=(Range r)
{
(*this) ^= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator&=(Range r)
{
(*this) &= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator|=(Range r)
{
(*this) |= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator<<=(Range r)
{
(*this) <<= r._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator>>=(Range r)
{
(*this) >>= r._bz_asVecExpr();
return *this;
}
/*****************************************************************************
* Assignment operators with VectorPick operand
*/
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator=(const VectorPick<P_numtype2>& x)
{
(*this) = x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator+=(const VectorPick<P_numtype2>& x)
{
(*this) += x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator-=(const VectorPick<P_numtype2>& x)
{
(*this) -= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator*=(const VectorPick<P_numtype2>& x)
{
(*this) *= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator/=(const VectorPick<P_numtype2>& x)
{
(*this) /= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator%=(const VectorPick<P_numtype2>& x)
{
(*this) %= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator^=(const VectorPick<P_numtype2>& x)
{
(*this) ^= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator&=(const VectorPick<P_numtype2>& x)
{
(*this) &= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator|=(const VectorPick<P_numtype2>& x)
{
(*this) |= x._bz_asVecExpr();
return *this;
}
template<class P_numtype, int N_length> template<class P_numtype2>
inline TinyVector<P_numtype, N_length>&
TinyVector<P_numtype, N_length>::operator>>=(const VectorPick<P_numtype2>& x)
{
(*this) <<= x._bz_asVecExpr();
return *this;
}
BZ_NAMESPACE_END
#endif // BZ_TINYVEC_CC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -