MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / vmul

Method vmul

src/ap.cpp:818–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818void ap::vmul(double *vdst, int stride_dst, int n, double alpha)
819{
820 int i;
821 if( stride_dst!=1 )
822 {
823 //
824 // general unoptimized case
825 //
826 for(i=0; i<n; i++, vdst+=stride_dst)
827 *vdst *= alpha;
828 }
829 else
830 {
831 //
832 // highly optimized case
833 //
834 for(i=0; i<n; i++, vdst++)
835 *vdst *= alpha;
836 }
837}
838
839void ap::vmul(ap::complex *vdst, int stride_dst, int n, double alpha)
840{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected