aboutsummaryrefslogtreecommitdiff
path: root/matrix/cumatrix.c
blob: 87ad57be101eab51d0c4df543898fdf7e39ceef5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define MATRIX_DATA_FREE(ptr) free(ptr)
#define MATRIX_DATA_ALLOC(size) malloc(size)
#define MATRIX_DATA_STRIDE(ncol) (sizeof(float) * (ncol))
#define MATRIX_GENERIC
#define nerv_float_matrix_(NAME) nerv_float_matrix_cuda_ ## NAME
#include "generic/matrix.c"

const char *nerv_float_matrix_(tname) = "nerv.FloatCuMatrix";
int nerv_float_matrix_(get_elem)(lua_State *L) {
    return nerv_error_method_not_implemented(L);
}

int nerv_float_matrix_(set_elem)(lua_State *L) {
    return nerv_error_method_not_implemented(L);
}