« first day (2884 days earlier)      last day (1590 days later) » 

1:47 AM
@halirutan would be interesting to play with! The naive loop construct (196x196) on my machine takes ~1ms.
 
 
11 hours later…
12:53 PM
@CarlLange I think I remember your saying that wolframscript wasn't very difficult ;-)?
I've been working at it for five hours but I've not got code running just yet
Hmmmm
 
1:16 PM
If I try to use the raw nb file with wolframscript nothing happens
If I open it, I'm getting the problem that no front end is available
If I use ExportPacket the kernel crashes
If I use user-made nb2package scripts there is no output and no error
xDDD
Oh and if I use AutoGeneratedPackage there is also no output, and my notebook will not save anything
 
 
4 hours later…
4:56 PM
 
5:27 PM
@1010011010 did you put your code in "Code" cells or some other type of cell with InitializationCell->True?
That's almost undoubtedly how that works
 
5:49 PM
@b3m2a1 I worked around it now by removing comments, then copy pasting it in a wls file after (* ::Input:: *), along with a print all argument to the wolframscript at the top. Not the best workflow but it works :p
What do you mean by code cells? I just have a single cell "In [number]: <code>", I dont use any fancy formatting, I dont like it coming from other languages with lower amount of extra formatting at the code level (c, latex, r, etc
 
Since it sounds like you haven't done any customizations, what's the background color on the cell? Alternately, did you make it with Command-8?
Basically Mathematica has two types of input cells
 
it's white
 
Yeah then you're working with plain input cells where they do all the formatting and stuff for you
 
I didn't make it with any commands, I always select with the mouse in between a cell and start typing
Hobby-coder style
 
Try selecting them all and pressing Command(on Mac)-8
That'll change it to a "Code" cell
And then AutoGeneratedPackage will work
Alternately I wrote some code here a while back that would also take "Input" cells and convert them directly...
Let me find it
6
A: Convert a Notebook directly to a package with boiler plate

b3m2a1Before we get into the weeds, here's an example of doing exactly this, just to see how it works: $testNB = URLDownload[ "https://raw.githubusercontent.com/b3m2a1/mathematica-tools/master/\ NotebookToPackage.nb", FileNameJoin@{ $TemporaryDirectory, "NotebookToPackage.nb" } ...

 
6:06 PM
Ah ok
 
That's the reason there was that (* ::Input:: *)
By default it saves input cells in commented out form
You can also change the cells to being initialization cells by going to Cell > Cell Properties > Initialization Cell
 
I will check this out over dinner, brb
Thank you for your assistance up until now
 
6:28 PM
Can anyone here help me understand some odd artifact of a diagonalization?
I created a matrix of the form (S*T) + V where V is diagonal, T is a block matrix of the form ((t, t), (t, t)) and S is another block matrix which is mostly block diagonal on the upper left and lower right blocks and block anti-diagonal or whatever the word might be on the upper right and lower left
Not entirely sure if that matters
Then I had Eigensystem diagonalize that matrix using Method->"Arnoldi"
And I get out mostly normal states (e.g. the entire upper row in that pic plus the lower right)
But there are these weird eigenvectors that only have amplitude at two points on the grid I'm using
With identical eigenvalue
Can I expect that this is an artifact of Arnoldi or should this be a legitimate concern?
 
6:49 PM
For whatever it's worth...Last week I got a reminder from a representative from Wolfram, Inc. to renew my Premier Service Plus which included the following sentence: "I decided to reach out now because the next version of Mathematica will be out soon.".
2
 
 
4 hours later…
10:45 PM
@b3m2a1 Thanks, your solution panned out nicely. I guess I'll swap workflows, and let you know if any new problems arise. Cheers:-)
 

« first day (2884 days earlier)      last day (1590 days later) »