Т.е. у меня есть свои классы, с перегруженными операторами, хочу скормить их cuBLAS-у. Это возможно, или ручками писать для кастомных алгебр придется?
1.1. Data layout
For maximum compatibility with existing Fortran environments, the cuBLAS library uses column-major storage, and 1-based indexing. Since C and C++ use row-major storage, applications written in these languages can not use the native array semantics for two-dimensional arrays. Instead, macros or inline functions should be defined to implement matrices on top of one-dimensional arrays. For Fortran code ported to C in mechanical fashion, one may chose to retain 1-based indexing to avoid the need to transform loops. In this case, the array index of a matrix element in row “i” and column “j” can be computed via the following macro
Я не работал, но ей , как видно, надо матрицы в сыром виде передавать.
Причём , в формате Фортрана (но это не важно).
Так что тебе никакие перегрузки не помогут, видимо.