SphericalCoefficients.h
Go to the documentation of this file.
1 #pragma once
2 
13 namespace NETGeographicLib
14 {
34  public ref class SphericalCoefficients
35  {
36  private:
37  // The cosine coefficients.
38  array<double>^ m_C; // size = Csize(m_nmx,m_mmx)
39  // The sine coefficients
40  array<double>^ m_S; // size = Ssize(m_nmx,m_mmx)
41  // The dimension of the coefficients
42  int m_N;
43  int m_nmx;
44  int m_mmx;
45  public:
56 
60  property int N { int get() { return m_N; } }
64  property int nmx { int get() { return m_nmx; } }
68  property int mmx { int get() { return m_mmx; } }
76  int index(int n, int m)
77  { return m * m_N - m * (m - 1) / 2 + n; }
84  double Cv(int k) { return m_C[k]; }
91  double Sv(int k) { return m_S[k - (m_N + 1)]; }
102  double Cv(int k, int n, int m, double f)
103  { return m > m_mmx || n > m_nmx ? 0 : m_C[k] * f; }
114  double Sv(int k, int n, int m, double f)
115  { return m > m_mmx || n > m_nmx ? 0 : m_S[k - (m_N + 1)] * f; }
116 
125  static int Csize(int N, int M)
126  { return (M + 1) * (2 * N - M + 2) / 2; }
127 
136  static int Ssize(int N, int M)
137  { return Csize(N, M) - (N + 1); }
138 
139  };
140 } // namespace NETGeographicLib
Matrix3f m
Matrix< RealScalar, Dynamic, Dynamic > M
Definition: bench_gemm.cpp:51
int n
Scalar Scalar * c
Definition: benchVecAdd.cpp:17
#define N
Definition: gksort.c:12
.NET wrapper for GeographicLib::SphericalEngine::coeff.
Package up coefficients for SphericalEngine.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
SphericalCoefficients(const GeographicLib::SphericalEngine::coeff &c)
Constructor.


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:36:19