MathGroup Archive 2004

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

Search the Archive

Re: [Bug] Transpose is broken for empty SparseArrays


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