39,914 reputation
559164
bio website
location
age
visits member for 2 years, 5 months
seen 4 hours ago

Aug
10
comment Plotting a transformed region only works with integer inputs
Confirmed on Windows 7.
Aug
8
comment Combining images with CUDA
The question is much clearer now, thank you. Note that your InsertImage is not actually an image but a Graphics expression. Instead of Inset you could use Translate which is quite efficient at positioning multiple copies of a single object, e.g. Graphics[Translate[InsertImage[[1]], 20 PosList], Background -> Black]
Aug
7
comment Apply an image as a texture to text
@LiamWilliam, to avoid changing the aspect ratio of the texture you will need to use AspectRatio -> Automatic and TextureCoordinateScaling -> False along with a texture coordinate function like (0.08 {#1, ar #2} &) where ar is the aspect ratio of the texture image ar = Divide@@ImageDimensions[image] and the numerical factor is adjusted to give the desired number of tilings.
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.