Skip to content

a.real and a.imag not working properly for a complex flamp vector #3

Description

@newbisi

For a complex numpy vector, e.g., a = (1+1j)*np.ones(2), the properties a.real and a.imag return vectors with the entry-wise real and imaginary parts of a. For a flamp vector, e.g., a = (1+1j)*flamp.ones(2), this is not working properly. a.real and a.imag return [mpc('1.0+1.0j',(216,216)) mpc('1.0+1.0j',(216,216))] and [0 0], respectivelly. As a workaround, calling real and imag on the vector entries works as expected, thus, [z.real for z in a] and [z.imag for z in a] return the proper vectors.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions