[1:3]' is the conjugate transpose of [1:3] [1:3].' is the regular transpose
The difference is that the first apply conj() on all the elements while transposing. This is confusing for everyone who does not live and breathe complex linear algebra, but apparently very natural for those who do. See https://github.com/JuliaLang/julia/issues/6395 for a discussion of how this works out for string arrays. Ivar kl. 19:04:20 UTC+2 fredag 2. mai 2014 skrev Hans W Borchers følgende: > > Okay, no problem, I'll get used to it. > I give Matlab courses and almost every year the 'dot' notation is one of > the most > difficult things for the students to learn and to remember in their > homework. > At one point I wondered myself what the .' operator is doing. > Is there something similar in Julia? > > > On Friday, May 2, 2014 6:18:18 PM UTC+2, Ethan Anderes wrote: >> >> It took me a second to get used to .+ but now it feels very natural to >> me. Maybe it helps to see the benefits (rather than just the changes). From >> my perspective you gain functionality in that .+ has implicit broadcasting: >> >> x = [1 2; >> 2 3] >> row = [3 4] >> >> x + row # this correctly gives an error >> x .+ row # julia knows I want `row` broadcasted >> >>
