Internal API Reference
This is an exhaustive list of all non-exported constants, types and functions in FunctionMaps.jl
.
Unexported functions and types are subject to change across different releases of the package, even if the release is said to be non-breaking.
Constants
FunctionMaps.AnyMap
— TypeAnyMap
is the union of Map
and MapRef
.
In both cases map(m::AnyMap)
returns the map itself.
Functions
FunctionMaps.affine_composition
— MethodCompute the affine map that represents map2 after map1, that is: y = a2*(a1*x+b1)+b2 = a2*a1*x + a2*b1 + b2
.
FunctionMaps.bounded_interval_map
— MethodLike interval_map, but guaranteed to return a scalar affine map.
FunctionMaps.canonicalextensiontype
— MethodReturn the extension type associated with the given object.
FunctionMaps.checkmap
— Methodcheckmap(m)
Checks that m
is a map or refers to a map and if so returns that map, throws an error otherwise.
FunctionMaps.convert_domaintype
— Methodconvert_domaintype(T, m)
Convert the given map to a map such that its domaintype
is T
.
See also: domaintype
.
FunctionMaps.convert_eltype
— Methodconvert_eltype(T, x)
Convert x
such that its eltype
equals T
.
FunctionMaps.convert_fromcartesian
— MethodConvert a vector from a cartesian format to a nested tuple according to the given dimensions.
For example: convert_fromcartesian([1,2,3,4,5], Val{(2,2,1)}()) -> ([1,2],[3,4],5)
FunctionMaps.convert_numtype
— Methodconvert_numtype(T, x)
Convert x
such that its numtype
equals T
.
FunctionMaps.convert_prectype
— Methodconvert_prectype(T, x)
Convert x
such that its prectype
equals T
.
FunctionMaps.convert_tocartesian
— MethodThe inverse function of convert_fromcartesian
.
FunctionMaps.euclideandimension
— MethodWhat is the euclidean dimension of the given type (if applicable)?
FunctionMaps.functionmap
— Methodfunctionmap(m)
Return a map associated with the object m
.
The result need not have type Map
, but its MapStyle
is IsMap
.
FunctionMaps.glm_domaintype
— MethodWhat is the suggested domaintype for a generic linear map A*x
with the given argument 'A'?
FunctionMaps.hascanonicalmap
— MethodDoes the map have a canonical map?
FunctionMaps.hashrec
— MethodApply the hash
function recursively to the given arguments.
FunctionMaps.identitymatrix
— MethodReturn an identity matrix with the same size as the map.
FunctionMaps.interval_map
— MethodMap the interval [a,b]
to the interval [c,d]
.
This function deals with infinite intervals, and the type of the map returned may depend on the value (finiteness) of the given endpoints.
FunctionMaps.issquaremap
— MethodIs the given map a square map?
FunctionMaps.isvectorvalued
— MethodIs the map a vector-valued function, i.e., a function from Rn to Rm?
FunctionMaps.promotable_eltypes
— MethodAre the given element types promotable to a concrete supertype?
FunctionMaps.promotable_maps
— MethodCan the maps be promoted to a common domain type without throwing an error?
FunctionMaps.promote_map_point_pair
— MethodPromote map and point to compatible types.
FunctionMaps.promote_maps
— MethodPromote the given maps to have a common domain type.
FunctionMaps.promote_numtype
— Methodpromote_numtype(a, b[, ...])
Promote the numeric types of the arguments to a joined supertype.
FunctionMaps.promote_prectype
— Methodpromote_prectype(a, b[, ...])
Promote the precision types of the arguments to a joined supertype.
FunctionMaps.simplifies
— Methodsimplifies(m)
Does the map simplify?
FunctionMaps.simplify
— Methodsimplify(m)
Simplify the given map to an equal map.
FunctionMaps.to_matrix
— Methodto_matrix(T, A[, b])
Convert the A
in the affine map A*x
or A*x+b
with domaintype T
to a matrix.
FunctionMaps.to_numtype
— Methodto_numtype(U, T)
Return the type to which T
can be converted, such that the numtype
becomes U
.
FunctionMaps.to_prectype
— Methodto_prectype(U, T)
Return the type to which T
can be converted, such that the prectype
becomes U
.
FunctionMaps.to_vector
— Methodto_vector(::Type{T}, A[, b])
Convert the b
in the affine map A*x
or A*x+b
with domaintype T
to a vector.
FunctionMaps.tofunctionmap
— MethodConvert the given map to a map defined in FunctionMaps.jl.
FunctionMaps.zeromatrix
— MethodReturn a zero matrix of the same size as the map.
FunctionMaps.zerovector
— MethodReturn a zero vector of the same size as the codomain of the map.
Types
FunctionMaps.AbsMap
— TypeAn AbsMap
returns the absolute value of the result of a given map.
FunctionMaps.AbstractAffineMap
— TypeAbstractAffineMap{T} <: Map{T}
An affine map has the general form y = A*x + b
.
We use affinematrix(m)
and affinevector(m)
to denote A
and b
respectively. Concrete subtypes include linear maps of the form y = A*x
and translations of the form y = x + b
.
See also: affinematrix
, affinevector
.
FunctionMaps.AngleMap
— TypeAngleMap
is a left inverse of UnitCircleMap
. A 2D vector x
is projected onto the intersection point with the unit circle of the line connecting x
to the origin. The angle of this point, scaled to the interval [0,1)
, is the result.
FunctionMaps.CanonicalExtensionType
— TypeCanonicalExtensionType <: CanonicalType
Canonical types used to translate between packages.
FunctionMaps.CanonicalType
— TypeSupertype of different kinds of canonical objects.
FunctionMaps.CartToPolarMap
— TypeA Cartesion to Polar map. First dimension is interpreted as radial distance, second as an angle. The unit circle is mapped to the square [-1,1]x[-1,1]
.
FunctionMaps.ComplexToVector
— MethodComplexToVector()
ComplexToVector{T}()
Map a complex number $a+bi$ to the length 2 vector $[a; b]$.
See also: VectorToComplex
.
FunctionMaps.ComposedMap
— TypeComposedMap{T,MAPS}
The composition of several maps.
The components
of a ComposedMap
are the maps in the order that they are applied to the input.
FunctionMaps.CompositeLazyMap
— TypeA composite lazy map is defined in terms of several other maps.
FunctionMaps.DerivedMap
— TypeA DerivedMap
inherits all of its properties from another map, but has its own type.
FunctionMaps.DeterminantMap
— TypeA DeterminantMap
returns the determinant of the result of a given map.
FunctionMaps.DynamicIdentityMap
— TypeIdentity map with dynamic size determined by a dimension field.
FunctionMaps.Equal
— TypeEqual <: CanonicalType
A canonical object that is equal but simpler.
FunctionMaps.Equivalent
— TypeEquivalent <: CanonicalType
A canonical object that is equivalent but may have different type.
FunctionMaps.FixedConstantMap
— TypeThe constant map f(x) = c
.
FunctionMaps.FlatToNested
— TypeMap a flattened vector to a nested one.
FunctionMaps.GenericAffineMap
— TypeAn affine map for any combination of types of A
and b
.
FunctionMaps.GenericLinearMap
— TypeA GenericLinearMap
is a linear map y = A*x
for any type of A
.
FunctionMaps.GenericTranslation
— TypeTranslation by a generic vectorlike object.
FunctionMaps.IsMap
— TypeIsMap()
indicates an object implements the map interface.
FunctionMaps.Isomorphism
— TypeIsomorphism{T,U} <: TypedMap{T,U}
An isomorphism is a bijection between types that preserves norms.
FunctionMaps.LazyDiffVolume
— TypeA lazy volume element evaluates to diffvolume(m, x)
on the fly.
FunctionMaps.LazyInverse
— TypeA lazy inverse stores a map m
and returns inverse(m, x)
.
FunctionMaps.LazyJacobian
— TypeA lazy Jacobian J
stores a map m
and returns J(x) = jacobian(m, x)
.
FunctionMaps.LazyMap
— TypeA lazy map has an action that is defined in terms of other maps. Those maps are stored internally, and the action of the lazy map is computed on-the-fly and only when invoked.
FunctionMaps.MapStyle
— TypeMapStyle(m)
Trait to indicate whether or not m
implements the map interface.
FunctionMaps.MulMap
— TypeThe lazy multiplication of one or more maps.
FunctionMaps.NestedToFlat
— TypeMap a nested vector or tuple to a flat vector.
FunctionMaps.NotMap
— TypeNotMap()
indicates an object does not implement the Map interface.
FunctionMaps.NumberToVector
— MethodNumberToVector()
NumberToVector{T}()
Map a number x
to the length 1 vector [x]
.
See also: VectorToNumber
.
FunctionMaps.PolarToCartMap
— TypeA Polar to Cartesian map. The angle is mapped to the second dimension, radius to the first. The square [-1,1]x[-1,1]
is mapped to the unit circle.
FunctionMaps.ScalarAffineMap
— TypeAn affine map with scalar representation.
FunctionMaps.ScalarLinearMap
— TypeA ScalarLinearMap
is a linear map y = A*x
for scalars.
FunctionMaps.ScalarTranslation
— TypeTranslation by a scalar value.
FunctionMaps.SimpleLazyMap
— TypeA simple lazy map derives from a single other map.
FunctionMaps.StaticAffineMap
— TypeAn affine map with representation using static arrays.
FunctionMaps.StaticIdentityMap
— TypeThe identity map for variables of type T
.
FunctionMaps.StaticLinearMap
— TypeA StaticLinearMap
is a linear map y = A*x
using static arrays.
FunctionMaps.StaticTranslation
— TypeTranslation by a static vector.
FunctionMaps.SumMap
— TypeThe lazy sum of one or more maps.
FunctionMaps.TupleProductMap
— TypeA TupleProductMap
is a product map with all components collected in a tuple. There is no vector-valued function associated with this map.
FunctionMaps.TupleToVector
— TypeMap a tuple to a static vector.
FunctionMaps.TypedMap
— TypeAny instance of TypedMap{T,U}
maps a variable of type T
to a variable of type U
.
FunctionMaps.UnitCircleMap
— TypeThe map [cos(2πt), sin(2πt)]
from [0,1]
to the unit circle in ℝ^2
.
FunctionMaps.UnitDiskMap
— TypeThe map r*[cos(2πt), sin(2πt)]
from [0,1]^2
to the unit disk in ℝ^2
.
FunctionMaps.VcatMap
— TypeA VcatMap
is a product map with domain and codomain vectors concatenated (vcat
) into a single vector.
FunctionMaps.VectorAffineMap
— TypeAn affine map with array and vector representation.
FunctionMaps.VectorLinearMap
— TypeA VectorLinearMap
is a linear map y = A*x
using vectors and matrices.
FunctionMaps.VectorProductMap
— TypeA VectorProductMap
is a product map where all components are univariate maps, with inputs and outputs collected into a Vector
.
FunctionMaps.VectorToComplex
— MethodVectorToComplex()
VectorToComplex{T}()
Map a length 2 vector $[a;b]$ to the complex number $a+bi$.
See also: ComplexToVector
.
FunctionMaps.VectorToNumber
— MethodVectorToNumber()
VectorToNumber{T}()
Map a length 1 vector x
to the number x[1]
.
See also: NumberToVector
.
FunctionMaps.VectorToTuple
— TypeMap a static vector to a tuple.
FunctionMaps.VectorTranslation
— TypeTranslation by a vector.
FunctionMaps.WrappedMap
— TypeA WrappedMap{T}
takes any object and turns it into a Map{T}
.