Displaying 1 result from an estimated 1 matches for "inner_product".
2009 Apr 03
1
Hello! I got error in C - R
...X,Y) ((X) < (Y) ? (X) : (Y))
void SecondMH(int *n, int *X, int *length_X, double *theta_new, int
*n_para, double *out);
int MH_Result(double *theta_new, int n_para, int *M1, int *M2, int n);
double Count_Edges(int *X, int n);
double Cal_GWD(int *X, int n);
int Cal_Degree(int *M3, int n);
double Inner_Product( double *vector1, double *vector2, int length);
int rdtsc();
void SecondMH(int *n, int *X, int *length_X, double *theta_new, int
*n_para, double *out)
{
int i, j, a, k;
int *M1, *M2;
M1 = (int *)calloc(*length_X, sizeof(int));
M2 = (int *)calloc(*length_X, sizeof(int));
for(i = 1; i < *n;...