cavargas10's picture
Upload 288 files
178f950 verified
raw
history blame contribute delete
843 Bytes
#pragma once
/**
* Hilbert encode 3D points
*
* @param x [N] tensor containing the x coordinates
* @param y [N] tensor containing the y coordinates
* @param z [N] tensor containing the z coordinates
*
* @return [N] tensor containing the z-order encoded values
*/
__global__ void hilbert_encode_cuda(
size_t N,
const uint32_t* x,
const uint32_t* y,
const uint32_t* z,
uint32_t* codes
);
/**
* Hilbert decode 3D points
*
* @param codes [N] tensor containing the z-order encoded values
* @param x [N] tensor containing the x coordinates
* @param y [N] tensor containing the y coordinates
* @param z [N] tensor containing the z coordinates
*/
__global__ void hilbert_decode_cuda(
size_t N,
const uint32_t* codes,
uint32_t* x,
uint32_t* y,
uint32_t* z
);