void copymask(RScalar<T>& d, const RScalar<T1>& mask, const RScalar<T>& s1)
void copymask(RComplex<T>& d, const RScalar<T1>& mask, const RComplex<T>& s1)
void copymask(RScalar<T>& d, const RScalar<T1>& mask, const RScalar<T>& s1) {  copymask(d.elem(),mask.elem(),s1.elem());}