Tensor-1.1.0.1: Tensor data types

Copyright(c) Sven Panne 2014
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Tensor

Description

This package contains tensor data types and their instances for some basic type classes.

Synopsis

Documentation

newtype Vertex1 a Source

A vertex with y=0, z=0 and w=1.

Constructors

Vertex1 a 

data Vertex2 a Source

A vertex with z=0 and w=1.

Constructors

Vertex2 !a !a 

data Vertex3 a Source

A vertex with w=1.

Constructors

Vertex3 !a !a !a 

data Vertex4 a Source

A fully-fledged four-dimensional vertex.

Constructors

Vertex4 !a !a !a !a 

newtype Vector1 a Source

A one-dimensional vector.

Constructors

Vector1 a 

data Vector2 a Source

A two-dimensional vector.

Constructors

Vector2 !a !a 

data Vector3 a Source

A three-dimensional vector.

Constructors

Vector3 !a !a !a 

data Vector4 a Source

A four-dimensional vector.

Constructors

Vector4 !a !a !a !a