linearmap-category-0.5.0.1: Native, complete, matrix-free linear algebra.
Copyright(c) Justus Sagemüller 2022
LicenseGPL v3
Maintainer(@) jsag $ hvl.no
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.LinearMap.Coercion

Description

 
Synopsis

Documentation

data VSCCoercion a b where Source #

A coercion that is compatible with the vector space structure of the types. Intended to be used for lossless conversion between newtype wrappers around vector spaces, under the requirement that they internally use the same basis (if any). Note that this does not mean they also need to have the same inner product / dual space.

Constructors

VSCCoercion :: Coercible a b => VSCCoercion a b 

Instances

Instances details
Category VSCCoercion Source # 
Instance details

Defined in Math.LinearMap.Category.Class

Associated Types

type Object VSCCoercion o #

Methods

id :: forall (a :: κ). Object VSCCoercion a => VSCCoercion a a #

(.) :: forall (a :: κ) (b :: κ) (c :: κ). (Object VSCCoercion a, Object VSCCoercion b, Object VSCCoercion c) => VSCCoercion b c -> VSCCoercion a b -> VSCCoercion a c #

EnhancedCat (Coercion :: Type -> Type -> Type) VSCCoercion Source # 
Instance details

Defined in Math.LinearMap.Category.Class

EnhancedCat (LinearFunction s) VSCCoercion Source # 
Instance details

Defined in Math.LinearMap.Category.Class

EnhancedCat (->) VSCCoercion Source # 
Instance details

Defined in Math.LinearMap.Category.Class

Methods

arr :: (Object VSCCoercion b, Object VSCCoercion c, Object (->) b, Object (->) c) => VSCCoercion b c -> b -> c #

(LinearSpace v, Scalar v ~ s) => Functor (LinearMap s v) VSCCoercion VSCCoercion Source # 
Instance details

Defined in Math.LinearMap.Category.Class

(TensorSpace v, Scalar v ~ s) => Functor (Tensor s v) VSCCoercion VSCCoercion Source # 
Instance details

Defined in Math.LinearMap.Category.Class

type Object VSCCoercion (o :: Type) Source # 
Instance details

Defined in Math.LinearMap.Category.Class

type Object VSCCoercion (o :: Type) = ()