#!/usr/bin/env python
# (C) 2000 Huaiyu Zhu <hzhu@users.sourceforge.net>. Licence: GPL
# $Id: test_transpose.py,v 1.2 2000/07/26 20:58:27 hzhu Exp $
"""
Test transpose, diag, flipud, fliplr
"""
from MatPy.Matrix import rand,Diag,diag,flipud,fliplr
a = rand((3,3))
print "-"*44,"\n", a
b = diag(a)
print "-"*44,"\n", b
print "-"*44,"\n", Diag(b)
print "-"*44,"\n", Diag(b.T)
print "-"*44,"\n", flipud(a)
print "-"*44,"\n", fliplr(a)
|