MLab in Numeric.py a possible bug

Colin J. Williams cjw at sympatico.ca
Wed Sep 4 12:27:21 EDT 2002


Line 296 in the function cov is:

    val = squeeze(dot(transpose(m) * conjugate(y)) / fact)

and gives the error message:
    
    ValueError: frames are not aligned

dot is expecting two arguments, but does not complain when one is
provided.

m and y are arrays, replacing them by matrices does not appear to
resolve
the problem as, with matrix m, transpose(m) is an array, not a matrix.

Providing dot with two arguments, array or matrix, seems to resolve the
problem.

    val = squeeze(dot(transpose(m), conjugate(y)) / fact)




More information about the Python-list mailing list