Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any built-in type of matrix in CUDA for matrix and matrix-vector operation?

I want to implement some matrix–vector math. There are vector types like: float2, int2, but I cannot find any built-in type matrix in CUDA.

Is there a library that suitable for such operations?

like image 341
jalal sadeghi Avatar asked Jan 26 '26 12:01

jalal sadeghi


1 Answers

You're right to look for a library for matrix data types. I recommend taking a look at ArrayFire.

Here is the quick reference page with a listing of the supported types. Here are the functions you can run with is, which is organized into the categories of data analysis, linear algebra, image and signal processing, sparse matrices, and a bunch of common place algorithms for data indexing, sorting, reductions, visualization, and faster for loops.

Other libraries include CULA or MAGMA (focused on linear algebra), Thrust (targeted at 1D operations), and a host of niche academic libraries.

Disclaimer: I work on ArrayFire myself.

like image 114
arrayfire Avatar answered Jan 29 '26 02:01

arrayfire