| 2400 | |
| 2401 | template<unsigned int Precision> |
| 2402 | void vAdd(ap::raw_vector< ampf<Precision> > vDst, ap::const_raw_vector< ampf<Precision> > vSrc) |
| 2403 | { |
| 2404 | ap::ap_error::make_assertion(vDst.GetLength()==vSrc.GetLength()); |
| 2405 | int i, cnt = vDst.GetLength(); |
| 2406 | ampf<Precision> *pDst = vDst.GetData(); |
| 2407 | const ampf<Precision> *pSrc = vSrc.GetData(); |
| 2408 | for(i=0; i<cnt; i++) |
| 2409 | { |
| 2410 | mpfr_ptr v = pDst->getWritePtr(); |
| 2411 | mpfr_srcptr vs = pSrc->getReadPtr(); |
| 2412 | mpfr_add(v, v, vs, GMP_RNDN); |
| 2413 | pDst += vDst.GetStep(); |
| 2414 | pSrc += vSrc.GetStep(); |
| 2415 | } |
| 2416 | } |
| 2417 | |
| 2418 | template<unsigned int Precision, class T2> |
| 2419 | void vAdd(ap::raw_vector< ampf<Precision> > vDst, ap::const_raw_vector< ampf<Precision> > vSrc, T2 alpha) |
no test coverage detected