42,851 reputation
566175
bio website
location
age
visits member for 2 years, 6 months
seen 12 mins ago

Aug
7
comment How to sort my list?
Hmm, I saw a fairly consistent difference for small n but after a restart it has gone away!
Aug
7
comment How to sort my list?
For small data it is a little faster to use L2[[Ordering[L2][[Ordering@Ordering@L1]]]]
Aug
7
comment How to sort my list?
There's no need to extract the number from the position result: SortBy[l2, Position[l1, First@#]&]
Aug
7
comment Combining images with CUDA
I'm finding the question confusing. A small example would help.
Aug
6
comment Apply an image as a texture to text
@LiamWilliam, ah - the MeshRegion stuff is new in version 10.
Aug
6
comment Apply an image as a texture to text
@LiamWilliam, see update.
Aug
6
comment Apply an image as a texture to text
@Mr.Wizard, Extrusion is the new Thickness for Plot3D. See this.
Aug
6
comment Combining images with CUDA
@Mr.Wizard, I just mean to work with the image data directly as in bigarray[[100;;109, 200;;209]] += smallarray Perhaps I have misunderstood the question?
Aug
6
comment Combining images with CUDA
How quick do you need it? A simple approach using Part on packed arrays takes about a tenth of a second.
Aug
6
comment Apply an image as a texture to text
@MichaelE2, I'm using Windows 7 (64 bit) and version 10. It worked fine with version 9 too.
Aug
6
comment Apply an image as a texture to text
It didn't even occur to me to use shadow :-)
Aug
5
comment How to set up the Fourier domain for a Fourier Transform?
This one may also help.
Aug
5
comment How to set up the Fourier domain for a Fourier Transform?
The FFT outputs positive frequencies first, from zero up to Nyquist, then negative frequencies. See the linked question for more details.
Aug
5
comment Merging lists and adding common elements
More terse: Reap[Sow@@@Join[J,L],_,{#1,Total@#2}&]//Last
Aug
4
comment Behaviour of Plot3D with large numbers
For a simpler example: Plot3D[Sign[u], {u, -1, 1}, {p, -100, 100}, ExclusionsStyle -> Red]
Aug
4
comment Behaviour of Plot3D with large numbers
Looks like a bug with the handling of exclusions. Try with ExclusionsStyle -> Red for example.
Aug
4
comment V10's Operator Forms - what are they good for?
@Mr.Wizard, I'm not sure either. I've noticed that some folk avoid @ and // too, so maybe using a single consistent style for function application is a more important consideration for them than other aspects of readability.
Aug
4
comment V10's Operator Forms - what are they good for?
@xzczd, yes you could use // the way I have written it. Perhaps that would be clearer actually.
Aug
2
comment How to prevent function from passing values to slot
@Mr.Wizard, good point, thanks.
Jul
31
comment Why is my compiled code slower?
Nice work untangling those loops! Any particular reason not to use IdentityMatrix[{J, n}] ?