code is
-------------------------------------------------------------
/** * \file reals.h * * \brief Implements some utility routines related to allocating * vectors of real numbers. */ #if !defined (INC_REALS_H) #define INC_REALS_H /*!< reals.h included. */ typedef float real_t; #include <stddef.h> /** Returns a newly allocated array of 'n' real numbers. */ real_t* reals_alloc (size_t n); /** Initializes 'n' array elements to zero. */ void reals_zero (size_t n, real_t* x); /** Copies elements from one real array to another. */ void reals_copy (size_t n, const real_t* restrict src, real_t* restrict dest); // this is the line in which i get error /** Frees a previously allocated array of real numbers. */ void reals_free (real_t* x); #endif /* !defined (INC_REALS_H) */ /* eof */
________________________________________________________
This post has been edited by JackOfAllTrades: 02 June 2010 - 08:41 AM
Reason for edit:: Added code tags.

New Topic/Question
Reply




MultiQuote








|