Add documentation
This commit is contained in:
parent
11d771b926
commit
59af31cdd7
10 changed files with 188 additions and 37 deletions
|
|
@ -15,10 +15,12 @@ Scalar : Type -> Type
|
|||
Scalar = Array []
|
||||
|
||||
|
||||
||| Convert a value to a scalar.
|
||||
export
|
||||
scalar : a -> Scalar a
|
||||
scalar x = fromVect _ [x]
|
||||
|
||||
||| Unwrap the single value from a scalar.
|
||||
export
|
||||
unwrap : Scalar a -> a
|
||||
unwrap = index 0 . getPrim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue