identity -package:pdf-toolbox-content

The identity matrix for any dimension vector.
>>> identity :: M44 Int
V4 (V4 1 0 0 0) (V4 0 1 0 0) (V4 0 0 1 0) (V4 0 0 0 1)

>>> identity :: V3 (V3 Int)
V3 (V3 1 0 0) (V3 0 1 0) (V3 0 0 1)
The identity function, returns the give value unchanged.
Renamed version of id.
>>> identity 10
10
>>> fmap identity [1,2,3]
[1,2,3]
Copied from Graphics.Rendering.Cairo.Matrix
O(rows*cols). Identity matrix of the given order.
identity n =
n
1 ( 1 0 ... 0 0 )
2 ( 0 1 ... 0 0 )
(     ...     )
( 0 0 ... 1 0 )
n ( 0 0 ... 0 1 )
identity ((*) :: Int -> Int -> Int) 1
identity ((+) :: Int -> Int -> Int) 0
Identity: identity = arr id Using identity is preferred over lifting id, since the arrow combinators know how to optimise certain networks based on the transformations being applied.
identity ((*) :: Int -> Int -> Int) 1
identity ((+) :: Int -> Int -> Int) 0
Identity unfold. The unfold generates a singleton stream having the input as the only element.
identity = function Prelude.id
Pre-release
Deprecated: Use isIdentity.
A trivial product type that stores nothing and simply returns the given tag as the result.
A unique integer ID associated with each interned set.
Identity matrix
Convert the Identity functor.
>>> Matrix.identity (Shape.ZeroBased 0) :: Matrix.Square (Shape.ZeroBased Int) Real_
StorableArray.fromList (ZeroBased {... 0},ZeroBased {... 0}) []

>>> Matrix.identity (Shape.ZeroBased 3) :: Matrix.Square (Shape.ZeroBased Int) Real_
StorableArray.fromList (ZeroBased {... 3},ZeroBased {... 3}) [1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0]
Constructs the identity relation <math>.
The identity trie.
apply identity = id
O(rows*cols). Identity matrix
identitiy @n =
( 1 0 0 ... 0 0 )
( 0 1 0 ... 0 0 )
(       ...     )
( 0 0 0 ... 1 0 )
( 0 0 0 ... 0 1 )