Skip to content

Instantly share code, notes, and snippets.

View patemotter's full-sized avatar

Pate Motter patemotter

View GitHub Profile
import pandas as pd
import numpy as np
timings = pd.read_csv("../data/all_results_janus_single_node_1-14-17.csv")
timings.columns = ['np', 'matrix', 'solver', 'prec', 'status', 'time', 'iters', 'resid']
properties = pd.read_csv('../data/uflorida-features.csv', header=0)
properties.columns = ['rows', 'cols', 'min_nnz_row', 'row_var', 'col_var',
'diag_var', 'nnz', 'frob_norm', 'symm_frob_norm',
'antisymm_frob_norm', 'one_norm', 'inf_norm', 'symm_inf_norm',
'antisymm_inf_norm', 'max_nnz_row', 'trace', 'abs_trace',
class Solution {
public:
/**
* @param nums an integer array and all positive numbers, no duplicates
* @param target an integer
* @return an integer
*/
int backPackVI(vector<int>& nums, int target) {
vector<int> dp(target + 1, 0);
dp[0] = 1;
@patemotter
patemotter / solver_test.cpp
Created April 19, 2016 20:22
solver_tests
#include "tpetra_solvers.h"
int symm = 0;
int main(int argc, char *argv[]) {
std::string outputDir, outputFile;
if (argv[1] == NULL) {
std::cout << "No input file was specified" << std::endl;
std::cout << "Usage: ./tpetra_solvers <.mtx file> ['-d output_dir' | '-f output_file']" << std::endl;
return -1;
filetype indent on
filetype plugin on
set backspace=indent,eol,start
set ai "Auto indent"
set si "Smart indent"
set wrap "Wrap lines"
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab
"set relativenumber
set cursorline