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
from numba import njit, f8 | |
from numba.typed import List | |
from numba.extending import models, register_model | |
class Interval(object): | |
""" | |
A half-open interval on the real number line. | |
""" |
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
/* | |
* To compile, execute on terminal: | |
* g++ -o mcjit mcjit.cpp `llvm-config --cxxflags --ldflags --libs all --system-libs` | |
*/ | |
#include <iostream> | |
#include <memory> | |
#include <llvm/ADT/StringRef.h> | |
#include <llvm/ExecutionEngine/ExecutionEngine.h> |
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
module IBZ | |
implicit none | |
type Plane | |
integer :: M(1,1) | |
end type Plane | |
contains | |
integer function t() |