public class MPSNDArrayMultiaryBase extends MPSKernel
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MPSNDArrayMultiaryBase(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static MPSNDArrayMultiaryBase |
alloc() |
static MPSNDArrayMultiaryBase |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
MPSNDArrayMultiaryBase |
copyWithZoneDevice(org.moe.natj.general.ptr.VoidPtr zone,
MTLDevice device)
Create a copy with
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
MPSNDArrayAllocator |
destinationArrayAllocator()
Method to allocate the result image for -encodeToCommandBuffer:sourceImage:
|
MPSNDArrayDescriptor |
destinationArrayDescriptorForSourceArraysSourceState(NSArray<? extends MPSNDArray> sources,
MPSState state)
Return a descriptor suitable for allocating a NSArray to receive the result
|
MPSNDArraySizes |
dilationRatesForSourceIndex(long sourceIndex)
Get the kernel dilation rate for each dimension
|
long |
edgeModeAtSourceIndex(long sourceIndex)
The edge mode used for each source NDArray
|
void |
encodeWithCoder(NSCoder coder)
Initialize a MPSNDArrayMultiaryKernel from a NSCoder
|
static long |
hash_static() |
MPSNDArrayMultiaryBase |
init() |
MPSNDArrayMultiaryBase |
initWithCoder(NSCoder aDecoder)
NS_DESIGNATED_INITIALIZER
|
MPSNDArrayMultiaryBase |
initWithCoderDevice(NSCoder coder,
java.lang.Object device)
Initialize a MPSNDArrayMultiaryKernel from a NSCoder
|
MPSNDArrayMultiaryBase |
initWithDevice(java.lang.Object device)
Standard init with default properties per filter type
|
MPSNDArrayMultiaryBase |
initWithDeviceSourceCount(MTLDevice device,
long count)
Initialize a MPSNDArrayMultiaryKernel
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
MPSNDArraySizes |
kernelSizesForSourceIndex(long sourceIndex)
Get the diameters of the point spread function (PSF) in each dimension
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static MPSNDArrayMultiaryBase |
new_objc() |
MPSNDArrayOffsets |
offsetsAtSourceIndex(long sourceIndex)
Read offsets to use when addressing a source NDArray
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
MPSState |
resultStateForSourceArraysSourceStatesDestinationArray(NSArray<? extends MPSNDArray> sourceArrays,
NSArray<? extends MPSState> sourceStates,
MPSNDArray destinationArray) |
void |
setDestinationArrayAllocator(MPSNDArrayAllocator value)
Method to allocate the result image for -encodeToCommandBuffer:sourceImage:
|
static void |
setVersion_static(long aVersion) |
MPSNDArrayOffsets |
stridesForSourceIndex(long sourceIndex)
Return the downsampling ratio for the kernel in each dimension
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static long |
version_static() |
copyWithZone, device, label, options, setLabel, setOptionsaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected MPSNDArrayMultiaryBase(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MPSNDArrayMultiaryBase alloc()
public static MPSNDArrayMultiaryBase allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public MPSNDArrayMultiaryBase copyWithZoneDevice(org.moe.natj.general.ptr.VoidPtr zone, MTLDevice device)
copyWithZoneDevice in class MPSKernelzone - The NSZone in which to allocate the MPSNDArrayMultiaryKernel objectdevice - The device on which the new kernel will run. Pass nil for same device.public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public MPSNDArrayAllocator destinationArrayAllocator()
Default: MPSTemporaryImage.defaultAllocator
public MPSNDArrayDescriptor destinationArrayDescriptorForSourceArraysSourceState(NSArray<? extends MPSNDArray> sources, MPSState state)
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.
sources - The list of sources passed into the -encode callstate - The source state object, if any passed to the -encode callpublic MPSNDArraySizes dilationRatesForSourceIndex(long sourceIndex)
sourceIndex - The index of the source image for which this appliespublic long edgeModeAtSourceIndex(long sourceIndex)
sourceIndex - The index of the source imagepublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingencodeWithCoder in class MPSKernelcoder - The NSCoder that contains the serialized objectpublic static long hash_static()
public MPSNDArrayMultiaryBase init()
public MPSNDArrayMultiaryBase initWithCoder(NSCoder aDecoder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class MPSKernelpublic MPSNDArrayMultiaryBase initWithCoderDevice(NSCoder coder, java.lang.Object device)
initWithCoderDevice in class MPSKernelcoder - The NSCoder that contains the serialized objectdevice - The device on which the kernel will runpublic MPSNDArrayMultiaryBase initWithDevice(java.lang.Object device)
MPSKernelinitWithDevice in class MPSKerneldevice - The device that the filter will be used on. May not be NULL.public MPSNDArrayMultiaryBase initWithDeviceSourceCount(MTLDevice device, long count)
device - The device on which the kernel will runcount - The maximum number of NDArrays read by the kernelpublic static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public MPSNDArraySizes kernelSizesForSourceIndex(long sourceIndex)
sourceIndex - The MPSNDArrayMultiaryKernel source NDArray to which the kernel will be appliedpublic static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static MPSNDArrayMultiaryBase new_objc()
public MPSNDArrayOffsets offsetsAtSourceIndex(long sourceIndex)
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.
sourceIndex - The index of the source MPSNDArray to which the list of offsets is appliedpublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public MPSState resultStateForSourceArraysSourceStatesDestinationArray(NSArray<? extends MPSNDArray> sourceArrays, NSArray<? extends MPSState> sourceStates, MPSNDArray destinationArray)
public void setDestinationArrayAllocator(MPSNDArrayAllocator value)
Default: MPSTemporaryImage.defaultAllocator
public static void setVersion_static(long aVersion)
public MPSNDArrayOffsets stridesForSourceIndex(long sourceIndex)
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.
sourceIndex - The index of the source for which the strides applypublic static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class MPSKernelpublic static long version_static()