goal-geometry-0.1: Scientific computing on geometric objects

Safe HaskellNone
LanguageHaskell2010

Goal.Geometry.Set

Contents

Description

A module for describing Sets of Elements. Necessary in a few cases (such as discrete sets) that Manifolds don't handle well.

Synopsis

Sets

class (Eq s, Eq (Element s)) => Set s Source

Sets are collections of distinguishable Elements.

Associated Types

type Element s :: * Source

class Set s => Discrete s where Source

A Discrete Set is one where we can list its elements. The returned list should satisfy the law

elements s = nub $ elements s

Methods

elements :: s -> [Element s] Source

Instances

Discrete

Continuous

type Coordinates = Vector Double Source

Elements of Euclidean spaces are referred to as Coordinates.

Combinators

Replicated

data Replicated m Source

A Replicated set is a single set multiplied a specified number of times via the Cartesian product.

Constructors

Replicated !m !Int