|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
Symmetric 4×4 spacetime metric tensor g_{μν}. More...
#include <spacetime_manifold.hpp>
Public Member Functions | |
| bool | is_valid () const noexcept |
| std::optional< MetricTensor > | inverse_diagonal () const noexcept |
Static Public Member Functions | |
| static MetricTensor | minkowski () noexcept |
| Construct the flat Minkowski metric η = diag(−1,+1,+1,+1). | |
Public Attributes | |
| std::array< std::array< double, DIM >, DIM > | g {} |
Symmetric 4×4 spacetime metric tensor g_{μν}.
Row/column indices: 0=t, 1=x, 2=y, 3=z. Sign convention: (−,+,+,+). Flat Minkowski: diag(−1,+1,+1,+1).
The spatial block g[1..3][1..3] must be positive-definite for a physically valid metric (time-like signature).
Definition at line 56 of file spacetime_manifold.hpp.
|
noexcept |
Return the inverse metric g^{μν} assuming diagonal metric (fast path). For non-diagonal metrics falls back to returning nullopt.
Definition at line 44 of file spacetime_manifold.cpp.
|
noexcept |
Check that the metric has correct signature: g[0][0] < 0, spatial diagonal entries g[i][i] > 0 for i ∈ {1,2,3}, finite entries.
Definition at line 28 of file spacetime_manifold.cpp.
|
staticnoexcept |
Construct the flat Minkowski metric η = diag(−1,+1,+1,+1).
Definition at line 17 of file spacetime_manifold.cpp.