Question about indexing into an array of arrays
@jonathan-durbin wrote: Still learning about how best to use julia. This is probably more of a curious thing I noticed than anything else. If I create an array like so: a = [1, 2], [3, 4]] Both of the...
View ArticleInstalling Julia on ubuntu, julia not found?
@samantp wrote: I have downloaded the tar.gz and extracted it in downloads. Just to try running Julia in terminal, I navigated to the bin folder and typed in ‘julia’, but no such command was found. I...
View ArticleAccess variable values
@compleat wrote: Pardon my ignorance, but I have a very basic question. Suppose I have a variable and I want to assign the value of that variable to the value of another variable without structurally...
View ArticleInstancing a custom number type and using in arrays
@GregVernon wrote: I’m trying to write FEM code for school and I’d like to use custom number types as a means of error-proofing. Essentially, I’d like to have a type difference between element ids,...
View ArticleMKL installation fails on Julia 1.3.1
@kumarbalachandran wrote: I am trying to install MKL on Windoes 10 and the error log is attached. The installation has succeeded on another machine. add https://github.com/JuliaComputing/MKL.jl...
View ArticleIdea Julia Lite or 'Juliette'?
@compleat wrote: Hi. As I have taken on the learning of Julia as a project, I have increasingly wondered whether many of the ‘computer science niceties’ like immutability, strictness of variable...
View ArticleExport from a submodule
@Isaia_Nisoli wrote: Dear all, I trying to solve this issue, but to no avail. I have the following module structure Module Foo Module Bar export f f(x, y) =x+y end using .Bar end I would like the...
View ArticleRandom numbers and DArrays
@squirrel wrote: This function doesn’t behave as expected. When I pass it a DArray, it goes to the correct part of the loop and prints “Some sort of integer… max 127” as I expect it to, but then the...
View ArticleHow to solve Bounds Error while using Turing Package?
@Manu_Francis wrote: (topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) Posts: 1 Participants: 1 Read full topic
View ArticleParametric Type Usage
@ohmsweetohm1 wrote: Suppose I have a type PieceWiseAffineFunction with a number of segments. I want to convert (approximate) an instante with m segments into an instant with n segments. (n<m) type...
View ArticleHow to add several subdirectories to LOAD_PATH in startup.jl file?
@josimar wrote: If I have several subdirectories within a main directory, how would I add it to LOAD_PATH without having to type each of them individually ? Example: push!(LOAD_PATH,"/mainDir/") ##...
View ArticleSpecifying StaticArray Types
@scj wrote: If a struct’s field is a StaticArray, then how do I (generically) specify its type? As seen below, not specifying the type has an effect on performance, but my attempt is obviously no good...
View ArticleC interface for void**
@RGerzaguet wrote: Hello Guys, A quite simple question on the C API and use with Julia I want to interface Julia functions with an existing C library cLib. This library has a function(let’s call it...
View ArticleHow to kill thread?
@Sijun wrote: Is there a way to kill a thread spawned by Threads.@spawn macro? Posts: 9 Participants: 4 Read full topic
View ArticleHow generate a random string correctly?
@Darione wrote: Hello, i was trying to generate a random string. Looking for something similar on google, i find this one way: Random.seed!( 0 ) prefix_result = randstring(12) println(prefix_result) I...
View ArticleError saving a .jld file
@ennvvy wrote: I use julia v1.3.0 and have trouble saving a few variables in a .jld file. I get the following error HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 0: #000: H5F.c line 444 in...
View ArticleHow to access other field variables?
@tomtom wrote: I have a composite type which as a field of type Function, how could this function access other fields of struct? struct Adder adds::Vector{Float64} f::Function...
View Article1.3.1 pdf manual with wrong date
@aerdely wrote: It says August 4, 2019. Also, it seems like it is about 1.3 release, not 1.3.1 Posts: 2 Participants: 2 Read full topic
View ArticleUnable to install ThinkJulia
@mindaslab wrote: Hello All, OS: Ubuntu 19.10 Julia Version: 1.3.1 I am trying to learn Julia from this book https://benlauwens.github.io/ThinkJulia.jl/latest/book.html. As part of the course I need...
View ArticleNumber of allocations
@tomtom wrote: I have difficulties understanding the number of allocations. In the following: const v1 = [0, 1] const v2 = [1, 2] fun1(x) = begin a = x .+ v1 return a .* v2 end fun2(x) = @. (x + v1) *...
View Article