Skip to content

transform does not accept Complex values #687

Description

@Ouroboros42

Calling tansform with Complex values (like the example below)

using ApproxFun
S = Chebyshev()

x = points(S, 10)
y = cis.(x)

transform(S, y)

Causes an error as the transform method tries to convert the vector y to AbstractArray{float(eltype(y))}, and float(Complex{...}) is not defined.
This should just work if the type conversion had a special case for complex values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions