MathGroup Archive 2004

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

Search the Archive

Re: [Bug] Transpose is broken for empty SparseArrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49607] Re: [mg49576] [Bug] Transpose is broken for empty SparseArrays
  • From: DrBob <drbob at bigfoot.com>
  • Date: Sat, 24 Jul 2004 03:48:02 -0400 (EDT)
  • References: <200407231001.GAA20530@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

This may be the root of the problem:

Transpose[SparseArray[{}, {1, 2}]] == SparseArray[{}, {1, 2}] == {{0, 0}}

True

On the other hand,

Transpose[Normal@SparseArray[{},{1,2}]]
Dimensions[Transpose[Normal@SparseArray[{},{1,2}]]]

{{0},{0}}

{2,1}

Bobby

On Fri, 23 Jul 2004 06:01:48 -0400 (EDT), Scott Morrison <scott at math.berkeley.edu> wrote:

> Dimensions[Transpose[SparseArray[{},{1,2}]]]



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: Fundamental theorem problem
  • Next by Date: Re: Spacing of Words in Text Graphics Statements
  • Previous by thread: [Bug] Transpose is broken for empty SparseArrays
  • Next by thread: DisplayTogether, multiple ListPlots, compound paths, and Illustrator/EPS problems