File: restructure.h

package info (click to toggle)
libminc 2.4.07-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,288 kB
  • sloc: ansic: 57,268; cpp: 3,654; sh: 100; makefile: 23; ruby: 18
file content (18 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * \file restructure.h
 * \brief Just declares the prototype of restructure_array().
 */
#ifndef MINC_RESTRUCTURE_H
#define MINC_RESTRUCTURE_H

/** Reorganize data in a multidimensional array "in place".
 *  Uses temporary buffer of nelem/8 bytes
 */
void restructure_array(size_t ndims,
                      unsigned char *array, 
                      const size_t *lengths_perm,
                      size_t el_size,
                      const int *map,
                      const int *dir);

#endif /*MINC_RESTRUCTURE_H*/