Home My Page Projects Code Snippets Project Openings diderot

# 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 3582, Wed Jan 13 22:14:05 2016 UTC revision 3732, Thu Apr 7 20:56:16 2016 UTC
# Line 32  Line 32
32  #  #
33  ### vector operations  ### vector operations
34  #  #
PrincipleEvec : ty : 1 : 2 : principle eigenvector; ty is result vector type
35  EigenVecs2x2 : : 1 : 1 : Eigen vectors and values for 2x2 matrix  EigenVecs2x2 : : 1 : 1 : Eigen vectors and values for 2x2 matrix
36  EigenVecs3x3 : : 1 : 1 : Eigen vectors and values for 3x3 matrix  EigenVecs3x3 : : 1 : 1 : Eigen vectors and values for 3x3 matrix
37  EigenVals2x2 : : 1 : 1 : Eigen values for 2x2 matrix  EigenVals2x2 : : 1 : 1 : Eigen values for 2x2 matrix
# Line 62  Line 61
61  Length : ty : 1 : 1 : return the length of a dynamic sequence  Length : ty : 1 : 1 : return the length of a dynamic sequence
62  #  #
63  # SphereQuery<posType,seqTy>(??)  # SphereQuery<posType,seqTy>(??)
64  SphereQuery : ty * ty : 1 : 2 : find strands within  SphereQuery : ty * ty : 1 : 2 : find strands within a sphere
65  #  #
66  # compute integral parts of reals  # compute integral parts of reals
67  Ceiling : int : 1 : 1 : compute real ceiling of a vector  Ceiling : int : 1 : 1 : compute real ceiling of a vector
# Line 86  Line 85
85  #  #
86  ### image/kernel operations  ### image/kernel operations
87  #  #
88  Kernel     : Kernel.kernel * int  : 1 : 0 : Kernel<h, k>, where h is the kernel and k is level of differentiation  # BuildPos<s>(x) -- builds a vector of 2s kernel arguments at positions [x-s, .., x+(s-1)]
89    BuildPos : int : 1 : 1 : compute vector of kernel arguments
90    #
91    # EvalKernel<d,h,k>(u) -- computes h^(k)(u_i) for 1<i<d, where d is the size of vector u.
92    EvalKernel : int * Kernel.kernel * int : 1 : 1 : evaluate a kernel function application
93    #
94    # Kernel<h,k>() -- represents the k'th derivative of the kernel h.
95    Kernel    : Kernel.kernel * int  : 1 : 0 :
96    #
97  Transform  : ImageInfo.info : 1 : 1 : Pulls transformation matrix from image.  Transform  : ImageInfo.info : 1 : 1 : Pulls transformation matrix from image.
98  Translate  : ImageInfo.info : 1 : 1 : Pulls translation vector from image.  Translate  : ImageInfo.info : 1 : 1 : Pulls translation vector from image.
99  #  #
# EvalKernel<i,h,k>(u) -- computes (D^k h)(u), where i is the size of vector u.
EvalKernel : int * Kernel.kernel * int : 1 : 1 : apply a kernel function to a scalar or vector of arguments
#
100  # VoxelAddress<I,offset>(V, i, j, ...) -- compute the address of the voxel data indexed by i, j, ...  # VoxelAddress<I,offset>(V, i, j, ...) -- compute the address of the voxel data indexed by i, j, ...
101  # for non-scalar images, the offset specifies which sample and I specifies the stride.  # for non-scalar images, the offset specifies which plane when the image has tensor values
102    # and the image info I specifies the stride.
103  VoxelAddress : ImageInfo.info * int : 1 : * : compute the address of a voxel  VoxelAddress : ImageInfo.info * int : 1 : * : compute the address of a voxel
104  #  #
105  # VoxelAddressWithCtl<I,offset,ctl>(V, i, j, ...) -- compute the address of the voxel  # VoxelAddressWithCtl<I,offset,ctl>(V, i, j, ...) -- compute the address of the voxel
# Line 112  Line 117
117  # ImageDim<I,i>(V) -- returns the i'th dimension of the image  # ImageDim<I,i>(V) -- returns the i'th dimension of the image
118  ImageDim : ImageInfo.info * int : 1 : 1 :  ImageDim : ImageInfo.info * int : 1 : 1 :
119  #  #
120    # BorderCtlDefault<I>(V,t) -- wrap the image V with the border control that returns a default value t
121    BorderCtlDefault : ImageInfo.info : 1 : 2 :
122    # BorderCtlClamp<I>(V) -- wrap the image V with the border control that clamps the index
123    BorderCtlClamp : ImageInfo.info : 1 : 1 :
124    # BorderCtlMirror<I>(V) -- wrap the image V with the border control that mirrors the index
125    BorderCtlMirror : ImageInfo.info : 1 : 1 :
126    # BorderCtlWrap<I>(V) -- wrap the image V with the border control that wraps the index
127    BorderCtlWrap : ImageInfo.info : 1 : 1 :
128    #