Class MPSMatrixFindTopK

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class MPSMatrixFindTopK
extends MPSMatrixUnaryKernel
Since:
Available in iOS 11.3 and later.
  • Constructor Details

    • MPSMatrixFindTopK

      public MPSMatrixFindTopK()
    • MPSMatrixFindTopK

      protected MPSMatrixFindTopK​(NSObject.Handle h, long handle)
    • MPSMatrixFindTopK

      protected MPSMatrixFindTopK​(NSObject.SkipInit skipInit)
    • MPSMatrixFindTopK

      public MPSMatrixFindTopK​(MTLDevice device, long numberOfTopKValues)
    • MPSMatrixFindTopK

      public MPSMatrixFindTopK​(NSCoder decoder, MTLDevice device)
    • MPSMatrixFindTopK

      public MPSMatrixFindTopK​(NSCoder coder)
  • Method Details

    • getSourceRows

      public long getSourceRows()
    • setSourceRows

      public void setSourceRows​(long v)
    • getSourceColumns

      public long getSourceColumns()
    • setSourceColumns

      public void setSourceColumns​(long v)
    • getIndexOffset

      public long getIndexOffset()
    • setIndexOffset

      public void setIndexOffset​(long v)
    • getNumberOfTopKValues

      public long getNumberOfTopKValues()
    • setNumberOfTopKValues

      public void setNumberOfTopKValues​(long v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(MTLDevice device, long numberOfTopKValues)
    • encode

      public void encode​(MTLCommandBuffer commandBuffer, MPSMatrix inputMatrix, MPSMatrix resultIndexMatrix, MPSMatrix resultValueMatrix)
    • init

      protected long init​(NSCoder decoder, MTLDevice device)
      Overrides:
      init in class MPSKernel
    • copy

      public MPSMatrixFindTopK copy​(NSZone zone, MTLDevice device)
      Overrides:
      copy in class MPSKernel