Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94115737
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 4, 01:08
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Dec 6, 01:08 (2 d)
Engine
blob
Format
Raw Data
Handle
22708959
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