Covert MainFrame EBCDIC files to ASCII using Julia
Hello Julia Geeks, I have these old functions that would take file coming from MainFrames with EBCDIC format then converts these to ASCII. Need your guidance to rewrite these into Julia so i can test...
View ArticleCreating package with PkgTemplate: Stuck following video tutorial
I’m following this video (Developing Julia Packages) and I’m getting stuck when doing using MyExample in my runtests.jl file in the test folder (around 8m30s onwards in the video). I’m using Mac so...
View ArticlePlots with plotly() backend does not show in VS code
Hi, I am trying to make a simple plot using Plots from VS code REPL. While the default gr() backend plots fine, the plot in the figure pane does not automatically resize when resizing the plot pane...
View ArticleCreate a heap for array with weights
Suppose that I have an array X = ["a","b","c","d"] with the corresponding weights weight = [1,4,3,2] How can I make heaps of X using weight using DataStructures weight_heaps =BinaryMaxHeap(weight) #...
View ArticleProblems with titles, axes, grids and other plot properties using Makie
I’m currently converting some code from MATLAB to Julia, and have reached the stage where I have to do some graphics. image1248×590 253 KB The picture shows the MATLAB plot on the right and my attempt...
View ArticleUsing Pardiso with Ipopt/JuMP, install custom built Ipopt binaries
Hello, I’m trying to use Ipopt with pardiso linear solver. I am trying to install its libraries with the commands given in the Ipopt.jl readme. I got the following files libpardiso600-WIN-X86-64.dll...
View ArticleDebugging Flux NaN problem
Hi, I’m trying to learn Reinforcement learning using Julia. I tried to implement Reinforce algorithm (simple gradient policy) using Julia and Flux, basically translating this Python code. That is my...
View ArticleCan't install any packages
I’ve been using Julia for six years. I moved to it from Python, but one thing I absolutely cannot do is install packages. So today when I saw a graph in Wolfram Alpha that didn’t look right...
View ArticleFormatting syntax question
I have this code snippet: using Formatting printfmtln("{} total RAM", format(Sys.total_memory(), precision=2, autoscale=:binary)) which nicely prints what I expected: 15.56Gi total RAM Is there a way...
View ArticleHow to initialize an empty 1x2-dimensional row-array in Julia?
I can do this: julia> vec=[] 0-element Array{Any,1} julia> for i in 1:10 global vec=vcat(vec,i) end julia> vec 10-element Array{Any,1}: 1 2 3 4 5 6 7 8 9 10 but how can I create row vector...
View ArticleLibhttp_parser_2_7_1.zip is unavailable
Background information: It is Whippet leads me to here to ask this question. According to the instruction of Whippet, I have installed Julia v0.6.4 on Linux. But I cannot install “Whippet” through...
View ArticleStrange exception in Julia v1.4.x could not load library "libcholmod"
I am using Julia v.1.4.2 on a Windows Server 2016. In order to make Julia with Version > 1.3.0 run, I copy the libopenblas64_.dll from version 1.2.0 into the bin folder. This approach worked so far...
View ArticleIs it possible to have struct to parametric with Val{}?
Hi All, I wonder if I could make a parametric type like this? struct AAA{Val{a}} aaa::Bool end b = AAA{Val{true}}(true) I tried a few variants all doesn’t work. Perhaps I can specalized with Val{} in...
View ArticleHelp with macros and calling a macro from a different module
I’m very new to macros so any help is appreciated. Currently I want to extend JuMP and there inside a macro this line exists: buildcall = :(_build_indicator_constraint($_error, $(esc(variable)),...
View ArticleReducing time
Hi everyone, I am trying to get multiplication of a lot of pretty big sparse matrices, I figured out that their special structure allows me to simplify the multiplication into just a computing rows...
View ArticleHow to add a local module that uses a registered package
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleLU Decomposition - return permutation matrix instead of vector
Dear Community, Is there any way to return in Julia full permutation matrix instead of vector? using LinearAlgebra A = [0 4 2; 10 2 1; 1 1 1] L,U,P = lu(A) P is returned as [2,1,3]. However, I would...
View ArticleHow do you open a "Choose File" prompt from Julia?
I use file.choose() in R to open a “Choose File” window prompt to print a file path for files that I want to reference in my scripts. Is there a Julia equivalent for this? 6 posts - 3 participants...
View ArticleMismatch tree error when installing package in NFS location
Issues occurs when installing packages (like OpenSpecFun, Zlib,CompilerSupportLibraries) or after package installation (Flux). ``using ("Flux") Installed OpenSpecFun_jll ────────────── v0.5.3+3...
View ArticleCreate a 2D array from a 1D array with reference
Hi I am trying to use FiniteDiff package to compute a gradient of a function with an N-vector as input and a scalar as output. I need to write the gradient (an N-vector) to a pre-allocated vector...
View Article