Can mapslices help here?
On Wednesday, March 23, 2016 at 6:59:59 PM UTC-5, Tomas Lycken wrote:
>
> Is there an effective pattern to iterate over the “endpoints” of an array
> along a given dimension?
>
> What I eventually want to accomplish is to apply a function (in this case
> an equality
If you keep reading from the link you gave:
The variable relation is declared inside the if block, but used outside.
However, when depending on this behavior, make sure all possible code paths
define a value for the variable. The following change to the above function
results in a runtime
Or from your terminal command line you can type
julia path/to/hello.jl
and it will execute was is in the file. This is the first topic that is
discussed in the manual which you should look over):
http://docs.julialang.org/en/release-0.4/manual/getting-started/
On Thursday, December 3, 2015
You can store your data wherever you want. In particular for the package
you noted (ExcelReaders) you can do things like:
using ExcelReaders
f = openxl("/path/to/my/file/Filename.xlsx")
So whats the image of?
On Tuesday, December 1, 2015 at 4:50:51 PM UTC-6, Rivo Sarmento wrote:
>
> Currently the imports, or using package, are in the begining of the code.
> I got it to work only if using is the last step before using `view`.
>
> I can't think of a particular reason for it to
+1 this is a great idea and I think it would make a good contribution to
NoveltyColors.jl
On Monday, November 30, 2015 at 4:38:10 PM UTC-6, Alex Mellnik wrote:
>
> On a related note, I've been thinking that it would be nice to include the
> results of the xkcd color survey
Actually it doesn't seem to have worked:
julia> Pkg.test("NetCDF")
INFO: Testing NetCDF
INFO: NetCDF tests passed
I think the issue is witht he package NetCDF not anything you are doing.
ared lib.
>
> and than using the 'thelib' in calls to ccall but I get a new error
>
> julia> using netCDF
> WARNING: requiring "netCDF" in module "Main" did not define a
> corresponding module.
>
> sexta-feira, 20 de Novembro de 2015 às 14:16:46 UTC, Be
I tried to see if I would have the same problem. I first tried
Pkg.add("NetCDF") and I got same problem:
*julia> Pkg.add("NetCDF")INFO: Updating cache of Conda...INFO: Cloning
cache of Formatting from git://github.com/lindahua/Formatting.jl.gitINFO:
Cloning cache
If anyone in your group would be interested in MCMC check out our great
tutorial on how to use our package
Mamba: http://mambajl.readthedocs.org/en/latest/
No, I think Julia installs its ownAnaconda Python separate from your
systems python. Looks like BinDeps needs to be recompiled. Try deleting its
cache, or deleteing the BinDeps folder and reinstalling it.
On Wednesday, November 18, 2015 at 9:22:19 AM UTC-6, J Luis wrote:
>
> Is this because I
Does norm use maxabs? If so this could be due to maxabs getting compiled.
try running both of the timed statements a second time.
On Wednesday, November 18, 2015 at 10:41:48 AM UTC-6, Sisyphuss wrote:
>
> Interesting phenomenon: norm() is faster than maxabs()
>
> x = randn(10)
> @time
I made progress meters for parllel runners about a year ago in Julia using
Tk.jl. I've seen stopped using that bit of acode but here is what I have
unearthed from the depths:
Progress Types
type ProgressFrame
trace::Bool
widget::Tk_Widget
I made a progress meter for parallel runners once in julia about a year
ago. I've since stopped using the code but it might inspire you to make
something similar:
http://pastebin.com/yy1a9RCv
On Monday, November 16, 2015 at 10:06:13 AM UTC-6, Tomas Lycken wrote:
>
> There has been some
You can use types:
type myResult
someArray1::Vector
someArray2::Vector
end
On Tuesday, November 17, 2015 at 4:06:10 PM UTC-6, Jason McConochie wrote:
>
> In matlab I group arrays into structures such that I can deal with one
> variable as the output from the function
> e.g.
> function
checked the arrays to make sure they're AbstractArrays and the
> result is true.
>
> Any advice would be helpful, I might just be implementing wrong.
>
> On Friday, March 6, 2015 at 7:58:20 AM UTC-6, Benjamin Deonovic wrote:
>>
>> My pull has been merged: https://githu
Looks like the state of Julia's "Factors" (PooledDataArrays) is still quite
a fast evolving monster. Because of this there hasn't been a proper
implementation of R's "table" function. For now, if you want to run
ChisqTest in Julia on two vectors do it on the matrix you would obtain in R
by
Okay I have figured out the issue. I will fix it so it works the way you
expected it to work. Before the fix goes live though it should work to do:
ChisqTest([1,2,3,4],[1,2,2,4], 4)
*note the 4
The issue was when I submitted the code to HypothesisTests.jl the only way
to create a contingency
Did you compile julia from source or just grab a pre-compiled binary?
On Thursday, November 5, 2015 at 3:22:28 PM UTC-6, DNF wrote:
>
> I see. Do you know if I need to install something to get SIMD support?
>
> According to this
>
to
provide docs for the function.
On Wednesday, August 26, 2015 at 11:12:54 AM UTC-5, Benjamin Deonovic wrote:
How can I get documentation for my functions in my package to show up when
someone uses the command line help functionality
like:
help? sort
INFO: Loading help data...
Base.sort(v
Not sure what you mean by julia sandbox, but there
is https://www.juliabox.org/ if you want to try out julia without having to
install on your machine.
On Wednesday, August 26, 2015 at 11:23:29 AM UTC-5, Fengyang Wang wrote:
Hi,
I learned Julia recently, and I must say it has been
How can I get documentation for my functions in my package to show up when
someone uses the command line help functionality
like:
help? sort
INFO: Loading help data...
Base.sort(v, [alg=algorithm,] [by=transform,] [lt=comparison,] [rev=
false])
Variant of sort! that returns a sorted copy
A few clarifying questions. I believe that when you iterate over julia
Dicts, the iteration is not necessarily in any particular order (i.e. if
keys are alpha-numeric it is not necessarily in sorted order, or it is not
necessarily in order the keys were inserted). Is that correct?
If I set
I have a Dict constructed lets call it d. I want to pass it to a function
that will change some entries in d. What is the appropriate way to do this
so that I end up with an updated dictionary?
I have some data for which I want to find the mode(s) of the kernel density
estimate of the data. Is there anything that already does this? If not what
is the best approach?
I'm trying to create a custom distribution. I define:
immutable myDist : DiscreteMultivariateDistribution
#code
end
function _logpdf{T:Real}(d::myDist, X::AbstractVector{T})
# code
end
_pdf(d::myDist, X::AbstractVector) = exp(_logpdf(d, X))
I can succesfully create a distribution
-abstract-or-ambiguous-fields-in-types-interact-with-the-compiler
--Tim
On Thursday, March 05, 2015 12:50:59 PM Benjamin Deonovic wrote:
This has been very helpful
@Ivar Nesje
Can you explain the difference between your two examples of type A? I
think
that is where most
My pull has been merged: https://github.com/JuliaStats/HypothesisTests.jl
On Thursday, March 5, 2015 at 8:32:32 AM UTC-6, Benjamin Deonovic wrote:
I implemented the chisquare test in julia. I made a pull request in the
HypothesisTests package. It hasn't been pulled yet, but probably
understandable as John pointed out.
But for someone like me who works with GPU's which depending on the
graphics card perform up to 30 times faster with Float32, this is quite
annoying as I always need to convertcopy.
Am Donnerstag, 5. März 2015 17:55:40 UTC+1 schrieb Benjamin Deonovic:
Moving
Moving a post from julia issues to here since it is more
appropriate: https://github.com/JuliaLang/julia/issues/10408
If I am making a function or composite type that involves floating point
numbers, should I enforce those numbers to be Float64 or FloatingPoint? I
thought
it should be
I implemented the chisquare test in julia. I made a pull request in the
HypothesisTests package. It hasn't been pulled yet, but probably will be
soon.
On Sunday, February 8, 2015 at 5:32:48 PM UTC-6, Arin Basu wrote:
Hi All,
Please pardon my ignorance, but how does one do chisquare test in
31 matches
Mail list logo