Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/pycogent-HEAD/tests/test_maths/test_matrix_logarithm.py   pycogent(Download)
#!/usr/bin/env python
"""Unit tests for matrix logarithm."""
from numpy import array
from cogent.util.unit_test import TestCase, main
from cogent.maths.matrix_logarithm import logm, logm_taylor
                       [ 0.04782582,  0.1375742 ,  0.80046869,  0.01413129],
                       [ 0.23022035,  0.22306947,  0.06995306,  0.47675713]])
        q_taylor = logm_taylor([[0.86758487, 0.05575623, 0.0196798, 0.0569791],
                  [ 0.01827347,  0.93312148,  0.02109664,  0.02750842],
                  [ 0.04782582,  0.1375742 ,  0.80046869,  0.01413129],

src/c/o/cogent-1.5.3/tests/test_maths/test_matrix_logarithm.py   cogent(Download)
#!/usr/bin/env python
"""Unit tests for matrix logarithm."""
from numpy import array
from cogent.util.unit_test import TestCase, main
from cogent.maths.matrix_logarithm import logm, logm_taylor
                       [ 0.04782582,  0.1375742 ,  0.80046869,  0.01413129],
                       [ 0.23022035,  0.22306947,  0.06995306,  0.47675713]])
        q_taylor = logm_taylor([[0.86758487, 0.05575623, 0.0196798, 0.0569791],
                  [ 0.01827347,  0.93312148,  0.02109664,  0.02750842],
                  [ 0.04782582,  0.1375742 ,  0.80046869,  0.01413129],