📄 cycle.cc
字号:
#ifndef BZ_ARRAYCYCLE_CC
#define BZ_ARRAYCYCLE_CC
#ifndef BZ_ARRAY_H
#error <blitz/array/cycle.cc> must be included via <blitz/array.h>
#endif
BZ_NAMESPACE(blitz)
template<class T_numtype, int N_rank>
void cycleArrays(Array<T_numtype, N_rank>& a, Array<T_numtype, N_rank>& b)
{
Array<T_numtype, N_rank> tmp(a);
a.reference(b);
b.reference(tmp);
}
template<class T_numtype, int N_rank>
void cycleArrays(Array<T_numtype, N_rank>& a, Array<T_numtype, N_rank>& b,
Array<T_numtype, N_rank>& c)
{
Array<T_numtype, N_rank> tmp(a);
a.reference(b);
b.reference(c);
c.reference(tmp);
}
template<class T_numtype, int N_rank>
void cycleArrays(Array<T_numtype, N_rank>& a, Array<T_numtype, N_rank>& b,
Array<T_numtype, N_rank>& c, Array<T_numtype, N_rank>& d)
{
Array<T_numtype, N_rank> tmp(a);
a.reference(b);
b.reference(c);
c.reference(d);
d.reference(tmp);
}
template<class T_numtype, int N_rank>
void cycleArrays(Array<T_numtype, N_rank>& a, Array<T_numtype, N_rank>& b,
Array<T_numtype, N_rank>& c, Array<T_numtype, N_rank>& d,
Array<T_numtype, N_rank>& e)
{
Array<T_numtype, N_rank> tmp(a);
a.reference(b);
b.reference(c);
c.reference(d);
d.reference(e);
e.reference(tmp);
}
BZ_NAMESPACE_END
#endif // BZ_ARRAYCYCLE_CC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -