Esempio n. 1
0
 //! @brief Compute the 1D index of the corresponding coordinates.
 __host__ __device__
 inline int offset(const vector_type& pos) const
 {
   return pos.dot(_strides);
 }
    /*!
     * \brief Compute the dot product of two vectors A \dot B.
     */
    static scalar_type dot( const vector_type& A, const vector_type& B )
    { 
	return B.dot( A );
    }