Created
November 12, 2018 04:13
-
-
Save ahmadyan/63e6a23c050eae61059757f19bc2f0f1 to your computer and use it in GitHub Desktop.
Jet Operator Overloading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jet operator*(Jet& f, Jet& g) { | |
return Jet(f.a * g.a, // The scalar part | |
f.a * g.v + f.v * g.a // The infinitesimal vector part | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment