Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Return the Norm of a Matrix or Vector.
In the simplest case this is the geometric size of the vector
Other norms can be specified by the ord parameter


=====  ============================  ==========================
ord    norm for matrices             norm for vectors
=====  ============================  ==========================
None   Frobenius norm                2-norm
'fro'  Frobenius norm                - does not exist(more...)

src/s/y/sympy-0.7.5/sympy/matrices/tests/test_immutable.py   sympy(Download)
    assert X.is_diagonalizable()
    assert X.berkowitz_det() == -3
    assert X.norm(2) == 3
 
    assert type(X.eigenvects()[0][2][0]) == ImmutableMatrix

src/s/y/sympy-HEAD/sympy/matrices/tests/test_immutable.py   sympy(Download)
    assert X.is_diagonalizable()
    assert X.berkowitz_det() == -3
    assert X.norm(2) == 3
 
    assert type(X.eigenvects()[0][2][0]) == ImmutableMatrix