Commit 96b5d055 authored by Giovanne Marcelo's avatar Giovanne Marcelo

add algorithm args struct

parent b442cfb3
Pipeline #6380 passed with stage
in 5 minutes and 4 seconds
......@@ -3,6 +3,17 @@
#include "matrix.h"
typedef struct {
matrix R;
matrix W;
matrix H;
double lamb;
int k;
int T;
}algorithm_args;
void update_R();
void update_wit();
void update_hjt();
......@@ -10,6 +21,6 @@ void z();
void s();
void ccd(matrix R, matrix W, matrix H, double lamb, int k, int T);
void ccd_pp(matrix R, matrix W, matrix H, double lamb, int k);
void perform();
void perform(algorithm_args *args);
#endif
......@@ -70,6 +70,8 @@ void ccd_pp(matrix R, matrix W, matrix H, double lamb, int k) {
}
void perform() {
void perform(algorithm_args *args) {
ccd_pp(args->R, args->W, args->H, args->lamb, args->k);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment