41,681 reputation
562169
bio website
location
age
visits member for 2 years, 6 months
seen 3 hours ago

Aug
12
comment Incompatible Changes since Mathematica Version 7?
@eldo, I think the Inset thing is a bug rather than a deliberate change, so it doesn't belong in this list in my opinion.
Aug
12
comment Optimization in Mathematica
Perhaps you could provide a smaller representative data set, or code to generate one. Without more specifics about your Mathematica code nobody can answer why it is slow.
Aug
11
comment Ragged Diamonds
@eldo, i is just the iterator variable. In the outer loop it acquires values from diamondcounts[n] and then the inner loop runs i times.
Aug
10
comment Ragged Diamonds
+1 Clever use of ArrayPad
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.