Class MPSMatrixRandom

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
MPSMatrixRandomMTGP32, MPSMatrixRandomPhilox

public class MPSMatrixRandom
extends MPSKernel
Since:
Available in iOS 13.0 and later.
  • Constructor Details

    • MPSMatrixRandom

      public MPSMatrixRandom()
    • MPSMatrixRandom

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

      protected MPSMatrixRandom​(NSObject.SkipInit skipInit)
    • MPSMatrixRandom

      public MPSMatrixRandom​(NSCoder coder)
    • MPSMatrixRandom

      public MPSMatrixRandom​(NSCoder decoder, MTLDevice device)
      Since:
      Available in iOS 11.0 and later.
  • Method Details

    • getDestinationDataType

      public MPSDataType getDestinationDataType()
    • getDistributionType

      public MPSMatrixRandomDistribution getDistributionType()
    • getBatchStart

      public long getBatchStart()
    • setBatchStart

      public void setBatchStart​(long v)
    • getBatchSize

      public long getBatchSize()
    • setBatchSize

      public void setBatchSize​(long v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • encode

      public void encode​(MTLCommandBuffer commandBuffer, MPSVector destinationVector)
    • encode

      public void encode​(MTLCommandBuffer commandBuffer, MPSMatrix destinationMatrix)