Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97029280
im_add_const.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:18
Size
444 B
Mime Type
text/x-c
Expires
Fri, Jan 3, 19:18 (2 d)
Engine
blob
Format
Raw Data
Handle
23315132
Attached To
R1448 Lenstool-HPC
im_add_const.c
View Options
#include<stdio.h>
#include<math.h>
#include "fonction.h"
#include "constant.h"
#include"dimension.h"
#include "structure.h"
#include "lt.h"
long
int
im_add_const
(
double
**
im
,
int
nx
,
int
ny
,
double
c
)
{
register
int
i
,
j
;
double
**
im_res
;
im_res
=
(
double
**
)
alloc_square_double
(
nx
,
ny
);
for
(
i
=
0
;
i
<
nx
;
i
++
)
for
(
j
=
0
;
j
<
ny
;
j
++
)
im_res
[
i
][
j
]
=
im
[
i
][
j
]
+
c
;
return
((
long
int
)
im_res
);
}
Event Timeline
Log In to Comment