I am not a lawyer, and I am not your lawyer.
Off the top of my head, I can’t really see where or how this is illegal in most US jurisdictions. In “at will” states you can be hired or fired at any time for any reason* or no reason. And likewise you can quit at any time for any reason or no reason. If you can be hired or fired based on this scam, you can be promoted or held back based on it.
Having said that, this is really scammy, and I would not want to work there.
*except discrimination based on: race, color, religion, sex, national origin, age (>40), or genetics. Likewise, retaliation for unlawful sexual harassment.
Matlab’s syntax for matrices actually derives from Fortran. There’s a lot of flexibility in Fortran’s array features for
Because Fortran does not have a pointer in the sense of C, the Fortran compiler is free to make several optimization that a C compiler can’t. Compiled Fortran is often faster than C code that does the same thing.