Skip to content

Commit

Permalink
Organize and name constructor fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fbie committed Jun 15, 2017
1 parent 3c68d74 commit 6296fd7
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions QuadRope/Types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,28 @@ type 'a ArraySlice when 'a : equality =
type 'a QuadRope when 'a : equality =
internal
| Empty
| Leaf of 'a ArraySlice
| HCat of bool * int * int * int * 'a QuadRope * 'a QuadRope // rows a = rows b
| VCat of bool * int * int * int * 'a QuadRope * 'a QuadRope // cols a = cols b
| Slice of int * int * int * int * 'a QuadRope
| Sparse of int * int * 'a
| Leaf of vs : 'a ArraySlice

| HCat of sparse : bool
* depth : int
* rows : int // rows a = rows b
* cols : int
* left : 'a QuadRope
* right : 'a QuadRope

| VCat of sparse : bool
* depth : int
* rows : int
* cols : int // cols a = cols b
* left : 'a QuadRope
* right : 'a QuadRope

| Slice of rowOff : int
* colOff : int
* rows : int
* cols : int
* qr : 'a QuadRope

| Sparse of rows : int
* cols : int
* v : 'a

0 comments on commit 6296fd7

Please sign in to comment.