-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Milestone
Description
The following 3 types in src/metric.jl:
-
Lines 16 to 24 in a0af7cc
struct DiagEuclideanMetric{T<:Real,A<:AbstractVector{T}} <: AbstractMetric{T} dim :: Int # Diagnal of the inverse of the mass matrix M⁻¹ :: A # Sqare root of the inverse of the mass matrix sqrtM⁻¹ :: A # Pre-allocation for intermediate variables _temp :: A end -
Lines 41 to 49 in a0af7cc
struct DenseEuclideanMetric{T<:Real,AV<:AbstractVector{T},AM<:AbstractMatrix{T}} <: AbstractMetric{T} dim :: Int # Inverse of the mass matrix M⁻¹ :: AM # U of the Cholesky decomposition of the mass matrix cholM⁻¹ :: UpperTriangular{T,AM} # Pre-allocation for intermediate variables _temp :: AV end -
Lines 3 to 5 in a0af7cc
struct UnitEuclideanMetric{T<:Real} <: AbstractMetric{T} dim :: Int end
can be merged into one type using AbstractPDMat
struct EuclideanMetric{T<:Real,A<:AbstractPDMat{T}} <: AbstractMetric{T}
M⁻¹ :: A # contains dim, M⁻¹ and its Cholesky decomposition.
# Pre-allocation for intermediate variables
_temp :: A
endMetadata
Metadata
Assignees
Labels
No labels