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}
.