You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
experimenting around with this package I realized that it does not seem possible to use a custom struct (in my case with one complex type and one normal f64 type).
I wanted to implement a lang-kobayashi laser equation (two coupled differential equations, one "E" for the electric field, which is complex, and one "n" representing the number of excited states (or fraction thereof).
Is this package designed to only be used with vectors? or is it possible to have combinations of complex and real states? (these mixed states are often needed in various laser system equations.
The text was updated successfully, but these errors were encountered:
Since a "normal" type can be seen as a complex number with no imaginary part, you might be able to define the type as type State = Vector2<Complex>. I'm not familiar with solving ODEs with complex numbers so I'm not sure if this would work though.
experimenting around with this package I realized that it does not seem possible to use a custom struct (in my case with one complex type and one normal f64 type).
I wanted to implement a lang-kobayashi laser equation (two coupled differential equations, one "E" for the electric field, which is complex, and one "n" representing the number of excited states (or fraction thereof).
Is this package designed to only be used with vectors? or is it possible to have combinations of complex and real states? (these mixed states are often needed in various laser system equations.
The text was updated successfully, but these errors were encountered: