Skip to content

Commit 902923c

Browse files
committed
tweak exports
1 parent c963e64 commit 902923c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/FunctionMaps.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ export canonicalmap
2727
# from generic/composite.jl
2828
export composedmap
2929
# from generic/product.jl
30-
export productmap
30+
export ProductMap, productmap
3131

3232
# from concrete/basic.jl
3333
export IdentityMap,
34-
StaticIdentityMap, VectorIdentityMap,
35-
ZeroMap, UnityMap, ConstantMap,
36-
isconstantmap, mapconstant
34+
ZeroMap,
35+
UnityMap,
36+
ConstantMap,
37+
isconstantmap,
38+
mapconstant,
39+
isidentitymap
3740
# from concrete/affine
3841
export AffineMap, Translation, LinearMap,
3942
affinematrix, affinevector,

src/concrete/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ inverse(m::IdentityMap, x) = x
2020
islinearmap(::IdentityMap) = true
2121
isrealmap(::IdentityMap{T}) where {T} = isrealtype(T)
2222

23+
isidentitymap(m) = false
2324
isidentitymap(::IdentityMap) = true
24-
isidentitymap(m::Map{T}) where {T} = m == StaticIdentityMap{T}()
2525

2626
mapsize(m::IdentityMap{T}) where {T<:Number} = ()
2727
mapsize(m::IdentityMap{T}) where {T} = (euclideandimension(T),euclideandimension(T))

0 commit comments

Comments
 (0)