AC-Vector-2.4.0: Efficient geometric vectors and transformations.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Vector.V1

Description

1-dimensional vectors with vector arithmetic.

This isn't especially useful. Usually if you want to calculate with scalars, you can just use the Scalar type directly. However, this module provides a Vector1 newtype over Scalar that allows a scalar to be treated as a sort of vector, which is very occasionally useful.

Synopsis

Documentation

newtype Vector1 Source #

The type of 1D vectors.

Owing to its particularly simple structure, this type has more class instances than 'propper' vectors have. Still, for the most part you'll probably want to just use Scalar itself directly.

Constructors

Vector1 

Fields

Instances

Instances details
BasicVector Vector1 Source # 
Instance details

Defined in Data.Vector.V1

Vector Vector1 Source # 
Instance details

Defined in Data.Vector.V1

Enum Vector1 Source # 
Instance details

Defined in Data.Vector.V1

Num Vector1 Source # 
Instance details

Defined in Data.Vector.V1

Fractional Vector1 Source # 
Instance details

Defined in Data.Vector.V1

Show Vector1 Source # 
Instance details

Defined in Data.Vector.V1

Eq Vector1 Source # 
Instance details

Defined in Data.Vector.V1

Methods

(==) :: Vector1 -> Vector1 -> Bool #

(/=) :: Vector1 -> Vector1 -> Bool #

Ord Vector1 Source # 
Instance details

Defined in Data.Vector.V1