Skip to content

Q.ComplexNumber.fromString( n ) #4

@stewdio

Description

@stewdio

It’s kind of gross to see matrix definitions that include new Q.ComplexNumber( blah, blah ) rather than something simple like '-i'. Something like this within the Matrix constructor might be nice:

if( typeof n === 'string' ){

     n = Q.ComplexNumber.fromString( n )
}

But that means having to write Q.ComplexNumber.fromString( n )...
So this issue is a note-to-self to write that!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions