Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97032079
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
Wed, Jan 1, 19:50
Size
667 B
Mime Type
text/x-c
Expires
Fri, Jan 3, 19:50 (2 d)
Engine
blob
Format
Raw Data
Handle
23316305
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