gtsam
3rdparty
GeographicLib
dotnet
NETGeographicLib
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
:
55
SphericalCoefficients
(
const
GeographicLib::SphericalEngine::coeff
&
c
);
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
NETGeographicLib::SphericalCoefficients::SphericalCoefficients
SphericalCoefficients(const GeographicLib::SphericalEngine::coeff &c)
Constructor.
Definition:
SphericalCoefficients.cpp:18
c
Scalar Scalar * c
Definition:
benchVecAdd.cpp:17
NETGeographicLib::SphericalCoefficients::m_nmx
int m_nmx
Definition:
SphericalCoefficients.h:43
n
int n
Definition:
BiCGSTAB_simple.cpp:1
GeographicLib::SphericalEngine::coeff
Package up coefficients for SphericalEngine.
Definition:
SphericalEngine.hpp:99
NETGeographicLib::SphericalCoefficients::m_S
array< double > m_S
Definition:
SphericalCoefficients.h:40
NETGeographicLib::SphericalCoefficients
.NET wrapper for GeographicLib::SphericalEngine::coeff.
Definition:
SphericalCoefficients.h:34
NETGeographicLib::SphericalCoefficients::m_C
array< double > m_C
Definition:
SphericalCoefficients.h:38
m
Matrix3f m
Definition:
AngleAxis_mimic_euler.cpp:1
NETGeographicLib::SphericalCoefficients::m_mmx
int m_mmx
Definition:
SphericalCoefficients.h:44
tree::f
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Definition:
testExpression.cpp:218
array< double >
NETGeographicLib::SphericalCoefficients::m_N
int m_N
Definition:
SphericalCoefficients.h:42
N
#define N
Definition:
igam.h:9
get
Container::iterator get(Container &c, Position position)
Definition:
stdlist_overload.cpp:29
NETGeographicLib
Definition:
Accumulator.h:13
M
Matrix< RealScalar, Dynamic, Dynamic > M
Definition:
bench_gemm.cpp:51
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:59