muda
Classes | Typedefs | Functions
dense_1d.h File Reference

A C/C++ array like viewer for kernel access, with safe checking on any input. More...

#include <muda/viewer/viewer_base.h>
Include dependency graph for dense_1d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  muda::Dense1DBase< IsConst, T >
 
struct  muda::read_only_viewer< Dense1D< T > >
 
struct  muda::read_write_viewer< CDense1D< T > >
 

Typedefs

template<typename T >
using muda::Dense1D = Dense1DBase< false, T >
 
template<typename T >
using muda::CDense1D = Dense1DBase< true, T >
 

Functions

template<typename T >
MUDA_INLINE MUDA_GENERIC auto muda::make_cdense_1d (const T *data, int dimx) MUDA_NOEXCEPT
 
template<typename T , int N>
MUDA_INLINE MUDA_GENERIC auto muda::make_cdense_1d (const T(&data)[N]) MUDA_NOEXCEPT
 
template<typename T >
MUDA_INLINE MUDA_GENERIC auto muda::make_dense_1d (T *data, int dimx) MUDA_NOEXCEPT
 
template<typename T , int N>
MUDA_INLINE MUDA_GENERIC auto muda::make_dense_1d (T(&data)[N]) MUDA_NOEXCEPT
 

Detailed Description

A C/C++ array like viewer for kernel access, with safe checking on any input.

You can index the element in Dense1D<T> by operator ().

Author
MuGdxy
Date
January 2024