Class MPSNDArrayMultiaryBase

    • Constructor Detail

      • MPSNDArrayMultiaryBase

        protected MPSNDArrayMultiaryBase​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static MPSNDArrayMultiaryBase allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZoneDevice

        @NotNull
        public @NotNull MPSNDArrayMultiaryBase copyWithZoneDevice​(@Nullable
                                                                  @Nullable org.moe.natj.general.ptr.VoidPtr zone,
                                                                  @Nullable
                                                                  @Nullable MTLDevice device)
        Create a copy with
        Overrides:
        copyWithZoneDevice in class MPSKernel
        Parameters:
        zone - The NSZone in which to allocate the MPSNDArrayMultiaryKernel object
        device - The device on which the new kernel will run. Pass nil for same device.
        Returns:
        A valid MPSNDArrayMultiaryKernel, or nil if allocation failure.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • destinationArrayAllocator

        @NotNull
        public @NotNull MPSNDArrayAllocator destinationArrayAllocator()
        Method to allocate the result image for -encodeToCommandBuffer:sourceImage: Default: MPSTemporaryImage.defaultAllocator
      • destinationArrayDescriptorForSourceArraysSourceState

        @NotNull
        public @NotNull MPSNDArrayDescriptor destinationArrayDescriptorForSourceArraysSourceState​(@NotNull
                                                                                                  @NotNull NSArray<? extends MPSNDArray> sources,
                                                                                                  @Nullable
                                                                                                  @Nullable MPSState state)
        Return a descriptor suitable for allocating a NSArray to receive the result The object properties (kernelSize, offsets, edgeMode, etc.) should be properly configured as if the -encode call was about to be made, before this method is called. Those properties may affect the results.
        Parameters:
        sources - The list of sources passed into the -encode call
        state - The source state object, if any passed to the -encode call
        Returns:
        a valid MPSNDArrayDescriptor that may be used to create a MPSNDArray to used to hold the results of this kernel.
      • dilationRatesForSourceIndex

        @Deprecated
        public MPSNDArraySizes dilationRatesForSourceIndex​(long sourceIndex)
        Deprecated.
        Get the kernel dilation rate for each dimension
        Parameters:
        sourceIndex - The index of the source image for which this applies
        Returns:
        The kernel dilation rate for each dimension. API-Since: 13.0 Deprecated-Since: 14.0
      • edgeModeAtSourceIndex

        @Deprecated
        public long edgeModeAtSourceIndex​(long sourceIndex)
        Deprecated.
        The edge mode used for each source NDArray
        Parameters:
        sourceIndex - The index of the source image
        Returns:
        The MPSImageEdgeMode for that image API-Since: 13.0 Deprecated-Since: 14.0
      • encodeWithCoder

        public void encodeWithCoder​(@NotNull
                                    @NotNull NSCoder coder)
        Initialize a MPSNDArrayMultiaryKernel from a NSCoder
        Specified by:
        encodeWithCoder in interface NSCoding
        Overrides:
        encodeWithCoder in class MPSKernel
        Parameters:
        coder - The NSCoder that contains the serialized object
      • hash_static

        public static long hash_static()
      • initWithCoderDevice

        public MPSNDArrayMultiaryBase initWithCoderDevice​(@NotNull
                                                          @NotNull NSCoder coder,
                                                          @NotNull
                                                          @NotNull java.lang.Object device)
        Initialize a MPSNDArrayMultiaryKernel from a NSCoder
        Overrides:
        initWithCoderDevice in class MPSKernel
        Parameters:
        coder - The NSCoder that contains the serialized object
        device - The device on which the kernel will run
        Returns:
        A valid MPSNDArrayMultiaryKernel, or nil if allocation failure.
      • initWithDevice

        public MPSNDArrayMultiaryBase initWithDevice​(@NotNull
                                                     @NotNull java.lang.Object device)
        Description copied from class: MPSKernel
        Standard init with default properties per filter type
        Overrides:
        initWithDevice in class MPSKernel
        Parameters:
        device - The device that the filter will be used on. May not be NULL.
        Returns:
        a pointer to the newly initialized object. This will fail, returning nil if the device is not supported. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later.
      • initWithDeviceSourceCount

        public MPSNDArrayMultiaryBase initWithDeviceSourceCount​(@NotNull
                                                                @NotNull MTLDevice device,
                                                                long count)
        Initialize a MPSNDArrayMultiaryKernel
        Parameters:
        device - The device on which the kernel will run
        count - The maximum number of NDArrays read by the kernel
        Returns:
        A valid MPSNDArrayMultiaryKernel, or nil if allocation failure.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • kernelSizesForSourceIndex

        @Deprecated
        public MPSNDArraySizes kernelSizesForSourceIndex​(long sourceIndex)
        Deprecated.
        Get the diameters of the point spread function (PSF) in each dimension
        Parameters:
        sourceIndex - The MPSNDArrayMultiaryKernel source NDArray to which the kernel will be applied
        Returns:
        A list of kernel diameters in each dimension API-Since: 13.0 Deprecated-Since: 14.0
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • offsetsAtSourceIndex

        @Deprecated
        public MPSNDArrayOffsets offsetsAtSourceIndex​(long sourceIndex)
        Deprecated.
        Read offsets to use when addressing a source NDArray The coordinate of the position read from this source array which is used to calculate the result value at [0,0,0,....] If the position read is actually a contiguous region (e.g. the area covered by a convolution kernel) then this is the center of that region, rounded down, for each dimension.
        Parameters:
        sourceIndex - The index of the source MPSNDArray to which the list of offsets is applied API-Since: 13.0 Deprecated-Since: 14.0
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • resultStateForSourceArraysSourceStatesDestinationArray

        @Nullable
        public @Nullable MPSState resultStateForSourceArraysSourceStatesDestinationArray​(@NotNull
                                                                                         @NotNull NSArray<? extends MPSNDArray> sourceArrays,
                                                                                         @Nullable
                                                                                         @Nullable NSArray<? extends MPSState> sourceStates,
                                                                                         @NotNull
                                                                                         @NotNull MPSNDArray destinationArray)
      • setDestinationArrayAllocator

        public void setDestinationArrayAllocator​(@NotNull
                                                 @NotNull MPSNDArrayAllocator value)
        Method to allocate the result image for -encodeToCommandBuffer:sourceImage: Default: MPSTemporaryImage.defaultAllocator
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • stridesForSourceIndex

        @Deprecated
        public MPSNDArrayOffsets stridesForSourceIndex​(long sourceIndex)
        Deprecated.
        Return the downsampling ratio for the kernel in each dimension If the filter is a "backwards" filter such as a gradient filter or convolution transpose, then this is the upsampling ratio and zeros are inserted in the result.
        Parameters:
        sourceIndex - The index of the source for which the strides apply
        Returns:
        The strides from one destination sample to the next in each dimension of the corresponding source NDArray API-Since: 13.0 Deprecated-Since: 14.0
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class MPSKernel
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.