/[escript]/trunk/ripley/src/domainhelpers.h
ViewVC logotype

Contents of /trunk/ripley/src/domainhelpers.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4738 - (show annotations)
Wed Mar 12 01:32:36 2014 UTC (5 years, 1 month ago) by sshaw
File MIME type: text/plain
File size: 677 byte(s)
adding support for reading binary grids from gzip compressed binary files, ripley brick only so far
1 #ifndef _DOMAINHELPERS_H_
2 #define _DOMAINHELPERS_H_
3
4 #include <vector>
5 #include <ripley/Ripley.h>
6
7 /**
8 factorises 'product' and inserts the factors into the vector 'factors'
9 in order of smallest to largest
10 */
11 void factorise(std::vector<int>& factors, int product);
12
13 /**
14 sets va[a] = b and vb[b] = a, used in constructing CSC and CSR matrix
15 formats simultaneously
16 */
17 void doublyLink(std::vector<ripley::IndexVector>& va,
18 std::vector<ripley::IndexVector>& vb, int a, int b);
19
20 #ifdef USE_BOOSTIO
21 /**
22 converts the given gzip compressed char vector unto an uncompressed form
23 */
24 std::vector<char> unzip(const std::vector<char> compressed);
25 #endif
26 #endif

  ViewVC Help
Powered by ViewVC 1.1.26