Portability | non-portable (GHC extensions) |
---|---|

Stability | provisional |

Maintainer | nilsson@cs.yale.edu |

Safe Haskell | Safe-Infered |

Vector space type relation and basic instances.

# Documentation

class (Eq a, Floating a) => VectorSpace v a | v -> a whereSource

zeroVector :: vSource

negateVector :: v -> vSource

VectorSpace Double Double | |

VectorSpace Float Float | |

RealFloat a => VectorSpace (Vector2 a) a | |

RealFloat a => VectorSpace (Vector3 a) a | |

(Eq a, Floating a) => VectorSpace (a, a) a | |

(Eq a, Floating a) => VectorSpace (a, a, a) a | |

(Eq a, Floating a) => VectorSpace (a, a, a, a) a | |

(Eq a, Floating a) => VectorSpace (a, a, a, a, a) a |