/[escript]/trunk/paso/src/Pattern.h
ViewVC logotype

Diff of /trunk/paso/src/Pattern.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1361 by gross, Fri Dec 14 09:26:51 2007 UTC revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC
# Line 1  Line 1 
1    
 /* $Id: Pattern.h 1306 2007-09-18 05:51:09Z ksteube $ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2009 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  /**************************************************************/  /**************************************************************/
16    
# Line 48  typedef struct Paso_Pattern { Line 47  typedef struct Paso_Pattern {
47    dim_t reference_counter;    dim_t reference_counter;
48  } Paso_Pattern;  } Paso_Pattern;
49    
50    #define INDEXLIST_LENGTH 85
51    
52    typedef struct Paso_IndexList {
53      index_t index[INDEXLIST_LENGTH];
54      dim_t n;
55      struct Paso_IndexList *extension;
56    } Paso_IndexList;
57  /*  interfaces: */  /*  interfaces: */
58    
59  Paso_Pattern* Paso_Pattern_alloc(int type, dim_t input_block_size, dim_t output_block_size, dim_t numOutput, index_t* ptr, index_t* index);  
60    PASO_DLL_API
61    Paso_Pattern* Paso_Pattern_alloc(int type, dim_t input_block_size, dim_t output_block_size, dim_t numOutput, dim_t numInput, index_t* ptr, index_t* index);
62    
63    PASO_DLL_API
64    
65    PASO_DLL_API
66  Paso_Pattern* Paso_Pattern_getReference(Paso_Pattern*);  Paso_Pattern* Paso_Pattern_getReference(Paso_Pattern*);
67    
68    PASO_DLL_API
69  void Paso_Pattern_free(Paso_Pattern*);  void Paso_Pattern_free(Paso_Pattern*);
70    
71    PASO_DLL_API
72  int Paso_comparIndex(const void *,const void *);  int Paso_comparIndex(const void *,const void *);
73    
74    PASO_DLL_API
75  Paso_Pattern* Paso_Pattern_unrollBlocks(Paso_Pattern*,int, dim_t,dim_t);  Paso_Pattern* Paso_Pattern_unrollBlocks(Paso_Pattern*,int, dim_t,dim_t);
76    
77    PASO_DLL_API
78  Paso_Pattern* Paso_Pattern_getSubpattern(Paso_Pattern*,dim_t,dim_t,index_t*,index_t*);  Paso_Pattern* Paso_Pattern_getSubpattern(Paso_Pattern*,dim_t,dim_t,index_t*,index_t*);
79    
80    PASO_DLL_API
81  bool_t Paso_Pattern_isEmpty(Paso_Pattern* in);  bool_t Paso_Pattern_isEmpty(Paso_Pattern* in);
82    
83    PASO_DLL_API
84  void Paso_Pattern_mis(Paso_Pattern* pattern_p, index_t* mis_marker);  void Paso_Pattern_mis(Paso_Pattern* pattern_p, index_t* mis_marker);
85    
86    PASO_DLL_API
87  void Paso_Pattern_reduceBandwidth(Paso_Pattern* self,index_t* oldToNew);  void Paso_Pattern_reduceBandwidth(Paso_Pattern* self,index_t* oldToNew);
88    
89    PASO_DLL_API
90  void Paso_Pattern_color(Paso_Pattern* patter, index_t* num_colors, index_t* colorOf);  void Paso_Pattern_color(Paso_Pattern* patter, index_t* num_colors, index_t* colorOf);
91    Paso_Pattern* Paso_Pattern_multiply(int type, Paso_Pattern* A, Paso_Pattern* B);
92    
93    PASO_DLL_API
94    Paso_Pattern* Paso_Pattern_binop(int type, Paso_Pattern* A, Paso_Pattern* B);
95    
96    
97    PASO_DLL_API
98    void Paso_IndexList_insertIndex(Paso_IndexList*, index_t);
99    
100    PASO_DLL_API
101    void Paso_IndexList_toArray(Paso_IndexList*, index_t*, index_t, index_t, index_t);
102    
103    PASO_DLL_API
104    dim_t Paso_IndexList_count(Paso_IndexList*,  index_t, index_t);
105    
106    PASO_DLL_API
107    void Paso_IndexList_free(Paso_IndexList*);
108    
109    PASO_DLL_API
110    Paso_Pattern* Paso_IndexList_createPattern(dim_t n0, dim_t n,Paso_IndexList* index_list,index_t range_min,index_t range_max, index_t index_offset);
111    
112  #endif /* #ifndef INC_PASO_SYSTEMPATTERN */  #endif /* #ifndef INC_PASO_SYSTEMPATTERN */

Legend:
Removed from v.1361  
changed lines
  Added in v.2548

  ViewVC Help
Powered by ViewVC 1.1.26