Skip to content

cov() fails for complex input (Trac #2088) #2680

Closed

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/2088 on 2012-03-21 by trac user shoyer, assigned to unknown.

The cov() function in lib/function_base.py casts all input to 'float' and hence fails on complex inputs. Note that the code already includes the appropriate .conj() to handle complex inputs properly [1], so it only fails on complex inputs because of the type casting. This should be an easy fix.

[1] http://en.wikipedia.org/wiki/Covariance_matrix#Complex_random_vectors

Activity

  1. added a commit that references this issue on Oct 8, 2013
  2. charris commented on Feb 21, 2014

    @charris
    Member

    Closed by #3882.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions