Introduce homogeneous coordinates
This commit is contained in:
parent
acd0cb6aa5
commit
4b293d7e2a
5 changed files with 69 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ Matrix' : Nat -> Type -> Type
|
|||
Matrix' n = Matrix n n
|
||||
|
||||
|
||||
export
|
||||
withDims : {0 m',n' : Nat} -> {0 b : Nat -> Nat -> Type} -> Matrix m' n' a -> ((m,n : Nat) -> Matrix m n a -> b m n) -> b m' n'
|
||||
withDims mat f = rewrite shapeEq mat in f (head $ shape mat) (index 1 $ shape mat) (rewrite sym (shapeEq mat) in mat)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Matrix constructors
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue