<commit_before>/*

  Serial version of matrix completion code. 
	
*/

#include "matCompl.h"
#include "benchmark.h"


int main(void){ 
	int nrows = 200;
	int ncols = 200;
	int rank = 35;        

	int numIter = 100;
	double tau = 1.5*nrows;
	double delta = 1.4;
	double tol = 1.0;	//		terrible choice of value, but this isn't implemented yet anyways
	
	char* file_out = "test.txt";

	int ku = 3; // Number of unknown values.
	int omega_c[] = {0, 5, 7}; // places of unknown values.
	int kn = (nrows*ncols)-ku; // Number of known values.
	int omega[kn]; // places of known values.
	create_omega(omega_c, ku, omega, kn, nrows*ncols);

	double *Y = alloc_array_z(nrows, ncols);
	double *Z = alloc_array_z(nrows, ncols);
	double *dummyMatrix = alloc_array_z(nrows, ncols);
	double *dummy2 = alloc_array_z(nrows,ncols);
	
	double *M = test_mat(rank, nrows, ncols);
	
	printf("%f", runBenchmark( 'P', nrows, ncols, rank, ku, omega_c, kn, omega, numIter, tol, file_out, tau, delta, Y, Z, M, dummyMatrix, dummy2));
	
	
	free_array(Y);
	free_array(M); 
	free_array(dummy2);<commit_msg>changed some parameters...<commit_after>/*

  Serial version of matrix completion code. 
	
*/

#include "matCompl.h"
#include "benchmark.h"


int main(void){ 
	int nrows = 20;
	int ncols = 20;
	int rank = 10;        

	int numIter = 100;
	double tau = 1.5*nrows;
	double delta = 1.4;
	double tol = 1.0;	//		terrible choice of value, but this isn't implemented yet anyways
	
	char* file_out = "test.txt";

	int ku = 3; // Number of unknown values.
	int omega_c[] = {0, 5, 7}; // places of unknown values.
	int kn = (nrows*ncols)-ku; // Number of known values.
	int omega[kn]; // places of known values.
	create_omega(omega_c, ku, omega, kn, nrows*ncols);

	double *Y = alloc_array_z(nrows, ncols);
	double *Z = alloc_array_z(nrows, ncols);
	double *dummyMatrix = alloc_array_z(nrows, ncols);
	double *dummy2 = alloc_array_z(nrows,ncols);
	
	double *M = test_mat(rank, nrows, ncols);
	
	printf("%f", runBenchmark( 'P', nrows, ncols, rank, ku, omega_c, kn, omega, numIter, tol, file_out, tau, delta, Y, Z, M, dummyMatrix, dummy2));
	
	
	free_array(Y);
	free_array(M); 
	free_array(dummy2);
{'fraction_non_alphanumeric': 0.14391485423415085, 'fraction_numerical': 0.02128644146228598, 'mean_word_length': 3.762114537444934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4500638', 'n_tokens_mistral': 908, 'n_tokens_neox': 815, 'n_words': 249}