MathGroup Archive 2009

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

Search the Archive

SparseArray[]: no warning for repeated indices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97702] SparseArray[]: no warning for repeated indices
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Thu, 19 Mar 2009 02:10:41 -0500 (EST)

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