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 BenchmarkTools | |
# jmax iterations of a Laplacian smoother | |
function smooth!(x,jmax) | |
imax = length(x) | |
for j = 1:jmax | |
xm = x[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
# pcolor plot with missing values (equal to NaN) in Julia | |
using PyCall | |
@pyimport numpy.ma as ma | |
# some random data | |
A = randn(10,10); | |
A[2,2] = NaN; | |
# created a Masked Array | |
# see also |
NewerOlder