« first day (1630 days earlier)      last day (1602 days later) » 

10:17 AM
> ----------------------------------------------------
Your MATLAB license will expire in 13 days.
Please contact your system administrator or
MathWorks to renew this license.
----------------------------------------------------
I have actually never done that... I'll go figure that out after Christmas
 
 
5 hours later…
2:49 PM
Get 'em while they're hot!
 
@Adriaan if you have an academic license, it generally auto-resets
Maybe you get an email to your academic email adress that you needed to give
 
3:27 PM
@Dev-iL It does say "Confidential Prerelease Documentation — Subject to Nondisclosure Agreement" right at the top... :)
What does "switch Function: Compare objects more flexibly" mean?
 
@CrisLuengo I suspect you can ennumerate with objects?
or build objects with ennumeration overloads? Kind of switch chess.piece: case knigth: kind of thing?
 
@AnderBiguri Could be. They do mention some other change related to enumerations.
This is interesting: "transpose and ctranspose Functions: Improved performance on large arrays" and under "External Language Interfaces": "MATLAB Data Array: Support for N-D row-major memory layout" -- This makes me think MATLAB arrays now have a bit specifying which order they're stored in. transpose just toggles the bit. That would be a fantastic addition. NumPy has been doing that since day 1 I think..
 
hummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
I dont like it.
you basically make everything after slow, unless they have rewriten all the operations to be able to work efficiently on 2 orderings
and how do you force a copy then?
In python it kinda makes sense because everything is passed by reference
 
@AnderBiguri Are you using the transpose to force a copy???
 
nono. In python, if you want efficient code after a transpose you need to force a copy
 
3:38 PM
But that depends on what operations you're talking about.
 
You can easily test that. Make 2 big matrices, transpose one, multiply them. Do the same without the transpose.
 
But that is specifically for the matrix multiplication, no?
 
@CrisLuengo every operation that requires reading from the matrix.... These are always coded on low level to read adjacent memory, right?
Or more in particular: if you are doing matrix transposes, likely you will use other algebraic code that will read the matrix in this form
 
Reading the matrix would be done in memory order. Why would that change? The difference is that A(2) is now the same element after a transpose, because now linear indices go left to right and then down, instead of top to bottom and then right.
That should be a big mess with reshapes and so on.
But I can see how A.*B would be slower if the two matrices have different ordering, because you always read one in sub-optimal order.
 
But with the example of matrix multiplication, if you change the order of the memory layout, either 1) you have rewriten the algorithm to work with all combination sof row/column major 2)your algorithm reads in memory order, thus computes partial results instead of total (slow due to multiple writes) 3) your algorithm reads in the order of computations, which is not the memory order (slow because of reads)
@CrisLuengo yes, that and many mane other algebraic operations.
this is why in python, if you are going to do a lot of those, you force a copy. Because a transpose with a copy is cheaper than multiple suboptimal operators
 
3:44 PM
@AnderBiguri B.' * A should be faster than B * A, because all operations can be performed by reading the two matrices in storage order. :)
 
But python is clear on that as a language: everything is passed as a reference, you explicitly force a copy. In MATLAB, sometimes something is a copy, sometimes is not, adn you don't know
@CrisLuengo regarthless of how it is, the underlying algorithm optimizes for what it is expecting!
 
@AnderBiguri It's good for image processing anyway. Reading images will be faster because you don't have to permute the data read. You store the bytes in memory in the same order they come out of the file.
 
yeah fair. It just can be a mess if its not explicit
 
Yes, I can see by the examples you gave it can be messy. I'm curious to see where that is going though.
 
4:09 PM
@CrisLuengo dunno anything about an NDA, I am merely sharing a link I found lying around on the interweb
 
5:08 PM
In case anyone is looking for a christmas themed paper: arxiv.org/pdf/1912.07559v1.pdf
 
 
2 hours later…
6:48 PM
:-D
 

« first day (1630 days earlier)      last day (1602 days later) »