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
julia> @code_llvm getindex(s1, 1) | |
define %jl_value_t* @julia_getindex_21921(%jl_value_t*, %jl_value_t**, i32) { | |
top: | |
%3 = alloca [5 x %jl_value_t*], align 8 | |
%.sub = getelementptr inbounds [5 x %jl_value_t*]* %3, i64 0, i64 0 | |
%4 = getelementptr [5 x %jl_value_t*]* %3, i64 0, i64 2 | |
store %jl_value_t* inttoptr (i64 6 to %jl_value_t*), %jl_value_t** %.sub, align 8 | |
%5 = getelementptr [5 x %jl_value_t*]* %3, i64 0, i64 1 | |
%6 = load %jl_value_t*** @jl_pgcstack, align 8 |
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
julia> @code_llvm getindex(s1, 1) | |
define %jl_value_t* @julia_getindex_21091(%jl_value_t*, %jl_value_t**, i32) { | |
top: | |
%3 = alloca [5 x %jl_value_t*], align 8 | |
%.sub = getelementptr inbounds [5 x %jl_value_t*]* %3, i64 0, i64 0 | |
%4 = getelementptr [5 x %jl_value_t*]* %3, i64 0, i64 2 | |
store %jl_value_t* inttoptr (i64 6 to %jl_value_t*), %jl_value_t** %.sub, align 8 | |
%5 = getelementptr [5 x %jl_value_t*]* %3, i64 0, i64 1 |
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
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" for help. | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.4.0-dev+5437 (2015-06-18 02:27 UTC) | |
_/ |\__'_|_|_|\__'_| | Commit 0bd3554* (0 days old master) | |
|__/ | x86_64-linux-gnu | |
julia> A = sparse(Float64[ 10 1 1 1; 1 10 0 0; 1 0 10 0; 1 0 0 10]) | |
4x4 sparse matrix with 10 Float64 entries: |
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
Count File Function Line | |
1 ./range.jl steprange_last 56 | |
115 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 404 | |
39 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 405 | |
4 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 411 | |
76 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 412 | |
40 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 413 | |
388 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 414 | |
1074 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 415 | |
61 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 416 |
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
Count File Function Line | |
1 ./range.jl steprange_last 34 | |
1 ./range.jl steprange_last 59 | |
109 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 404 | |
33 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 405 | |
5 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 411 | |
69 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 412 | |
34 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 413 | |
225 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 414 | |
617 /home/kristoffer/.julia/v0.4/KDTrees/src/kd_tree.jl _knn 415 |
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
if run_own | |
#update_area(elements, A0) | |
λ = [1.0] | |
for k = 1:n_iters | |
update_limits!(L, U, α, β, μ, s, k, xmax, xmin, x_k, x_k1, x_k2) | |
L = zeros(length(elements)) | |
∇g0 = zeros(n_eles) | |
g0 = objective(x, ∇g0) | |
r0, q0 = compute_mma(elements, x, u_full, g0, ∇g0, L) |
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
using DataFrames | |
using DataFramesMeta | |
using GLM | |
function f() | |
DPY = 252 ## days per year | |
NWINDOW = 126 ## can be smaller or larger than 252 | |
ds = readtable("xri.csv") ## a sample data set |
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
using DataFrames | |
using DataFramesMeta | |
using GLM | |
using Base.Collections | |
function f(ds) | |
DPY = 252 ## days per year | |
NWINDOW = 126 ## can be smaller or larger than 252 |
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
using MacroTools | |
symchar(symb::Symbol) = symb, 'N' | |
function symchar(ex::Expr) | |
if ex.head == symbol("'") | |
return ex.args[1], 'C' | |
elseif ex.head == :(.') | |
return ex.args[1], 'T' | |
else |
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
diff --git a/doc/stdlib/arrays.rst b/doc/stdlib/arrays.rst | |
index 3f855a4..2bb990d 100644 | |
--- a/doc/stdlib/arrays.rst | |
+++ b/doc/stdlib/arrays.rst | |
@@ -119,9 +119,9 @@ Basic functions | |
.. Docstring generated from Julia source | |
- Returns a tuple of subscripts into an array with dimensions ``dims``\ , corresponding to the linear index ``index``\ . | |
+ Returns a tuple of subscripts into an array with dimensions ``dims``, corresponding to the linear index ``index`` |