AC-Vector-2.3.2: Efficient geometric vectors and transformations.

Safe HaskellNone

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

v1x :: Scalar