11,707 reputation
12263
bio website
location
age
visits member for 2 years, 6 months
seen Dec 15 at 12:51

mailto:Uncompress["1:eJxTTMoPCpZmYGAoTs7IzUwp0SvOzM3P084tTnVIz03MzNFLzs8FAMzpDBo="]


Dec
12
awarded  Popular Question
Oct
30
awarded  Nice Question
Sep
30
awarded  Explainer
Sep
24
awarded  Autobiographer
Sep
19
awarded  Generalist
Aug
31
awarded  Announcer
Aug
11
awarded  Necromancer
Jul
2
awarded  Curious
Jun
28
awarded  Nice Question
Jun
18
awarded  Yearling
May
24
awarded  Nice Question
Apr
10
awarded  Popular Question
Dec
19
comment How to do subtraction with sets in which the elements have multiplicity indicators?
Do you know about Intersection and Complement? Intersection[l1, l2] == {{1, 1}, {2, 2}} and Complement[l1, l2] == {{3, 4}}
Dec
17
comment Mapping a function that assigns values to a list over a different list
I don't think the poster always want position 1 and 3, but position $c_{i1}$ and $c_{i2}$ but without the Do, and presumably something prettier than f[{x_, y_}] := {fx[x, y], fy[x, y]}; Transpose@{Riffle[#, #] &@Range@Length@c, Flatten@c} -> Flatten[f /@ c] // SparseArray // Normal
Dec
17
comment Can Mathematica identify formulae or sequences of numbers?
OEIS in Mathematica
Dec
16
comment Plotting Voxel in mathematica
The size of every voxel in a grid is always the same, by definition.
Dec
15
comment Opposite function to Normal
@MichaelE2 Strange that Band gets worse memory than sparsifying(?) a normal array :) Same thing for a larger matrix like 10k x 1k? (I'm on v8.0.4 and get same for sp and sp2)
Dec
15
comment Opposite function to Normal
@Mencia Doesn't matter what it is, SparseArray only stores information representing position and value for places where the value is not equal to the background value, so for memory use it doesn't matter what the background happens to be. However 0 is very common and is usually what you want (this is why Mathematica assumes you want 0 unless you specify otherwise)
Dec
15
comment Opposite function to Normal
@Mencia the default value that is used where nothing else is specified in the SparseArray e.g. SparseArray[Band[{1,1}]->9, {5,5}, Infinity]//Normal//MatrixForm
Dec
15
answered Opposite function to Normal