Skip to content

Instantly share code, notes, and snippets.

View arghhhh's full-sized avatar

arghhhh

  • Greater Boston Area
View GitHub Profile
@arghhhh
arghhhh / ModInts.jl
Created May 30, 2017 18:40
Modified example ModInt code without promotions
# This file is a part of Julia. License is MIT: https://julialang.org/license
# This is a modifed version of julia/examples/ModInts.jl
module ModInts
export ModInt
import Base: +, -, *, /, inv
# this has to be subtyped from at least Number to avoid transpose