Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
Loading...
Searching...
No Matches
Public Member Functions | List of all members
srfm::manifold::SpacetimeManifold Class Reference

#include <spacetime_manifold.hpp>

Public Member Functions

 SpacetimeManifold () noexcept=default
 
std::optional< Regime > process (const SpacetimeEvent &event) const noexcept
 Classify a spacetime event into a relativistic regime.
 
std::array< double, NUM_CHRISTOFFEL > christoffelSymbols (const MetricTensor &metric) const noexcept
 Compute all 64 Christoffel symbols Γ^λ_μν via finite differences.
 
MetricTensor flatMetric () const noexcept
 Return the flat Minkowski metric.
 

Detailed Description

Definition at line 127 of file spacetime_manifold.hpp.

Constructor & Destructor Documentation

◆ SpacetimeManifold()

srfm::manifold::SpacetimeManifold::SpacetimeManifold ( )
defaultnoexcept

Member Function Documentation

◆ christoffelSymbols()

std::array< double, NUM_CHRISTOFFEL > srfm::manifold::SpacetimeManifold::christoffelSymbols ( const MetricTensor &  metric) const
noexcept

Compute all 64 Christoffel symbols Γ^λ_μν via finite differences.

Uses central finite differences on the metric at the origin: ∂g_{μν}/∂x^λ ≈ (g(x+ε·eλ) − g(x−ε·eλ)) / (2ε)

For a constant (flat) metric all derivatives are machine-zero, so all 64 symbols are < 1e-8 in absolute value.

The metric callback signature: MetricCallback: (const std::array<double,DIM>&) → MetricTensor A null-like constant metric simply returns the same MetricTensor regardless of position.

Parameters
metricThe metric tensor at the origin (flat or curved).
Returns
std::array<double, 64> of Γ^λ_μν values (row-major λ,μ,ν). Returns array of zeros if metric inverse cannot be computed.
Examples
/home/runner/work/Special-Relativity-in-Financial-Modeling/Special-Relativity-in-Financial-Modeling/src/manifold/spacetime_manifold.hpp.

Definition at line 84 of file spacetime_manifold.cpp.

◆ flatMetric()

MetricTensor srfm::manifold::SpacetimeManifold::flatMetric ( ) const
noexcept

◆ process()

std::optional< Regime > srfm::manifold::SpacetimeManifold::process ( const SpacetimeEvent &  event) const
noexcept

Classify a spacetime event into a relativistic regime.

Uses x-coordinate as a proxy for normalised velocity |β|: β_proxy = tanh(|x| / (|x| + 1.0)) (maps R⁺ → [0,1))

Returns
Regime, or std::nullopt if event coordinates are non-finite.
Examples
/home/runner/work/Special-Relativity-in-Financial-Modeling/Special-Relativity-in-Financial-Modeling/src/manifold/spacetime_manifold.hpp.

Definition at line 67 of file spacetime_manifold.cpp.


The documentation for this class was generated from the following files: