Here are two scenarios I'm unsure how to handle when it comes to constructing class property validations with GPU types.
Types (:,1) int8
Index (:,1) gpuArray
Grids (:,1) gpuArray
What happens is that default values are instantiated but with incorrect types (e.g. usually a null gpuArray is of type double) and errors are thrown. I obviously could set default values with the correct types but then I need to manage within the functions the types, instead of letting the classdef manage the property types itself.
Is there a smarter way of letting MATLAB know the allowed types in these properties without defining a plethora of static methods to assert the conditions are met?