This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |