-
Type:
Story
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Currently the function typeCastNdArray uses an unused extra parameter to define the type of the output array. Please replace this by explicit specification of the type when calling the function. Note that this will require switching the template order:
template<typename OutType, typename InType>
ndarray::Array<OutType, 1, 1> typeCastNdArray(ndarray::Array<InType, 1, 1> const& arr);
Also provide a specialisation for <float, float> to avoid an unnecessary copy. Note that this will require a check that the input array is not used again; after this check please rename the function to ndArrayConvertArrayType (as a cast leaves the input array unmodified).
- duplicates
-
PIPE2D-237 Replace second argument to typeCastNdArray
-
- Won't Fix
-