Reputation
67,318
185/100 score
 Feb 27 comment How can I fill a wire-frame structure with gas in a Graphics3D drawing? So which is it — snow or gas? If it's a colorless gas then problem solved, right? :D (I don't understand your question) Feb 27 comment How can I Flatten this List with Inner List of Lists? @Mr.Wizard Pls see my update (more or less confirms your findings). It seems like mine is much faster when the ratio of depth2 sublists vs depth1 sublists is small. Feb 27 revised How can I Flatten this List with Inner List of Lists? added 1635 characters in body Feb 27 comment How can I Flatten this List with Inner List of Lists? @Mr.Wizard That's why I posted an answer and left the room heater solution as a comment :) I meant the other comment where the OP clarifies the depth of the lists... Feb 27 comment How can I Flatten this List with Inner List of Lists? @Mr.Wizard See my comment to the OP under the question and their response Feb 27 answered How can I Flatten this List with Inner List of Lists? Feb 27 comment How can I Flatten this List with Inner List of Lists? Nice, you could also add Sequence -> List at the end, just in case the original list has no matrix-lists. Feb 27 comment How can I Flatten this List with Inner List of Lists? A simple and straightforward solution would be lis //. {h___, {x__List}, t___} :> {h, x, t}, but since your lists are huge, it'll be inefficient. Feb 27 comment How can I Flatten this List with Inner List of Lists? Are your lists only this deep or do you have additional or arbitrary layers of lists? Feb 26 revised Confirming the existence of a function related to a matrix rolled back to a previous revision Feb 26 comment GPU user experiences btw, is that C code? Feb 26 comment GPU user experiences Ok, block size 1 worked for me. And boy, that picture is pretty! Mine clocked at 0.0657 on NVIDIA GeForce GT 650M OpenGL Engine Feb 26 revised Different highlight for each cluster in DendrogramPlot edited tags Feb 26 comment Stop Mathematica from giving imaginary solutions In future, please post Mathematica input so that we (the folks trying to answer your question) can easily copy paste into a notebook. Feb 26 revised Stop Mathematica from giving imaginary solutions deleted 510 characters in body; edited tags; edited title Feb 26 comment GPU user experiences Btw, I get "OpenCLFunction::invblksz: OpenCLLink block size is invalid. " when I run the second code block starting with xRes=... Feb 26 comment GPU user experiences "Specifically, does at least the following return True" — For a lot of folks, it might not be as simple as that (esp. macs). I know for a fact that on both my MBPs (late 2008 and retina), CUDAQ[] repeatedly gave False even after installing the necessary packages from WRI. In the case of my old laptop, I had to manually install an update from NVIDIA, and in my retina MBP, I had to force the graphics card to always use the NVIDIA card and not the integrated one before I could get them to work (return True). Feb 26 revised How to draw Graphics3D items with straight border lines? deleted 1 characters in body; edited tags; edited title Feb 26 comment Deep Pattern matching with repeating arguments @RandomBits It won't... I thought that's what you were trying to do (which I realize wasn't what you were trying to do) Feb 26 comment Confirming the existence of a function related to a matrix Ok, no worries :) I would revert this to the original version (which was properly specified). If you were to start a new question, I would suggest doing so after studying my answer (and the documentation for the functions used) and then try to solve your general problem. If you then get stuck, you can ask a new one (who knows, maybe it can be extended very easily and you won't have to ask a question). Another suggestion would be to use Daniel's comment above and try FindInstance. People always like it when prior effort is shown (and my answer should guide you). Welcome to the site, btw! :)