This file contains hidden or 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
# 0.4 ONLY | |
type MultidimFunction | |
components::Vector{Function} | |
end | |
Base.getindex(f::MultidimFunction, i::Integer) = f.components[i] | |
Base.call(f::MultidimFunction, x) = (T=eltype(x); T[f_i(x) for f_i in f.components]) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
abstract Person | |
type Adult <: Person | |
age::Int | |
height::Float64 | |
position::Int | |
end | |
type Child <: Person | |
age::Int |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 Simon Byrne's pull request https://github.com/JuliaLang/julia/pull/6170 | |
module FloatingPointExceptions | |
include("fenv_constants.jl") | |
## floating point exceptions ## | |
import Base: show, in, convert | |
export FloatExceptions, FEInexact, FEUnderflow, FEOverflow, FEDivByZero, FEInvalid, FloatExceptionSet, |
This file contains hidden or 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
function getmxcsr() | |
Base.llvmcall("""%ptr = alloca i32 | |
call void @llvm.x86.sse.stmxcsr(i32 * %ptr) | |
%curval = load i32 * %ptr | |
ret i32 %curval""", UInt32, ()) | |
end | |
function setmxcsr(u::UInt32) | |
Base.llvmcall("""%ptr = alloca i32 | |
store i32 %0, i32 * %ptr |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
This file contains hidden or 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
Submodule 'deps/Rmath' (git://github.com/JuliaLang/Rmath.git) registered for path 'deps/Rmath' | |
Submodule 'deps/libmojibake' (git://github.com/JuliaLang/libmojibake.git) registered for path 'deps/libmojibake' | |
Submodule 'deps/libuv' (git://github.com/JuliaLang/libuv.git) registered for path 'deps/libuv' | |
Submodule 'deps/openlibm' (git://github.com/JuliaLang/openlibm.git) registered for path 'deps/openlibm' | |
Submodule 'deps/openspecfun' (git://github.com/JuliaLang/openspecfun.git) registered for path 'deps/openspecfun' | |
Cloning into 'deps/Rmath'... | |
Submodule path 'deps/Rmath': checked out '226598f63af75e8bc3568f01e34932caebce6064' | |
Cloning into 'deps/libmojibake'... | |
Submodule path 'deps/libmojibake': checked out 'df71da45dfbdf68bcc6fd656d1260d609c728ad7' | |
Cloning into 'deps/libuv'... |
This file contains hidden or 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
total 109248 | |
drwxr-xr-x 260 root admin 8840 Jun 5 2013 . | |
drwxr-xr-x 13 root wheel 442 Jul 16 2013 .. | |
drwxr-xr-x 3 root admin 102 Jun 5 2013 apt | |
drwxr-xr-x 5 root admin 170 Jun 5 2013 cairo | |
drwxr-xr-x 7 root admin 238 Jun 5 2013 dpkg | |
drwxr-xr-x 8 root admin 272 Jun 5 2013 emacsen-common | |
drwxr-xr-x 14 root admin 476 Jun 5 2013 engines100 | |
drwxr-xr-x 8 root admin 272 Jun 5 2013 fink | |
drwxr-xr-x 5 root admin 170 Jun 5 2013 fontconfig2 |