File:  [CENS] / python / pyGiNaC / test4 / test_zero_matrix.py
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Nov 28 05:58:04 2001 UTC (15 years, 11 months ago) by pearu
Branches: MAIN
CVS tags: HEAD
Some cleanup

#!/usr/bin/env python
"""
  test_zero_matrix - run ginac.zero_matrix tests.
  Usage:
    python test_zero_matrix.py [-v]
"""
"""
  This file is part of the PyGiNaC package.
  http://cens.ioc.ee/projects/pyginac/

  $Revision: 1.1 $
  $Id: test_zero_matrix.py,v 1.1 2001-11-28 05:58:04 pearu Exp $
 
  Copyright 2001 Pearu Peterson all rights reserved,
  Pearu Peterson <pearu@cens.ioc.ee>
  Permission to use, modify, and distribute this software is given under the
  terms of the LGPL.  See http://www.fsf.org
 
  NO WARRANTY IS EXPRESSED OR IMPLIED.  USE AT YOUR OWN RISK.
"""

import test_all
import ginac

def test_zero_matrix():
    """
    >>> a = symbol ('a')
    >>> zero_matrix (2,1)
    matrix([[numeric('0')],[numeric('0')]])
    >>> zero_matrix (1,2,3)
    matrix([[numeric('3'),numeric('3')]])
    >>> print zero_matrix (2,3,a)
    [[a,a,a],[a,a,a]]
    """
    
def _test():
    import test_zero_matrix
    return test_all.test(test_zero_matrix)

if __name__ == "__main__":
    _test()

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>