@@ -215,7 +215,7 @@ GramSchmidtOrthonormalBasis(𝔽::AbstractNumbers = ℝ) = GramSchmidtOrthonorma
215
215
216
216
An orthonormal basis `Ξ` as a vector of tangent vectors (of length determined by
217
217
[`manifold_dimension`](@ref)) in the tangent space that diagonalizes the curvature
218
- tensor $ R(u,v)w$ and where the direction `frame_direction` $v$ has curvature `0`.
218
+ tensor `` R(u,v)w`` and where the direction `frame_direction` ``v`` has curvature `0`.
219
219
220
220
The type parameter `𝔽` denotes the [`AbstractNumbers`](@ref) that will be used
221
221
for the vectors elements.
373
373
374
374
Get the dual basis to `B`, a basis of a vector space at point `p` from manifold `M`.
375
375
376
- The dual to the $i$ th vector $ v_i$ from basis `B` is a vector $ v^i$ from the dual space
377
- such that $ v^i(v_j) = δ^i_j$ , where $ δ^i_j$ is the Kronecker delta symbol:
376
+ The dual to the ``i`` th vector `` v_i`` from basis `B` is a vector `` v^i`` from the dual space
377
+ such that `` v^i(v_j) = δ^i_j`` , where `` δ^i_j`` is the Kronecker delta symbol:
378
378
````math
379
379
δ^i_j = \b egin{cases}
380
380
1 & \t ext{ if } i=j, \\
920
920
@doc raw """
921
921
hat(M::AbstractManifold, p, Xⁱ)
922
922
923
- Given a basis $ e_i$ on the tangent space at a point `p` and tangent
924
- component vector $ X^i$ , compute the equivalent vector representation
925
- $ X=X^i e_i$ , where Einstein summation notation is used:
923
+ Given a basis `` e_i`` on the tangent space at a point `p` and tangent
924
+ component vector `` X^i ∈ ℝ`` , compute the equivalent vector representation
925
+ `` X=X^i e_i`` , where Einstein summation notation is used:
926
926
927
927
````math
928
928
∧ : X^i ↦ X^i e_i
@@ -932,8 +932,10 @@ For array manifolds, this converts a vector representation of the tangent
932
932
vector to an array representation. The [`vee`](@ref) map is the `hat` map's
933
933
inverse.
934
934
"""
935
- @inline hat (M:: AbstractManifold , p, X) = get_vector (M, p, X, VeeOrthogonalBasis ())
936
- @inline hat! (M:: AbstractManifold , Y, p, X) = get_vector! (M, Y, p, X, VeeOrthogonalBasis ())
935
+ @inline hat (M:: AbstractManifold , p, X) =
936
+ get_vector (M, p, X, VeeOrthogonalBasis (number_system (M)))
937
+ @inline hat! (M:: AbstractManifold , Y, p, X) =
938
+ get_vector! (M, Y, p, X, VeeOrthogonalBasis (number_system (M)))
937
939
938
940
"""
939
941
number_of_coordinates(M::AbstractManifold{𝔽}, B::AbstractBasis)
@@ -1063,8 +1065,8 @@ end
1063
1065
@doc raw """
1064
1066
vee(M::AbstractManifold, p, X)
1065
1067
1066
- Given a basis $ e_i$ on the tangent space at a point `p` and tangent
1067
- vector `X`, compute the vector components $ X^i$ , such that $ X = X^i e_i$ , where
1068
+ Given a basis `` e_i`` on the tangent space at a point `p` and tangent
1069
+ vector `X`, compute the vector components `` X^i ∈ ℝ`` , such that `` X = X^i e_i`` , where
1068
1070
Einstein summation notation is used:
1069
1071
1070
1072
````math
@@ -1075,5 +1077,8 @@ For array manifolds, this converts an array representation of the tangent
1075
1077
vector to a vector representation. The [`hat`](@ref) map is the `vee` map's
1076
1078
inverse.
1077
1079
"""
1078
- vee (M:: AbstractManifold , p, X) = get_coordinates (M, p, X, VeeOrthogonalBasis ())
1079
- vee! (M:: AbstractManifold , Y, p, X) = get_coordinates! (M, Y, p, X, VeeOrthogonalBasis ())
1080
+ vee (M:: AbstractManifold , p, X) =
1081
+ get_coordinates (M, p, X, VeeOrthogonalBasis (number_system (M)))
1082
+ function vee! (M:: AbstractManifold , Y, p, X)
1083
+ return get_coordinates! (M, Y, p, X, VeeOrthogonalBasis (number_system (M)))
1084
+ end
0 commit comments