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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2551 - (hide annotations)
Thu Jul 23 09:19:15 2009 UTC (10 years, 2 months ago) by gross
File MIME type: text/plain
File size: 2817 byte(s)
a problem with the sparse matrix unrolling fixed.
1 ksteube 1313
2     /*******************************************************
3 ksteube 1811 *
4 jfenwick 2548 * Copyright (c) 2003-2009 by University of Queensland
5 ksteube 1811 * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 ksteube 1313
14 ksteube 1811
15 ksteube 1313 /**************************************************************/
16    
17     /* Paso: pattern */
18    
19     /**************************************************************/
20    
21     /* Author: gross@access.edu.au */
22    
23     /**************************************************************/
24    
25     #ifndef INC_PASO_PATTERN
26     #define INC_PASO_PATTERN
27    
28     #include "Common.h"
29    
30     /**************************************************************/
31    
32     #define PATTERN_FORMAT_DEFAULT 0
33     #define PATTERN_FORMAT_SYM 1
34     #define PATTERN_FORMAT_OFFSET1 2
35    
36     typedef struct Paso_Pattern {
37     int type;
38     dim_t numOutput;
39     dim_t numInput;
40     dim_t len;
41     index_t* ptr;
42     index_t* index;
43     dim_t reference_counter;
44     } Paso_Pattern;
45    
46 artak 1881 #define INDEXLIST_LENGTH 85
47    
48     typedef struct Paso_IndexList {
49     index_t index[INDEXLIST_LENGTH];
50     dim_t n;
51     struct Paso_IndexList *extension;
52     } Paso_IndexList;
53 ksteube 1313 /* interfaces: */
54    
55 phornby 2071
56     PASO_DLL_API
57 gross 2551 Paso_Pattern* Paso_Pattern_alloc(int type, dim_t numOutput, dim_t numInput, index_t* ptr, index_t* index);
58 phornby 2071
59     PASO_DLL_API
60    
61     PASO_DLL_API
62 ksteube 1313 Paso_Pattern* Paso_Pattern_getReference(Paso_Pattern*);
63 phornby 2071
64     PASO_DLL_API
65 ksteube 1313 void Paso_Pattern_free(Paso_Pattern*);
66 phornby 2071
67     PASO_DLL_API
68 ksteube 1313 int Paso_comparIndex(const void *,const void *);
69 phornby 2071
70     PASO_DLL_API
71 ksteube 1313 Paso_Pattern* Paso_Pattern_unrollBlocks(Paso_Pattern*,int, dim_t,dim_t);
72 phornby 2071
73     PASO_DLL_API
74 ksteube 1313 Paso_Pattern* Paso_Pattern_getSubpattern(Paso_Pattern*,dim_t,dim_t,index_t*,index_t*);
75 phornby 2071
76     PASO_DLL_API
77 ksteube 1313 bool_t Paso_Pattern_isEmpty(Paso_Pattern* in);
78 phornby 2071
79     PASO_DLL_API
80 ksteube 1313 void Paso_Pattern_mis(Paso_Pattern* pattern_p, index_t* mis_marker);
81 phornby 2071
82     PASO_DLL_API
83 ksteube 1313 void Paso_Pattern_reduceBandwidth(Paso_Pattern* self,index_t* oldToNew);
84 phornby 2071
85     PASO_DLL_API
86 gross 1361 void Paso_Pattern_color(Paso_Pattern* patter, index_t* num_colors, index_t* colorOf);
87 artak 1881 Paso_Pattern* Paso_Pattern_multiply(int type, Paso_Pattern* A, Paso_Pattern* B);
88 phornby 2071
89     PASO_DLL_API
90 artak 1881 Paso_Pattern* Paso_Pattern_binop(int type, Paso_Pattern* A, Paso_Pattern* B);
91 ksteube 1313
92 phornby 2071
93     PASO_DLL_API
94 artak 1881 void Paso_IndexList_insertIndex(Paso_IndexList*, index_t);
95 phornby 2071
96     PASO_DLL_API
97 artak 1881 void Paso_IndexList_toArray(Paso_IndexList*, index_t*, index_t, index_t, index_t);
98 phornby 2071
99     PASO_DLL_API
100 artak 1881 dim_t Paso_IndexList_count(Paso_IndexList*, index_t, index_t);
101 phornby 2071
102     PASO_DLL_API
103 artak 1881 void Paso_IndexList_free(Paso_IndexList*);
104 phornby 2071
105     PASO_DLL_API
106 artak 1881 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);
107    
108 ksteube 1313 #endif /* #ifndef INC_PASO_SYSTEMPATTERN */

  ViewVC Help
Powered by ViewVC 1.1.26