Skip to content

kuwerty/cudavecops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

CUDA Vector Operators
=====================

Sometimes you just want to do basic operations on CUDA's builtin vector types.

This is a header file providing basic operator overloads for builtin vectors. It allows you to write expression such as:

float4 a ...
float4 b ...
float4 c = a * b

The operands can be be a mix of vector or scalar quantities.

It's similar to what you'd get from OpenCL.

The header file is generated from a Ruby script, don't modify the header directly.


TODO:
 - Math functions (sin,cos etc)
 - Some tests
 

About

Useful operator overloads for CUDA vectors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published