Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96626015
ic_product.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 29, 04:18
Size
667 B
Mime Type
text/x-c
Expires
Tue, Dec 31, 04:18 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23218859
Attached To
R1448 Lenstool-HPC
ic_product.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
void ic_product( double **r_im, double **i_im, double **r_im2, double **i_im2,
double **r_prod, double **i_prod,
int nbr_lin, int nbr_col)
{
register int i, j;
double prodr, prodi;
for (i = 0; i < nbr_lin; i++)
for (j = 0; j < nbr_col; j++)
{
prodr = r_im[i][j] * r_im2[i][j] - i_im[i][j] * i_im2[i][j];
prodi = r_im[i][j] * i_im2[i][j] + i_im[i][j] * r_im2[i][j];
r_prod[i][j] = prodr;
i_prod[i][j] = prodi;
}
}
Event Timeline
Log In to Comment