@@ -81,13 +81,13 @@ static void free_type_data(expr *node)
8181 lnode -> csc_to_csr_work = NULL ;
8282}
8383
84- static void jacobian_init (expr * node )
84+ static void jacobian_init_impl (expr * node )
8585{
8686 expr * x = node -> left ;
8787 left_matmul_expr * lnode = (left_matmul_expr * ) node ;
8888
8989 /* initialize child's jacobian and precompute sparsity of its CSC */
90- x -> jacobian_init (x );
90+ jacobian_init (x );
9191 lnode -> Jchild_CSC = csr_to_csc_fill_sparsity (x -> jacobian , node -> work -> iwork );
9292
9393 /* precompute sparsity of this node's jacobian in CSC and CSR */
@@ -113,11 +113,11 @@ static void eval_jacobian(expr *node)
113113 csc_to_csr_fill_values (J_CSC , node -> jacobian , lnode -> csc_to_csr_work );
114114}
115115
116- static void wsum_hess_init (expr * node )
116+ static void wsum_hess_init_impl (expr * node )
117117{
118118 /* initialize child's hessian */
119119 expr * x = node -> left ;
120- x -> wsum_hess_init (x );
120+ wsum_hess_init (x );
121121
122122 /* allocate this node's hessian with the same sparsity as child's */
123123 node -> wsum_hess = new_csr_copy_sparsity (x -> wsum_hess );
@@ -169,8 +169,8 @@ expr *new_left_matmul(expr *u, const CSR_Matrix *A)
169169 left_matmul_expr * lnode =
170170 (left_matmul_expr * ) calloc (1 , sizeof (left_matmul_expr ));
171171 expr * node = & lnode -> base ;
172- init_expr (node , d1 , d2 , u -> n_vars , forward , jacobian_init , eval_jacobian ,
173- is_affine , wsum_hess_init , eval_wsum_hess , free_type_data );
172+ init_expr (node , d1 , d2 , u -> n_vars , forward , jacobian_init_impl , eval_jacobian ,
173+ is_affine , wsum_hess_init_impl , eval_wsum_hess , free_type_data );
174174 node -> left = u ;
175175 expr_retain (u );
176176
@@ -214,8 +214,8 @@ expr *new_left_matmul_dense(expr *u, int m, int n, const double *data)
214214 left_matmul_expr * lnode =
215215 (left_matmul_expr * ) calloc (1 , sizeof (left_matmul_expr ));
216216 expr * node = & lnode -> base ;
217- init_expr (node , d1 , d2 , u -> n_vars , forward , jacobian_init , eval_jacobian ,
218- is_affine , wsum_hess_init , eval_wsum_hess , free_type_data );
217+ init_expr (node , d1 , d2 , u -> n_vars , forward , jacobian_init_impl , eval_jacobian ,
218+ is_affine , wsum_hess_init_impl , eval_wsum_hess , free_type_data );
219219 node -> left = u ;
220220 expr_retain (u );
221221
0 commit comments