NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nc::broadcast Namespace Reference

Functions

template<typename dtypeOut , typename dtypeIn1 , typename dtypeIn2 , typename Function , typename... AdditionalFunctionArgs>
NdArray< dtypeOut > broadcaster (const NdArray< dtypeIn1 > &inArray1, const NdArray< dtypeIn2 > &inArray2, const Function &function, const AdditionalFunctionArgs &&... additionalFunctionArgs)
 
template<typename dtypeIn1 , typename dtypeIn2 , typename Function , typename... AdditionalFunctionArgs>
NdArray< dtypeIn1 > & broadcaster (NdArray< dtypeIn1 > &inArray1, const NdArray< dtypeIn2 > &inArray2, const Function &function, const AdditionalFunctionArgs &&... additionalFunctionArgs)
 

Function Documentation

◆ broadcaster() [1/2]

template<typename dtypeOut , typename dtypeIn1 , typename dtypeIn2 , typename Function , typename... AdditionalFunctionArgs>
NdArray< dtypeOut > nc::broadcast::broadcaster ( const NdArray< dtypeIn1 > &  inArray1,
const NdArray< dtypeIn2 > &  inArray2,
const Function &  function,
const AdditionalFunctionArgs &&...  additionalFunctionArgs 
)

Broadcasting template function

Parameters
function
inArray1
inArray2
additionalFunctionArgs
Returns
NdArray

◆ broadcaster() [2/2]

template<typename dtypeIn1 , typename dtypeIn2 , typename Function , typename... AdditionalFunctionArgs>
NdArray< dtypeIn1 > & nc::broadcast::broadcaster ( NdArray< dtypeIn1 > &  inArray1,
const NdArray< dtypeIn2 > &  inArray2,
const Function &  function,
const AdditionalFunctionArgs &&...  additionalFunctionArgs 
)

Broadcasting template function for in-place operations

Parameters
function
inArray1
inArray2
additionalFunctionArgs
Returns
NdArray