You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of multidimensional array, in order to ensure that the last step will be equal to elemSize(), wrapping data in a GpuMatND::GpuMatND(data, SizeArray, StepArray) requires StepArray.size() == SizeArray.size()-1. The last step is added internally by setFields()
In my use cases, I often have to create a temporary StepArray from an existing one, remove the last step, and feed it to GpuMatND().
It would be more convenient to also support StepArray.size() == SizeArray.size() as long as the last step is valid.
I will submit a PR
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the feature and motivation
In the case of multidimensional array, in order to ensure that the last step will be equal to
elemSize()
, wrapping data in aGpuMatND::GpuMatND(data, SizeArray, StepArray)
requiresStepArray.size() == SizeArray.size()-1
. The last step is added internally bysetFields()
In my use cases, I often have to create a temporary
StepArray
from an existing one, remove the last step, and feed it toGpuMatND()
.It would be more convenient to also support
StepArray.size() == SizeArray.size()
as long as the last step is valid.I will submit a PR
Additional context
No response
The text was updated successfully, but these errors were encountered: