Home My Page Projects Code Snippets Project Openings diderot
 Summary Activity Tracker Tasks SCM

# SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/gen/ir/mid-ir.spec
 [diderot] / branches / vis15 / src / compiler / gen / ir / mid-ir.spec

# Diff of /branches/vis15/src/compiler/gen/ir/mid-ir.spec

revision 3866, Mon May 16 16:48:13 2016 UTC revision 4349, Tue Aug 2 18:14:48 2016 UTC
# Line 27  Line 27
27  Abs : ty : 1 : 1 :  Abs : ty : 1 : 1 :
28  Max : ty : 1 : 2 :  Max : ty : 1 : 2 :
29  Min : ty : 1 : 2 :  Min : ty : 1 : 2 :
30  # Clamp<ty>(lo, hi, x) -- clamps x to the range lo..hi, where lo and hi are scalars and x  # Clamp<ty>(lo, hi, x) -- clamps tensor x to the range lo..hi, where lo and hi are scalars and x
31  # has type ty  # has type ty
32  Clamp : ty : 1 : 3 : clamp argument to range  Clamp : ty : 1 : 3 : clamp argument to range
33  # MapClamp<ty>(lo, hi, x) -- clamps x[alpha] to the range lo[alpha]..hi[alpha], where  # MapClamp<ty>(lo, hi, x) -- clamps x[alpha] to the range lo[alpha]..hi[alpha], where
# Line 43  Line 43
43  #  #
44  ### matrix operations  ### matrix operations
45  #  #
46  EigenVecs2x2 : : 1 : 1 : Eigen vectors and values for 2x2 matrix  EigenVecs2x2 : : 2 : 1 : Eigen vectors and values for 2x2 matrix
47  EigenVecs3x3 : : 1 : 1 : Eigen vectors and values for 3x3 matrix  EigenVecs3x3 : : 2 : 1 : Eigen vectors and values for 3x3 matrix
48  EigenVals2x2 : : 1 : 1 : Eigen values for 2x2 matrix  EigenVals2x2 : : 1 : 1 : Eigen values for 2x2 matrix
49  EigenVals3x3 : : 1 : 1 : Eigen values for 3x3 matrix  EigenVals3x3 : : 1 : 1 : Eigen values for 3x3 matrix
50  # Zero<ty>() -- zero tensor  # Zero<ty>() -- zero tensor
# Line 69  Line 69
69  # Length<ty> -- return the length of a sequence with type ty[]  # Length<ty> -- return the length of a sequence with type ty[]
70  Length : ty : 1 : 1 : return the length of a dynamic sequence  Length : ty : 1 : 1 : return the length of a dynamic sequence
71  #  #
72  # SphereQuery<posType,seqTy>(??)  # SphereQuery<dim,seqTy>(pos, radius)
73  SphereQuery : ty * ty : 1 : 2 : find strands within a sphere  SphereQuery : int * ty : 1 : 2 : find strands within a sphere
74  #  #
75  # compute integral parts of reals  # compute integral parts of reals
76  Ceiling : int : 1 : 1 : compute real ceiling of a vector  Ceiling : int : 1 : 1 : compute real ceiling of a vector
# Line 82  Line 82
82  IntToReal : : 1 : 1 :  IntToReal : : 1 : 1 :
83  RealToInt : int : 1 : 1 : cast reals to ints and vectors to int sequences  RealToInt : int : 1 : 1 : cast reals to ints and vectors to int sequences
84  #  #
85  # reduction operations  ### Strand operations
86  R_All      : ty : 1 : 3 :  #
87  R_Exists   : ty : 1 : 3 :  # StrandStatus<ty,S>(s) -- test if the strand s is in the strand set S
88  R_Max      : ty : 1 : 3 :  StrandStatus : ty * StrandSets.t : 1 : 1 : Test the status of a strand
R_Min      : ty : 1 : 3 :
R_Sum      : ty : 1 : 3 :
R_Product  : ty : 1 : 3 :
R_Mean     : ty : 1 : 3 :
R_Variance : ty : 1 : 4 :
89  #  #
90  ### image/kernel operations  ### image/kernel operations
91  #  #
# Line 98  Line 93
93  BuildPos : int : 1 : 1 : compute vector of kernel arguments  BuildPos : int : 1 : 1 : compute vector of kernel arguments
94  #  #
95  # EvalKernel<d,h,k>(u) -- computes h^(k)(u_i) for 1<i<d, where d is the size of vector u.  # EvalKernel<d,h,k>(u) -- computes h^(k)(u_i) for 1<i<d, where d is the size of vector u.
96  EvalKernel : int * Kernel.kernel * int : 1 : 1 : evaluate a kernel function application  EvalKernel : int * Kernel.t * int : 1 : 1 : evaluate a kernel function application
97  #  #
98  # Kernel<h,k>() -- represents the k'th derivative of the kernel h.  # Kernel<h,k>() -- represents the k'th derivative of the kernel h.
99  Kernel    : Kernel.kernel * int  : 1 : 0 :  Kernel    : Kernel.t * int  : 1 : 0 :
100  #  #
101  Transform  : ImageInfo.info : 1 : 1 : Pulls transformation matrix from image.  Transform  : ImageInfo.info : 1 : 1 : Pulls transformation matrix from image.
102  Translate  : ImageInfo.info : 1 : 1 : Pulls translation vector from image.  Translate  : ImageInfo.info : 1 : 1 : Pulls translation vector from image.
# Line 117  Line 112
112  # index control to deal with out-of-bounds indices.  # index control to deal with out-of-bounds indices.
113  LoadVoxelsWithCtl : ImageInfo.info * int * idxctl : 1 : 2 : load a cube of voxels  LoadVoxelsWithCtl : ImageInfo.info * int * idxctl : 1 : 2 : load a cube of voxels
114  #  #
115  # Inside<I,s>(n,V) -- tests to see if the index sequence n is inside the domain of V.  # Inside<I,s>(x,V) -- tests to see if the image-space position x is inside the domain of V.
116  # I is the image info for V, s is the size of the sample to be loaded (see LoadVoxels)  # I is the image info for V, s is the size of the sample to be loaded (see LoadVoxels)
117  Inside : ImageInfo.info * int : 1 : 2 :  Inside : ImageInfo.info * int : 1 : 2 :
118  #  #
119    # IndexInside<I,s>(n,V) -- tests to see if the index sequence n is inside the domain of V.
120    # I is the image info for V, s is the size of the sample to be loaded (see LoadVoxels)
121    IndexInside : ImageInfo.info * int : 1 : 2 :
122    #
123  # ImageDim<I,i>(V) -- returns the i'th dimension of the image  # ImageDim<I,i>(V) -- returns the i'th dimension of the image
124  ImageDim : ImageInfo.info * int : 1 : 1 :  ImageDim : ImageInfo.info * int : 1 : 1 :
125  #  #

Legend:
 Removed from v.3866 changed lines Added in v.4349

 root@smlnj-gforge.cs.uchicago.edu ViewVC Help Powered by ViewVC 1.0.0