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
- abstract type Data end | |
- | |
- function clip( | |
- A::Array{Float64, 2}; | |
- x::Int64, | |
- y::Int64, | |
- distance::Int64 | |
- ) | |
- | |
0 dim1 = size(A)[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
using Distributed | |
addprocs(2) | |
q = fill(rand(9), 3, 3) | |
@everywhere nrows = @eval size($q, 1) | |
@everywhere ncols = @eval size($q, 2) | |
for i in workers() | |
@spawnat i eval(:(a = fill(0, nrows, ncols))) | |
end |