Skip to content

Commit

Permalink
Primers intents construir matriu de kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
victoradell committed Nov 27, 2019
1 parent a09a952 commit 3a6789d
Show file tree
Hide file tree
Showing 2 changed files with 417 additions and 0 deletions.
32 changes: 32 additions & 0 deletions build_kernels/build_kernels.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>

using namespace std;
using Matrix = vector<vector<int>>;

const int N = 389;
const int D = 27183;

Matrix load_dataframe(string filepath) {
Matrix K(N, vector<int>(N, 0));
ifstream data(filepath);
if (data.is_open()) {
for (int i = 0; i < N; ++i) {
for (int j = 0; j < D; ++j) {

}
}
} else {
cout << "Could not load " << filepath << endl;
}
return K;
}



int main() {
Matrix X = load_dataframe("../data/snp.csv");
}
Loading

0 comments on commit 3a6789d

Please sign in to comment.