spLib
Loading...
Searching...
No Matches
memory.h
1/*
2 * memory.h
3 */
4
5#ifndef SPLIB_MEMORY_H
6#define SPLIB_MEMORY_H
7
8#include <sp/spMemory.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#ifndef ximatalloc
15#define ximatalloc(row, col) xspIMatAlloc((int)(row), (int)(col))
16#define xsmatalloc(row, col) xspSMatAlloc((int)(row), (int)(col))
17#define xlmatalloc(row, col) xspLMatAlloc((int)(row), (int)(col))
18#define xfmatalloc(row, col) xspFMatAlloc((int)(row), (int)(col))
19#define xdmatalloc(row, col) xspDMatAlloc((int)(row), (int)(col))
20
21#define ximatfree(x, row) xspIMatFree(x, (int)(row))
22#define xsmatfree(x, row) xspSMatFree(x, (int)(row))
23#define xlmatfree(x, row) xspLMatFree(x, (int)(row))
24#define xfmatfree(x, row) xspFMatFree(x, (int)(row))
25#define xdmatfree(x, row) xspDMatFree(x, (int)(row))
26#endif
27
28#ifndef ximatalloc
29#define xcmatalloc(row, col) xspCMatAlloc((int)(row), (int)(col))
30#define xcmatfree(x, row) xspCMatFree(x, (int)(row))
31#define xucmatalloc(row, col) xspUCMatAlloc((int)(row), (int)(col))
32#define xucmatfree(x, row) xspUCMatFree(x, (int)(row))
33#endif
34
35#ifdef __cplusplus
36} /* Close scope of 'extern "C"' declaration */
37#endif
38
39#endif /* SPLIB_MEMORY_H */