Skip to content

Instantly share code, notes, and snippets.

diff --git a/base/broadcast.jl b/base/broadcast.jl
index 95a25bed66..7c0fa71aba 100644
--- a/base/broadcast.jl
+++ b/base/broadcast.jl
@@ -97,9 +97,13 @@ struct DefaultArrayStyle{N} <: AbstractArrayStyle{N} end
(::Type{<:DefaultArrayStyle})(::Val{N}) where N = DefaultArrayStyle{N}()
const DefaultVectorStyle = DefaultArrayStyle{1}
const DefaultMatrixStyle = DefaultArrayStyle{2}
-BroadcastStyle(::AbstractArray{T,N}) where {T,N} = DefaultArrayStyle{N}()
+BroadcastStyle(v::AbstractArray{T,N}) where {T,N} = _broadcast_api_deprecation(DefaultArrayStyle{N}(), BroadcastStyle(typeof(v)))
julia> function searchdocs(mod, seen=Set())
mod in seen && return
push!(seen, mod)
for name in names(mod)
isdefined(mod, name) || continue
Base.isdeprecated(mod, name) && continue
b = getfield(mod, name)
docs = Base.Docs.doc(b)
if startswith(string(docs), "No documentation found")
println(mod, ".", name)
```
$ ack --type=julia '@(begin|while|if|for|try|return|break|continue|function|macro|quote|let|local|global|const|do|struct|end|else|catch|finally|true|false)\b' ALL_PACKAGES/
ALL_PACKAGES/ACME/src/ACME.jl
575:@struct ModelRunner{Model<:DiscreteModel,ShowProgress} begin
ALL_PACKAGES/ACME/src/circuit.jl
11:@struct Circuit begin
ALL_PACKAGES/ACME/src/solvers.jl
8:@struct ParametricNonLinEq{F_eval<:Function,F_setp<:Function,F_calcjp<:Function,Scratch} begin
julia> VERSION
v"0.7.0-DEV.2114"
julia> methodswith(Function)
[1] guardsrand(f::Function) in Test at /Users/mbauman/Code/julia-0.6/usr/share/julia/site/v0.7/Test/src/Test.jl:1429
[2] guardsrand(f::Function, r::AbstractRNG) in Test at /Users/mbauman/Code/julia-0.6/usr/share/julia/site/v0.7/Test/src/Test.jl:1429
[3] guardsrand(f::Function, seed::Integer) in Test at /Users/mbauman/Code/julia-0.6/usr/share/julia/site/v0.7/Test/src/Test.jl:1439
[4] !(f::Function) in Base at operators.jl:975
[5] all(f::Function, A::AbstractArray, region) in Base at reducedim.jl:619
[6] all!(f::Function, r::AbstractArray, A::AbstractArray) in Base at reducedim.jl:615
$ ack -C 5 '\bslicedim\b'
AutoGrad/src/base/abstractarraymath.jl
13-# imag
14-# +
15-# *
16-# /
17-# \
18:# slicedim
19-# flipdim
20-# circshift
{
"name": "mycsv",
"title": "Mycsv",
"resources": [
{
"name": "etp_participant_data",
"title": "Etp Participant Data",
"schema": {
"fields": [
{
This file has been truncated, but you can view the full file.
JULIA test/all
WARNING: general linear indexing is deprecated; use reshape(A, Val{1}) before indexing
!atcaller!> in *(::UpperTriangular{Float32,Array{Float32,2}}, ::Array{BigFloat,1}) at triangular.jl:1559 in /Users/mbauman/Code/julia-0.6/test/linalg/triangular.jl at 17
Stacktrace:
[1] depwarn(::String, ::Tuple{Symbol,Symbol,Symbol}) at ./deprecated.jl:64
[2] _to_linear_index(::Array{BigFloat,1}, ::Int64, ::Int64, ::Vararg{Int64,N}) at ./abstractarray.jl:850
[3] _getindex at ./abstractarray.jl:837 [inlined]
[4] getindex at ./multidimensional.jl:184 [inlined]
[5] A_mul_B!(::UpperTriangular{BigFloat,Array{BigFloat,2}}, ::Array{BigFloat,1}) at ./linalg/triangular.jl:582
[6] *(::UpperTriangular{Float32,Array{Float32,2}}, ::Array{BigFloat,1}) at ./linalg/triangular.jl:1559
@mbauman
mbauman / argPrecedence.m
Created October 8, 2013 17:49
Simple Matlab utility to test and return the relative precedence of the given arguments. Inspired by Matt J's answer to the Matlab Answers question "How can I determine if one class is superior or inferior to another?" (http://www.mathworks.com/matlabcentral/answers/89208)
function [priority,classes] = argPrecedence(varargin)
% argPrecedence Return the relative class priority of the arguments
%
% Returns an array the same size as the argument list with each argument's
% relative priority level, with 1 as the highest.
%
% Optionally returns a second output of class names, with the unique classes
% of the argument list arranged in priority order.
%
% Note that the priority is dependent both on argument position and class.
function postKeyEvent
import java.awt.event.KeyEvent
import java.util.Calendar
import java.lang.reflect.*
cmdwin = handle(com.mathworks.mde.desk.MLDesktop.getInstance.getClient('Command Window').getComponent(0).getComponent(0).getComponent(0),'CallbackProperties');
cal = Calendar.getInstance();
tnow = cal.getTime().getTime();
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index df4c0da..d6f170c 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -822,6 +822,7 @@ copy_data_segment (struct load_command *lc)
}
else if (strncmp (sectp->sectname, "__la_symbol_ptr", 16) == 0
|| strncmp (sectp->sectname, "__nl_symbol_ptr", 16) == 0
+ || strncmp (sectp->sectname, "__got", 16) == 0
|| strncmp (sectp->sectname, "__la_sym_ptr2", 16) == 0