I hereby claim:
- I am jedbrown on github.
- I am jedbrown (https://keybase.io/jedbrown) on keybase.
- I have a public key ASBrKluFzhAUT4oZcsmnAT0nN7AMpmEw16pmZiQ7a_kRWwo
To claim this, I am signing this object:
# Maintainer: nim65s | |
# Former Maintainer: Joey Dumont <joey.dumont@gmail.com> | |
# Contributor: simonp | |
# Contributor: Martin Ortbauer <mortbauer@gmail.com> | |
# Original: Michele Mocciola <mickele> | |
# Contributor: Brice Méalier <mealier_brice@yahoo.fr> | |
# Modified by: César Vecchio <cesar UNDERSTRIKE vecchio AT yahoo DOT com> | |
# Contributor: valandil | |
_pkgname='med' |
import pandas | |
import numpy as np | |
import altair as alt | |
df = pandas.DataFrame({ | |
'instance': ['m6g.12xlarge', 'm5g.16xlarge', 'm5.12xlarge', 'm5ad.4xlarge', 'a1.metal'], | |
'architecture': ['Graviton2', 'Graviton2', 'Skylake 8000', 'EPYC 7000', 'Graviton'], | |
'vCPU': [48, 64, 48, 16, 16], | |
'rate': [1.848, 2.464, 2.304, 0.824, 0.408], | |
'source': ['@_msw_']*3 + ['@AtluriAditya']*2, |
I hereby claim:
To claim this, I am signing this object:
Archive:
cmake_minimum_required(VERSION 2.8) | |
project(foo) | |
add_library(foo foo.cc) | |
target_link_libraries(foo ${DEP_LIBS}) | |
add_library(bar bar.cc) | |
target_link_libraries(bar foo) |
CC = clang | |
CFLAGS = -Wall -Wextra -pedantic -std=c99 -O1 -g # -O1 or higher needed | |
a.out : a.o xrank.o | |
$(CC) -o $@ $^ |
#!/usr/bin/env python | |
from subprocess import Popen, PIPE | |
import sys, threading | |
# Each stage that we implement in Python. If processing binary data, we would | |
# read incrementally using input.read(4096), for example. The output file must | |
# be closed to flush the pipeline and allow it to clean up properly. | |
def writer(output): | |
for line in open('/usr/share/dict/words'): |
## Julia implementation of solving Poisson on a square grid using Chebyshev collocation | |
# julia> load("logg.jl") | |
# julia> loggProfile(10000) | |
# error: 3.310154100518143e-7 | |
# Average time (us): 132.39421844482422 | |
function logg(m) | |
(D,xb) = cheb(m+1) # Chebyshev differentiation matrix and nodes | |
D = 2*D; xb = 0.5 + 0.5*xb # Remap to interval [0,1] | |
D2 = -(D*D)[2:end-1,2:end-1] # Negative 1D Laplacian, with Dirichlet BCs |
# Oregonator: stiff 3-variable oscillatory ODE system from chemical reactions, | |
# problem OREGO in Hairer&Wanner | |
import sys, petsc4py | |
petsc4py.init(sys.argv) | |
from petsc4py import PETSc | |
class Orego(object): | |
n = 3 |
#!/usr/bin/env python | |
def withvars(f): | |
def wrapper(self,*args,**kwargs): | |
tmp = self.vars.copy() | |
tmp.update(kwargs) | |
return f(self,*args,**tmp) | |
return wrapper | |
def withvars_censor(f): | |
def wrapper(self,*args,**kwargs): |