Template Function navtk::navutils::calculate_gravity_schwartz(const B1&, const B2&)
Defined in File gravity.hpp
Function Documentation
-
template<typename B1 = Vector, typename B2 = Vector, IfTensorsMaxDim<1, B1, B2>* = nullptr>
Matrix navtk::navutils::calculate_gravity_schwartz(const B1 &alt, const B2 &lat) Batch version of
calculate_gravity_schwartz.This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
See also
- Template Parameters
B1 – Type of alt.
B2 – Type of lat.
std::enable_if_t<> – Constrains B1 and B2 to have a maximum dimension of precisely 1.
- Parameters
alt – Ellipsoidal altitudes (meters), shape (N). Can accept initializer lists or a
doubleas well.lat – Latitudes (radians), shape (N). Can accept initializer lists or a
doubleas well.
- Returns
Gravities at the given latitude and altitude, shape (N, 3)