view DEPENDENCIES/mingw32/Python27/Lib/site-packages/numpy/matrixlib/tests/test_numeric.py @ 107:e4c146b6e491

Switch to OS/X 10.7 and libc++ throughout. (Otherwise we get only very limited C++11 support.)
author Chris Cannam
date Mon, 07 Sep 2015 14:43:42 +0100
parents 2a2c65a20a8b
children
line wrap: on
line source
from __future__ import division, absolute_import, print_function

from numpy.testing import assert_equal, TestCase
from numpy.core import ones
from numpy import matrix

class TestDot(TestCase):
    def test_matscalar(self):
        b1 = matrix(ones((3, 3), dtype=complex))
        assert_equal(b1*1.0, b1)