Advanced Multi-Physics (AMP)
On-Line Documentation
Static Public Member Functions | List of all members
AMP::Utilities::copyCast_< T1, T2, Backend, MemoryType > Struct Template Reference

#include <CopyCastHelper.h>

Static Public Member Functions

static void apply (const size_t, const T1 *, T2 *)
 

Detailed Description

template<typename T1, typename T2, AMP::Utilities::Backend, class MemoryType>
struct AMP::Utilities::copyCast_< T1, T2, Backend, MemoryType >

Helper function to copy and cast (single<->double precision) values between two arrays

Parameters
[in]vec_inThe incoming vector to get the values from
[in,out]vec_outThe outgoing vector to with the up/down-casted values from vec_in It is assumed that vec_out is properly allocated
[in]lenLength of above vectors

Definition at line 20 of file CopyCastHelper.h.

Member Function Documentation

◆ apply()

template<typename T1 , typename T2 , AMP::Utilities::Backend , class MemoryType >
static void AMP::Utilities::copyCast_< T1, T2, Backend, MemoryType >::apply ( const size_t  ,
const T1 *  ,
T2 *   
)
inlinestatic

Definition at line 21 of file CopyCastHelper.h.

References AMP_ERROR.


The documentation for this struct was generated from the following file:



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:45.
Comments on this page