bpmprocess/mult_waveform.c

Go to the documentation of this file.
00001 
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 
00008 #include <bpm/bpm_messages.h>
00009 #include <bpm/bpm_process.h>
00010 
00020 int mult_waveform( double *wf1, double *wf2, int ns) {
00021 
00022   int i;
00023   
00024   if ( ! wf1 || ! wf2 ) {
00025     bpm_error( "Invalid waveform pointers in mult_waveform(...)",
00026                __FILE__, __LINE__ );
00027     return BPM_FAILURE;
00028   }
00029   
00030   for( i=0; i<ns; i++ ) { 
00031     wf1[i] *= wf2[i];
00032   }
00033 
00034   return BPM_SUCCESS;
00035 }
00036 
00037 

Generated on Thu Jan 10 10:18:04 2008 for libbpm by  doxygen 1.5.1