shapes.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 # Copyright Jim Bosch & Ankit Daftery 2010-2012.
00004 # Distributed under the Boost Software License, Version 1.0.
00005 #    (See accompanying file LICENSE_1_0.txt or copy at
00006 #          http://www.boost.org/LICENSE_1_0.txt)
00007 
00008 import shapes_mod
00009 import unittest
00010 import numpy
00011 
00012 class TestShapes(unittest.TestCase):
00013     
00014     def testShapes(self):
00015         a1 = numpy.array([(0,1),(2,3)])
00016         a1_shape = (1,4)
00017         a1 = shapes_mod.reshape(a1,a1_shape)
00018         self.assertEqual(a1_shape,a1.shape)
00019 
00020 if __name__=="__main__":
00021     unittest.main()


boost_numpy
Author(s): Jim Bosch, Ankit Daftery
autogenerated on Fri Aug 28 2015 10:10:40