jhlee-visionkalman / accord

Automatically exported from code.google.com/p/accord
0 stars 0 forks source link

cannot build the mvnpdf.cpp in http://code.google.com/p/py-fcm/source/browse/src/statistics/cdp_ext/?r=f647035b6051e3bab33eed0c00f07d4f468764ad #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
cannot compile the cplusplus file named "mvnpdf.cpp" obtained from here: 
http://code.google.com/p/py-fcm/source/browse/src/statistics/cdp_ext/?r=f647035b
6051e3bab33eed0c00f07d4f468764ad

and the error is:

Error   4   error C2664: 'SpecialFunctions2::mvnormpdf' : cannot convert parameter 
3 from 'LowerTriangularMatrix' to 'UpperTriangularMatrix 
&'  d:\.....\mvnpdf.cpp 30  1   

the reason should be:
1, we should define UpperTriangularMatrix InvChol; instead of 
LowerTriangularMatrix InvChol; in mvnpdf.cpp

2, we should change the function 

double SpecialFunctions2::mvnormpdf(double* x, double* mu, 
UpperTriangularMatrix& Sigma, int dim, int logspace,double logdet) 

to 

double SpecialFunctions2::mvnormpdf(double* x, double* mu, 
LowerTriangularMatrix & Sigma, int dim, int logspace,double logdet)

since I'm not sure about which one of above changes is correct,  could anyone 
give me a help? many thanks in advance~

Original issue reported on code.google.com by wd4w...@gmail.com on 17 Sep 2014 at 10:37

GoogleCodeExporter commented 9 years ago
Hello,

Are you sure this issue is related to the Accord.NET Project? 

Regards,
Cesar

Original comment by cesarso...@gmail.com on 20 Sep 2014 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by cesarso...@gmail.com on 6 Oct 2014 at 8:06