I want to ask you very very simple thing, but it looks strange to me at least.
I have to use 1 dim SparseArray function instead of Table. But I don’t know why the following example is not possible.
But I mean that why Position command is not working with SparseArray. This gives me blank. When I use data with parenthesis as follows, it gives me the position of the element. Can you give me a hint ?
I was trying to point out that when you construct a SparseArray, the left-hand side of the rule is the position and the right-hand side is the value you are putting in that position. SparseArray[1->3,4] has a 3 in position 1. I admit it is counter-intuitive.
But the strange thing is that when I use SparseArray, Position command cannot find the position of the element that I specified like below. Did I misunderstand something ?
Being a physicist, I can’t resist asking, “What (specifically) are the Atoms in Mathematica?” AtomQ will tell me if something is Atomic. However, the documentation lists Symbol, String, Integer, Real, Rational and Complex as Atomic Objects but that clearly is not complete,
Examples of atomic objects include SparseArray, Graph, (Boundary)MeshRegion, Association, Dispatch and a few more obscure/undocumented raw types. An exhaustive list is unlikely to be very useful.