Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103434808
fr_cb_dbl.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, Mar 2, 01:10
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Mar 4, 01:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24574955
Attached To
R1448 Lenstool-HPC
fr_cb_dbl.c
View Options
/**********************************************************/
/* */
/* FUNCTION: free_cubic_double */
/* */
/* PURPOSE: Frees a cube of double allocated dynamically */
/* by alloc_cubic_double() */
/* */
/* INPUT: cube = pointer to matrix of pointers */
/* nbr_lin = number of lines */
/* nbr_col = number of columns */
/* */
/* VERSION: 1.0 June 2012 */
/* */
/* AUTHOR: Karim BOUYOUCEF */
/* */
/**********************************************************/
#include <stdlib.h>
#include "lt.h"
/**********************************************************/
void
free_cubic_double
(
double
***
cube
,
int
nbr_lin
,
int
nbr_col
)
{
register
int
i
,
j
;
for
(
i
=
0
;
i
<
nbr_lin
;
i
++
)
{
for
(
j
=
0
;
j
<
nbr_col
;
j
++
)
free
(
cube
[
i
][
j
]);
free
((
double
*
)
cube
[
i
]);
}
free
((
double
**
)
cube
);
}
Event Timeline
Log In to Comment