Hi:
I've noticed that there is a performance cost associated with assigning a
value to an array in a loop, compared to just using it for calculation.
Here are some examples to demonstrate:
function mytest(a::Array{Float64,1},b::Array{Float64,1})
k=0.0
for i=1:length(a)
Haha silly mistake! Thank you
On Wednesday, November 25, 2015 at 3:16:21 PM UTC-5, Kristoffer Carlsson
wrote:
>
> Return k from the first function and you will see that things change.
>
> If you make a function that actually doesn't do anything, you shouldn't be
> surprised if the compiler
Karpinski ste...@karpinski.org
javascript: wrote:
https://github.com/JuliaLang/julia/issues/269
On Sat, Aug 22, 2015 at 1:33 AM, Paul Thompson pm...@case.edu wrote:
Hi:
I want to define two types, and each will have a field that is the other
type. For instance:
type Foo
bar::Bar
Hi:
I want to define two types, and each will have a field that is the other
type. For instance:
type Foo
bar::Bar
otherfield1
otherfield2
end
type Bar
foo::Foo
otherfield1
otherfield2
end
The above results in an error when defining Foo because Bar is not defined.
I could make the types
Hi,
I am on Julia 0.3.2 on Debian and have been able to successfully work with
some library functions using ccall like this:
const mylib=/home/paul/toolbox/DataAcq/libokFrontPanel.so
x=ccall((:okFrontPanel, mylib), Ptr{Void}, ())
as well as with other functions in the library. I am now moving