duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
import numpy as np | |
class InvertedIndex(object): | |
def __init__(self, x): | |
self.J = np.argsort(x) | |
D = np.ediff1d(x[self.J], to_begin=1, to_end=1) | |
self.I = np.repeat(np.arange(len(D)), D) | |
def __getitem__(self, k): |
#!/user/bin/env python | |
# | |
# This is a simple python script to clone all of the repositories for an | |
# assignment managed via GitHub Classroom. It has a dependency on the | |
# requests module, so to use it, you must: | |
# | |
# pip install requests | |
# | |
# You can run the script with the '-h' option to get info on its usage. |
"""Run Length Encoding utilities for NumPy arrays. | |
Authors | |
------- | |
- Nezar Abdennur | |
- Anton Goloborodko | |
""" | |
from __future__ import division, print_function | |
import numpy as np |
from __future__ import print_function | |
from mpi4py import MPI | |
from numba import cuda | |
import numpy as np | |
mpi_comm = MPI.COMM_WORLD | |
# Input data size | |
total_n = 10 |
# Alec Radford, Indico, Kyle Kastner | |
# License: MIT | |
""" | |
Convolutional VAE in a single file. | |
Bringing in code from IndicoDataSolutions and Alec Radford (NewMu) | |
Additionally converted to use default conv2d interface instead of explicit cuDNN | |
""" | |
import theano | |
import theano.tensor as T | |
from theano.compat.python2x import OrderedDict |
PROJECT=main | |
build/${PROJECT}.pdf: build/${PROJECT}.bbl | |
lualatex --output-directory=build ${PROJECT} | |
build/${PROJECT}.bbl: build/${PROJECT}.bcf | |
biber build/${PROJECT} | |
build/${PROJECT}.bcf: ${PROJECT}.tex | |
lualatex --output-directory=build ${PROJECT} |