more CLP(BN) fixes, add softening option when computing MLE estimators.

This commit is contained in:
Vitor Santos Costa
2008-10-31 15:11:27 +00:00
parent 61f35779a0
commit 4a2aa23c5b
9 changed files with 62 additions and 74 deletions

View File

@@ -82,7 +82,7 @@ typedef enum {
matrix_set_all_that_disagree/5,
matrix_expand/3,
matrix_select/4,
matrix_row/3
matrix_column/3
]).
:- load_foreign_files([matrix], [], init_matrix).

View File

@@ -2299,7 +2299,7 @@ matrix_select(void)
/* given a matrix M and a set of N-1 dims, get the first dimension
*/
static int
matrix_row(void)
matrix_column(void)
{
int size, i, ndims, newdims[1];
int indx[MAX_DIMS];
@@ -2956,7 +2956,7 @@ init_matrix(void)
YAP_UserCPredicate("matrix_shuffle", matrix_transpose, 3);
YAP_UserCPredicate("matrix_expand", matrix_expand, 3);
YAP_UserCPredicate("matrix_select", matrix_select, 4);
YAP_UserCPredicate("matrix_row", matrix_row, 3);
YAP_UserCPredicate("matrix_column", matrix_column, 3);
YAP_UserCPredicate("matrix_to_logs", matrix_log_all,1);
YAP_UserCPredicate("matrix_to_exps", matrix_exp_all, 1);
YAP_UserCPredicate("matrix_to_logs", matrix_log_all2,2);