Dear Wolframers, do you know if there is some efficient way to test that the only entries in a sparse array are set to the default element, without having recourse to the conversion of the sparse array into a list of array rules like so :
I would guess this to be most efficient way to do it currently without using hidden function. If you do:
sparseArray // FullForm
You will see the input, but you can’t access it directly using Part as a sparseArray is an atom (AtomQ). You therefore have to use functions like ArrayRules to get ‘deeper’ information from sparse arrays…