Skip to content

Commit a39ef12

Browse files
author
Pepijn de Vos
committed
maybe fix docs and truncate
1 parent 7152e23 commit a39ef12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tangent.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ abstract type AbstractTangentSpace; end
8484
struct ExplicitTangent{P}
8585
8686
A fully explicit coordinate representation of the tangent space,
87-
represented by a vector of `2^(N-1)` partials.
87+
represented by a vector of `2^N-1` partials.
8888
"""
8989
struct ExplicitTangent{P <: Tuple} <: AbstractTangentSpace
9090
partials::P
@@ -243,7 +243,7 @@ function truncate(tb::TangentBundle, order::Val)
243243
end
244244

245245
function truncate(tb::ExplicitTangent, order::Val{N}) where {N}
246-
ExplicitTangent(tb.partials[1:2^(N-1)])
246+
ExplicitTangent(tb.partials[1:2^N-1])
247247
end
248248

249249
function truncate(et::ExplicitTangent, order::Val{1})

0 commit comments

Comments
 (0)