Writing Cross-Language Tools
This repo contains slides and code examples for a SciPy 2016 talk in which
we implement a function that computes the sum of an array (tally
).
cd tally_py && python setup.py develop
import numpy as np
from tally_py import tally
a = np.array([1., 2., 3.])
tally(a)
# 6
Using devtools:
cd tally_r && Rscript -e "devtools::install()"
library(tallyR)
tally(c(1, 2, 3))
# [1] 6