/[ascend]/branches/jacob/models/johnpye/fprops/mixtures/mixture_generics.h
ViewVC logotype

Diff of /branches/jacob/models/johnpye/fprops/mixtures/mixture_generics.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3001 by jacob, Tue Jun 30 04:00:24 2015 UTC revision 3002 by jacob, Fri Jul 3 04:33:53 2015 UTC
# Line 28  Line 28 
28  #ifndef MIX_GENERICS_HEADER  #ifndef MIX_GENERICS_HEADER
29  #define MIX_GENERICS_HEADER  #define MIX_GENERICS_HEADER
30    
31    #if 0
32    #include <ascend/general/ascMalloc.h>
33    #else
34    #define ASC_NEW(TYPE) (TYPE*)malloc(sizeof(TYPE))
35    #define ASC_NEW_ARRAY(TYPE,COUNT) (TYPE*)malloc((COUNT)*sizeof(TYPE))
36    #endif
37    
38  #include "mixture_struct.h"  #include "mixture_struct.h"
39    #include <stdio.h>
40    
41  double my_min(unsigned nelems, double *nums);  double min_element(unsigned nelems, double *nums);
42  double my_max(unsigned nelems, double *nums);  double max_element(unsigned nelems, double *nums);
43  double my_sum(unsigned nelems, double *nums);  double sum_elements(unsigned nelems, double *nums);
44  unsigned index_of_min(unsigned nelems, double *nums);  unsigned index_of_min(unsigned nelems, double *nums);
45  unsigned index_of_max(unsigned nelems, double *nums);  unsigned index_of_max(unsigned nelems, double *nums);
46  void secant_solve(SecantSubjectFunction *func, void *user_data, double x[2], double tol);  void secant_solve(SecantSubjectFunction *func, void *user_data, double x[2], double tol);

Legend:
Removed from v.3001  
changed lines
  Added in v.3002

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22