next up previous contents
Next: TransformView Up: Views Previous: ColumnSupersetView   Contents

TransposeView

The TransposeView simply provides a way to view your data transposed without having to change the original dataset. This is most helpful for interfacing to other python modules or external programs that require row or column major ordering for their inputs. As this class is conceptually simple, only a brief example is offered.

>>> ds = Dataset(MLab.rand(4,2))
>>> ds.writeDataset()
0.94551807642   0.31146222353
0.323919504881  0.931670665741
0.728558063507  0.743269145489
0.614804148674  0.751430094242
>>> tv = TransposeView(ds)
>>> tv.writeDataset()
0.94551807642   0.323919504881   0.728558063507   0.614804148674
0.31146222353   0.931670665741   0.743269145489   0.751430094242



Lucas Scharenbroich 2003-08-27