Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94923731
al_ve_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
Wed, Dec 11, 10:45
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Dec 13, 10:45 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22900524
Attached To
R1448 Lenstool-HPC
al_ve_dbl.c
View Options
/**********************************************************/
/* */
/* FUNCTION: alloc_vector_double */
/* */
/* PURPOSE: Allocates a vector of double in memory */
/* */
/* INPUT: nbr_lin = number of lines */
/* */
/* RETURN: vector = pointer to matrix of double */
/* (NULL if memory allocation failure) */
/* */
/* VERSION: 1.1 March 1992 */
/* */
/* AUTHOR: Karim BOUYOUCEF */
/* */
/**********************************************************/
#include <stdlib.h>
#include "lt.h"
/**********************************************************/
double *alloc_vector_double(int nbr_lin)
{
auto double *vector;
register int i;
vector = (double *) malloc((unsigned) nbr_lin*sizeof(double));
for (i=0; i<nbr_lin; i++)
vector[i] = 0.0;
return(vector);
}
Event Timeline
Log In to Comment