MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

SparseArray[]: no warning for repeated indices

By default, SparseArray[] gives no warning when an index is specified 
twice.  Example:

SparseArray[{1->a, 2->b, 1->c}]

This is incorrect because both a and c are associated with index 1, but 
SparseArray gives no warning.

Is there a message that can be turned on to get SparseArray to warn 
about such situations?

  • Prev by Date: Bug in LaplaceTransform?
  • Next by Date: Re: Wolfram WorkBench and iDisk
  • Previous by thread: Re: Bug in LaplaceTransform?
  • Next by thread: Multivariate normal distribution