Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/bivariate/quad_over_lin.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#include "utils/CSC_Matrix.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// ------------------------------------------------------------------------------
// Implementation of quad-over-lin. The second argument will always be a variable
Expand Down Expand Up @@ -231,7 +233,9 @@ static void wsum_hess_init(expr *node)
else
{
/* TODO: implement */
assert(false && "not implemented");
fprintf(stderr, "Error in quad_over_lin wsum_hess_init: non-variable child "
"not implemented\n");
exit(1);
}
}

Expand Down Expand Up @@ -288,7 +292,9 @@ static void eval_wsum_hess(expr *node, const double *w)
else
{
/* TODO: implement */
assert(false && "not implemented");
fprintf(stderr, "Error in quad_over_lin eval_wsum_hess: non-variable child "
"not implemented\n");
exit(1);
}
}

Expand Down
19 changes: 15 additions & 4 deletions src/other/prod.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "other.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Expand Down Expand Up @@ -62,7 +63,9 @@ static void jacobian_init(expr *node)
}
else
{
assert(false && "not implemented");
fprintf(stderr,
"Error in prod jacobian_init: non-variable child not implemented\n");
exit(1);
}
}

Expand Down Expand Up @@ -94,7 +97,9 @@ static void eval_jacobian(expr *node)
}
else
{
assert(false && "not implemented");
fprintf(stderr,
"Error in prod eval_jacobian: non-variable child not implemented\n");
exit(1);
}
}

Expand Down Expand Up @@ -133,7 +138,10 @@ static void wsum_hess_init(expr *node)
}
else
{
assert(false && "not implemented");
fprintf(
stderr,
"Error in prod wsum_hess_init: non-variable child not implemented\n");
exit(1);
}
}

Expand Down Expand Up @@ -164,7 +172,10 @@ static void eval_wsum_hess(expr *node, const double *w)
}
else
{
assert(false && "not implemented");
fprintf(
stderr,
"Error in prod eval_wsum_hess: non-variable child not implemented\n");
exit(1);
}
}

Expand Down
16 changes: 12 additions & 4 deletions src/other/prod_axis_one.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ static void jacobian_init(expr *node)
}
else
{
assert(false && "child must be a variable");
fprintf(stderr,
"Error in prod_axis_one jacobian_init: child must be a variable\n");
exit(1);
}
}

Expand Down Expand Up @@ -125,7 +127,9 @@ static void eval_jacobian(expr *node)
}
else
{
assert(false && "child must be a variable");
fprintf(stderr,
"Error in prod_axis_one eval_jacobian: child must be a variable\n");
exit(1);
}
}

Expand Down Expand Up @@ -173,7 +177,9 @@ static void wsum_hess_init(expr *node)
}
else
{
assert(false && "child must be a variable");
fprintf(stderr,
"Error in prod_axis_one wsum_hess_init: child must be a variable\n");
exit(1);
}
}

Expand Down Expand Up @@ -350,7 +356,9 @@ static void eval_wsum_hess(expr *node, const double *w)
}
else
{
assert(false && "child must be a variable");
fprintf(stderr,
"Error in prod_axis_one eval_wsum_hess: child must be a variable\n");
exit(1);
}
}

Expand Down
19 changes: 15 additions & 4 deletions src/other/prod_axis_zero.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "other.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Expand Down Expand Up @@ -78,7 +79,9 @@ static void jacobian_init(expr *node)
}
else
{
assert(false && "child must be a variable");
fprintf(stderr,
"Error in prod_axis_zero jacobian_init: child must be a variable\n");
exit(1);
}
}

Expand Down Expand Up @@ -118,7 +121,9 @@ static void eval_jacobian(expr *node)
}
else
{
assert(false && "child must be a variable");
fprintf(stderr,
"Error in prod_axis_zero eval_jacobian: child must be a variable\n");
exit(1);
}
}

Expand Down Expand Up @@ -164,7 +169,10 @@ static void wsum_hess_init(expr *node)
}
else
{
assert(false && "child must be a variable");
fprintf(
stderr,
"Error in prod_axis_zero wsum_hess_init: child must be a variable\n");
exit(1);
}
}

Expand Down Expand Up @@ -306,7 +314,10 @@ static void eval_wsum_hess(expr *node, const double *w)
}
else
{
assert(false && "child must be a variable");
fprintf(
stderr,
"Error in prod_axis_zero eval_wsum_hess: child must be a variable\n");
exit(1);
}
}

Expand Down
Loading