Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cross product

This function will return the cross product between a1 & a2 in a3.

template <typename T>
inline __host__ __device__ void cross_product(T* a1, T* a2, T* a3)

Parameters

a1

  • Input: vector 1

a2

  • Input: vector 2

a3

  • Output: vector 3