Copy the entire target array to the source array.
It will check if the shapes and sizes match.
This very efficient copy function can only be called by the static set
function in the SourceType when the TargetType array can directly be
copied to the SourceType array.
See
RetypedArrayEngine for
more information.
Copy the entire source array to the target array.
It will check if the shapes and sizes match.
This very efficient copy function can only be called by the static set
function in the SourceType when the TargetType array can directly be
copied to the SourceType array.
See
RetypedArrayEngine for
more information.
Fill an array with SourceType objects from the target array.
This is called when the target is incomplete.
The shape and extra argument can help to set the correct
elements in the source.
It loops through all elements in the SourceType array and
calls the SourceType function
It calls the SourceType function
void setElem (const TargetType* data, const IPosition& shape, const void* extraArgument);for each element.
This retypedArrayEngineSet function is only a convenience function. For optimal performance it may be needed to handcode the loop instead of using this function.
Fill an array with TargetType objects from the source array.
This is called when the target is incomplete.
The shape and extra argument can help to get the correct
elements from the source.
It loops through all elements in the SourceType array and
calls the SourceType function
void getElem (TargetType* data, const IPosition& shape, const void* extraArgument);for each element.
This retypedArrayEngineGet function is only a convenience function. For optimal performance it may be needed to handcode the loop instead of using this function.