Documentation
¶
Overview ¶
Package accelerate provides a fluent Go API over the macOS Accelerate framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- type BNNSActivationFunction
- type BNNSArithmeticFunction
- type BNNSBoxCoordinateMode
- type BNNSDataLayout
- type BNNSDataType
- type BNNSDescriptorType
- type BNNSEmbeddingFlags
- type BNNSFilterType
- type BNNSFlags
- type BNNSGraphArgumentIntent
- type BNNSGraphArgumentType
- type BNNSGraphMessageLevel
- type BNNSGraphOptimizationPreference
- type BNNSInterpolationMethod
- type BNNSLayerFlags
- type BNNSLinearSamplingMode
- type BNNSLossFunction
- type BNNSLossReductionFunction
- type BNNSNDArrayFlags
- type BNNSNormType
- type BNNSOptimizerClippingFunction
- type BNNSOptimizerFunction
- type BNNSOptimizerRegularizationFunction
- type BNNSOptimizerSGDMomentumVariant
- type BNNSPaddingMode
- type BNNSPointerSpecifier
- type BNNSPoolingFunction
- type BNNSQuantizerFunction
- type BNNSRandomGeneratorMethod
- type BNNSReduceFunction
- type BNNSRelationalOperator
- type BNNSShuffleType
- type BNNSSparsityType
- type BNNSTargetSystem
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type OSLogType
- type PMPageToPaperMappingType
- type Perm
- type PtrauthKey
- type QosClass
- type QuadratureIntegrator
- type QuadratureStatus
- type SparseIterativeMethod_t
- type SparseMatrixProperty
- type SparseNorm
- type SparseStatus
- type Sparsecontrol
- type Sparsefactorization
- type Sparsegmresvariant
- type Sparseiterativestatus
- type Sparsekind
- type Sparselsmrconvergencetest
- type Sparseorder
- type Sparsepreconditioner
- type Sparsescaling
- type Sparsestatus
- type Sparsesubfactor
- type Sparsetriangle
- type Sparseupdate
- type Tag
- type Type
- type VImageARGBType
- type VImageMDTableUsageHint
- type VImageYpCbCrType
- type VimageInterpolationmethod
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BNNSActivationFunction ¶
type BNNSActivationFunction uint32
Constants that describe activation functions.
const ( // An activation function that returns its input. BNNSActivationFunctionIdentity BNNSActivationFunction = 0 // An activation function that returns its input when that is greater than or equal to zero, otherwise it returns zero. BNNSActivationFunctionRectifiedLinear BNNSActivationFunction = 1 // An activation function that returns its input when that is greater than or equal to zero, otherwise it returns its input multiplied by a specified value. BNNSActivationFunctionLeakyRectifiedLinear BNNSActivationFunction = 2 // An activation function that returns the sigmoid function of its input. BNNSActivationFunctionSigmoid BNNSActivationFunction = 3 // An activation function that returns the hyperbolic tangent of its input. BNNSActivationFunctionTanh BNNSActivationFunction = 4 // An activation function that returns the scaled hyperbolic tangent of its input. BNNSActivationFunctionScaledTanh BNNSActivationFunction = 5 // An activation function that returns the absolute value of its input. BNNSActivationFunctionAbs BNNSActivationFunction = 6 // An activation function that returns its input multiplied by a specified value. BNNSActivationFunctionLinear BNNSActivationFunction = 7 // An activation function that returns its input clamped to the specified range. BNNSActivationFunctionClamp BNNSActivationFunction = 8 // An activation function that returns an arithmetic shift, preserving sign. BNNSActivationFunctionIntegerLinearSaturate BNNSActivationFunction = 9 // An activation function that returns an arithmetic shift, preserving sign for each channel. BNNSActivationFunctionIntegerLinearSaturatePerChannel BNNSActivationFunction = 10 // An activation function that returns the softmax function of its input. BNNSActivationFunctionSoftmax BNNSActivationFunction = 11 BNNSActivationFunctionGELUApproximation BNNSActivationFunction = 12 BNNSActivationFunctionGumbel BNNSActivationFunction = 13 BNNSActivationFunctionGumbelMax BNNSActivationFunction = 14 BNNSActivationFunctionHardSigmoid BNNSActivationFunction = 15 BNNSActivationFunctionSoftplus BNNSActivationFunction = 16 BNNSActivationFunctionSoftsign BNNSActivationFunction = 17 BNNSActivationFunctionELU BNNSActivationFunction = 18 BNNSActivationFunctionClampedLeakyRectifiedLinear BNNSActivationFunction = 19 BNNSActivationFunctionLinearWithBias BNNSActivationFunction = 20 BNNSActivationFunctionLogSoftmax BNNSActivationFunction = 21 BNNSActivationFunctionLogSigmoid BNNSActivationFunction = 22 BNNSActivationFunctionSELU BNNSActivationFunction = 23 BNNSActivationFunctionCELU BNNSActivationFunction = 24 BNNSActivationFunctionHardShrink BNNSActivationFunction = 25 BNNSActivationFunctionSoftShrink BNNSActivationFunction = 26 BNNSActivationFunctionTanhShrink BNNSActivationFunction = 27 BNNSActivationFunctionThreshold BNNSActivationFunction = 28 BNNSActivationFunctionPReLUPerChannel BNNSActivationFunction = 29 BNNSActivationFunctionGELUApproximation2 BNNSActivationFunction = 30 BNNSActivationFunctionHardSwish BNNSActivationFunction = 30 BNNSActivationFunctionSiLU BNNSActivationFunction = 31 BNNSActivationFunctionReLU6 BNNSActivationFunction = 32 BNNSActivationFunctionErf BNNSActivationFunction = 33 BNNSActivationFunctionGELU BNNSActivationFunction = 34 BNNSActivationFunctionGELUApproximationSigmoid BNNSActivationFunction = 35 )
func (BNNSActivationFunction) String ¶
func (e BNNSActivationFunction) String() string
String returns the BNNSActivationFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSArithmeticFunction ¶
type BNNSArithmeticFunction uint32
Constants that define arithmetic operations.
const ( BNNSArithmeticAdd BNNSArithmeticFunction = 0 BNNSArithmeticSubtract BNNSArithmeticFunction = 1 BNNSArithmeticMultiply BNNSArithmeticFunction = 2 BNNSArithmeticDivide BNNSArithmeticFunction = 3 BNNSArithmeticSquareRoot BNNSArithmeticFunction = 4 BNNSArithmeticReciprocalSquareRoot BNNSArithmeticFunction = 5 BNNSArithmeticCeil BNNSArithmeticFunction = 6 BNNSArithmeticFloor BNNSArithmeticFunction = 7 BNNSArithmeticRound BNNSArithmeticFunction = 8 BNNSArithmeticSin BNNSArithmeticFunction = 9 BNNSArithmeticCos BNNSArithmeticFunction = 10 BNNSArithmeticTan BNNSArithmeticFunction = 11 BNNSArithmeticAsin BNNSArithmeticFunction = 12 BNNSArithmeticAcos BNNSArithmeticFunction = 13 BNNSArithmeticAtan BNNSArithmeticFunction = 14 BNNSArithmeticSinh BNNSArithmeticFunction = 15 BNNSArithmeticCosh BNNSArithmeticFunction = 16 BNNSArithmeticTanh BNNSArithmeticFunction = 17 BNNSArithmeticAsinh BNNSArithmeticFunction = 18 BNNSArithmeticAcosh BNNSArithmeticFunction = 19 BNNSArithmeticAtanh BNNSArithmeticFunction = 20 BNNSArithmeticPow BNNSArithmeticFunction = 21 BNNSArithmeticExp BNNSArithmeticFunction = 22 BNNSArithmeticExp2 BNNSArithmeticFunction = 23 BNNSArithmeticLog BNNSArithmeticFunction = 24 BNNSArithmeticLog2 BNNSArithmeticFunction = 25 BNNSArithmeticMultiplyNoNaN BNNSArithmeticFunction = 26 BNNSArithmeticDivideNoNaN BNNSArithmeticFunction = 27 BNNSArithmeticMultiplyAdd BNNSArithmeticFunction = 28 BNNSArithmeticMinimum BNNSArithmeticFunction = 29 BNNSArithmeticMaximum BNNSArithmeticFunction = 30 BNNSArithmeticSelect BNNSArithmeticFunction = 31 BNNSArithmeticAbs BNNSArithmeticFunction = 32 BNNSArithmeticSign BNNSArithmeticFunction = 33 BNNSArithmeticNegate BNNSArithmeticFunction = 34 BNNSArithmeticReciprocal BNNSArithmeticFunction = 35 BNNSArithmeticSquare BNNSArithmeticFunction = 36 BNNSArithmeticFloorDivide BNNSArithmeticFunction = 37 BNNSArithmeticTruncDivide BNNSArithmeticFunction = 38 BNNSArithmeticTruncRemainder BNNSArithmeticFunction = 39 BNNSArithmeticErf BNNSArithmeticFunction = 40 )
func (BNNSArithmeticFunction) String ¶
func (e BNNSArithmeticFunction) String() string
String returns the BNNSArithmeticFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSBoxCoordinateMode ¶
type BNNSBoxCoordinateMode uint32
Constants that define the convention to specify the four bounding box coordinates for crop-resize operations.
const ( BNNSCornersHeightFirst BNNSBoxCoordinateMode = 0 BNNSCornersWidthFirst BNNSBoxCoordinateMode = 1 BNNSCenterSizeHeightFirst BNNSBoxCoordinateMode = 2 BNNSCenterSizeWidthFirst BNNSBoxCoordinateMode = 3 )
func (BNNSBoxCoordinateMode) String ¶
func (e BNNSBoxCoordinateMode) String() string
String returns the BNNSBoxCoordinateMode constant's name, or its numeric form when the value is not a known constant.
type BNNSDataLayout ¶
type BNNSDataLayout uint32
Constants that describe the data type of an n-dimensional array.
const ( BNNSDataLayoutVector BNNSDataLayout = 65536 BNNSDataLayout1DLastMajor BNNSDataLayout = 98304 BNNSDataLayout1DFirstMajor BNNSDataLayout = 98305 BNNSDataLayoutRowMajorMatrix BNNSDataLayout = 131072 BNNSDataLayoutColumnMajorMatrix BNNSDataLayout = 131073 BNNSDataLayout2DLastMajor BNNSDataLayout = 163840 BNNSDataLayout2DFirstMajor BNNSDataLayout = 163841 BNNSDataLayoutFullyConnectedSparse BNNSDataLayout = 135169 BNNSDataLayoutImageCHW BNNSDataLayout = 196608 BNNSDataLayoutSNE BNNSDataLayout = 196609 BNNSDataLayoutNSE BNNSDataLayout = 196610 BNNSDataLayoutMHA_DHK BNNSDataLayout = 196611 BNNSDataLayout3DLastMajor BNNSDataLayout = 229376 BNNSDataLayout3DFirstMajor BNNSDataLayout = 229377 BNNSDataLayoutConvolutionWeightsOIHW BNNSDataLayout = 262144 BNNSDataLayoutConvolutionWeightsOIHrWr BNNSDataLayout = 262145 BNNSDataLayoutConvolutionWeightsIOHrWr BNNSDataLayout = 262146 BNNSDataLayoutConvolutionWeightsOIHW_Pack32 BNNSDataLayout = 262160 BNNSDataLayout4DLastMajor BNNSDataLayout = 294912 BNNSDataLayout4DFirstMajor BNNSDataLayout = 294913 BNNSDataLayout5DLastMajor BNNSDataLayout = 360448 BNNSDataLayout5DFirstMajor BNNSDataLayout = 360449 BNNSDataLayout6DLastMajor BNNSDataLayout = 425984 BNNSDataLayout6DFirstMajor BNNSDataLayout = 425985 BNNSDataLayout7DLastMajor BNNSDataLayout = 491520 BNNSDataLayout7DFirstMajor BNNSDataLayout = 491521 BNNSDataLayout8DLastMajor BNNSDataLayout = 557056 BNNSDataLayout8DFirstMajor BNNSDataLayout = 557057 )
func (BNNSDataLayout) String ¶
func (e BNNSDataLayout) String() string
String returns the BNNSDataLayout constant's name, or its numeric form when the value is not a known constant.
type BNNSDataType ¶
type BNNSDataType uint32
BNNS Data Types.
const ( BNNSDataTypeFloatBit BNNSDataType = 65536 BNNSDataTypeFloat16 BNNSDataType = 65552 BNNSDataTypeFloat32 BNNSDataType = 65568 BNNSDataTypeBFloat16 BNNSDataType = 98320 BNNSDataTypeIntBit BNNSDataType = 131072 BNNSDataTypeInt1 BNNSDataType = 131073 BNNSDataTypeInt2 BNNSDataType = 131074 BNNSDataTypeInt4 BNNSDataType = 131076 BNNSDataTypeInt8 BNNSDataType = 131080 BNNSDataTypeInt16 BNNSDataType = 131088 BNNSDataTypeInt32 BNNSDataType = 131104 BNNSDataTypeInt64 BNNSDataType = 131136 BNNSDataTypeUIntBit BNNSDataType = 262144 BNNSDataTypeUInt1 BNNSDataType = 262145 BNNSDataTypeUInt2 BNNSDataType = 262146 BNNSDataTypeUInt3 BNNSDataType = 262147 BNNSDataTypeUInt4 BNNSDataType = 262148 BNNSDataTypeUInt6 BNNSDataType = 262150 BNNSDataTypeUInt8 BNNSDataType = 262152 BNNSDataTypeUInt16 BNNSDataType = 262160 BNNSDataTypeUInt32 BNNSDataType = 262176 BNNSDataTypeUInt64 BNNSDataType = 262208 BNNSDataTypeIndexedBit BNNSDataType = 524288 BNNSDataTypeIndexed1 BNNSDataType = 524289 BNNSDataTypeIndexed2 BNNSDataType = 524290 BNNSDataTypeIndexed4 BNNSDataType = 524292 BNNSDataTypeIndexed8 BNNSDataType = 524296 BNNSDataTypeMiscellaneousBit BNNSDataType = 1048576 BNNSDataTypeBoolean BNNSDataType = 1048584 )
func (BNNSDataType) String ¶
func (e BNNSDataType) String() string
String returns the BNNSDataType constant's name, or its numeric form when the value is not a known constant.
type BNNSDescriptorType ¶
type BNNSDescriptorType uint32
Constants that describe the input and output types of an arithmetic operation.
const ( BNNSConstant BNNSDescriptorType = 0 BNNSSample BNNSDescriptorType = 1 BNNSParameter BNNSDescriptorType = 2 )
func (BNNSDescriptorType) String ¶
func (e BNNSDescriptorType) String() string
String returns the BNNSDescriptorType constant's name, or its numeric form when the value is not a known constant.
type BNNSEmbeddingFlags ¶
type BNNSEmbeddingFlags uint32
Flags that control behavior of embedding layers.
const (
BNNSEmbeddingFlagScaleGradientByFrequency BNNSEmbeddingFlags = 1
)
func (BNNSEmbeddingFlags) String ¶
func (e BNNSEmbeddingFlags) String() string
String returns the BNNSEmbeddingFlags constant's name, or its numeric form when the value is not a known constant.
type BNNSFilterType ¶
type BNNSFilterType uint32
Constants that define the component filters of a fused layer.
const ( BNNSConvolution BNNSFilterType = 0 BNNSFullyConnected BNNSFilterType = 1 BNNSBatchNorm BNNSFilterType = 2 BNNSInstanceNorm BNNSFilterType = 3 BNNSLayerNorm BNNSFilterType = 4 BNNSGroupNorm BNNSFilterType = 5 BNNSTransposedConvolution BNNSFilterType = 6 BNNSQuantization BNNSFilterType = 7 BNNSArithmetic BNNSFilterType = 8 )
func (BNNSFilterType) String ¶
func (e BNNSFilterType) String() string
String returns the BNNSFilterType constant's name, or its numeric form when the value is not a known constant.
type BNNSFlags ¶
type BNNSFlags uint32
Options that control the behavior of a filter parameter.
const ( // A flag that instructs the filter to use pointers to data you provide at creation time. BNNSFlagsUseClientPtr BNNSFlags = 1 )
type BNNSGraphArgumentIntent ¶
type BNNSGraphArgumentIntent uint32
Constants that describe argument intents.
const ( BNNSGraphArgumentIntentIn BNNSGraphArgumentIntent = 1 BNNSGraphArgumentIntentOut BNNSGraphArgumentIntent = 2 BNNSGraphArgumentIntentInOut BNNSGraphArgumentIntent = 3 )
func (BNNSGraphArgumentIntent) String ¶
func (e BNNSGraphArgumentIntent) String() string
String returns the BNNSGraphArgumentIntent constant's name, or its numeric form when the value is not a known constant.
type BNNSGraphArgumentType ¶
type BNNSGraphArgumentType uint32
Constants that specify the argument type for a graph context.
const ( BNNSGraphArgumentTypePointer BNNSGraphArgumentType = 0 BNNSGraphArgumentTypeTensor BNNSGraphArgumentType = 2 )
func (BNNSGraphArgumentType) String ¶
func (e BNNSGraphArgumentType) String() string
String returns the BNNSGraphArgumentType constant's name, or its numeric form when the value is not a known constant.
type BNNSGraphMessageLevel ¶
type BNNSGraphMessageLevel uint32
Constants that specify the mask for compile-time messages.
const ( BNNSGraphMessageLevelInfo BNNSGraphMessageLevel = 1 BNNSGraphMessageLevelUnsupported BNNSGraphMessageLevel = 2 BNNSGraphMessageLevelWarning BNNSGraphMessageLevel = 4 BNNSGraphMessageLevelError BNNSGraphMessageLevel = 8 )
func (BNNSGraphMessageLevel) String ¶
func (e BNNSGraphMessageLevel) String() string
String returns the BNNSGraphMessageLevel constant's name, or its numeric form when the value is not a known constant.
type BNNSGraphOptimizationPreference ¶
type BNNSGraphOptimizationPreference uint32
Constants that describe the compilation optimization preference.
const ( BNNSGraphOptimizationPreferencePerformance BNNSGraphOptimizationPreference = 0 BNNSGraphOptimizationPreferenceIRSize BNNSGraphOptimizationPreference = 1 )
func (BNNSGraphOptimizationPreference) String ¶
func (e BNNSGraphOptimizationPreference) String() string
String returns the BNNSGraphOptimizationPreference constant's name, or its numeric form when the value is not a known constant.
type BNNSInterpolationMethod ¶
type BNNSInterpolationMethod uint32
Constants that describe interpolation methods.
const ( BNNSInterpolationMethodNearest BNNSInterpolationMethod = 0 BNNSInterpolationMethodLinear BNNSInterpolationMethod = 1 )
func (BNNSInterpolationMethod) String ¶
func (e BNNSInterpolationMethod) String() string
String returns the BNNSInterpolationMethod constant's name, or its numeric form when the value is not a known constant.
type BNNSLayerFlags ¶
type BNNSLayerFlags uint32
Options that control the behavior of a long short-term memory (LSTM) layer.
const ( BNNSLayerFlagsLSTMBidirectional BNNSLayerFlags = 1 BNNSLayerFlagsLSTMDefaultActivations BNNSLayerFlags = 2 )
func (BNNSLayerFlags) String ¶
func (e BNNSLayerFlags) String() string
String returns the BNNSLayerFlags constant's name, or its numeric form when the value is not a known constant.
type BNNSLinearSamplingMode ¶
type BNNSLinearSamplingMode uint32
Constants that specify how a crop-resize layer samples a grid.
const ( BNNSLinearSamplingDefault BNNSLinearSamplingMode = 0 BNNSLinearSamplingAlignCorners BNNSLinearSamplingMode = 1 BNNSLinearSamplingUnalignCorners BNNSLinearSamplingMode = 2 BNNSLinearSamplingStrictAlignCorners BNNSLinearSamplingMode = 3 BNNSLinearSamplingOffsetCorners BNNSLinearSamplingMode = 4 )
func (BNNSLinearSamplingMode) String ¶
func (e BNNSLinearSamplingMode) String() string
String returns the BNNSLinearSamplingMode constant's name, or its numeric form when the value is not a known constant.
type BNNSLossFunction ¶
type BNNSLossFunction uint32
Constants that describe loss functions.
const ( BNNSLossFunctionSoftmaxCrossEntropy BNNSLossFunction = 1 BNNSLossFunctionSigmoidCrossEntropy BNNSLossFunction = 2 BNNSLossFunctionMeanSquareError BNNSLossFunction = 3 BNNSLossFunctionHuber BNNSLossFunction = 4 BNNSLossFunctionYolo BNNSLossFunction = 5 BNNSLossFunctionLog BNNSLossFunction = 6 BNNSLossFunctionCosineDistance BNNSLossFunction = 7 BNNSLossFunctionHinge BNNSLossFunction = 8 BNNSLossFunctionMeanAbsoluteError BNNSLossFunction = 9 BNNSLossFunctionCategoricalCrossEntropy BNNSLossFunction = 10 )
func (BNNSLossFunction) String ¶
func (e BNNSLossFunction) String() string
String returns the BNNSLossFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSLossReductionFunction ¶
type BNNSLossReductionFunction uint32
Constants that describe reduction functions used by a loss layer.
const ( BNNSLossReductionNone BNNSLossReductionFunction = 0 BNNSLossReductionSum BNNSLossReductionFunction = 1 BNNSLossReductionWeightedMean BNNSLossReductionFunction = 2 BNNSLossReductionMean BNNSLossReductionFunction = 3 BNNSLossReductionNonZeroWeightMean BNNSLossReductionFunction = 4 )
func (BNNSLossReductionFunction) String ¶
func (e BNNSLossReductionFunction) String() string
String returns the BNNSLossReductionFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSNDArrayFlags ¶
type BNNSNDArrayFlags uint32
Options that control the behavior of an n-dimensional array.
const ( BNNSNDArrayFlagBackpropSet BNNSNDArrayFlags = 0 BNNSNDArrayFlagBackpropAccumulate BNNSNDArrayFlags = 1 )
func (BNNSNDArrayFlags) String ¶
func (e BNNSNDArrayFlags) String() string
String returns the BNNSNDArrayFlags constant's name, or its numeric form when the value is not a known constant.
type BNNSNormType ¶
type BNNSNormType uint32
Constants that describe norm types.
const (
BNNSL2Norm BNNSNormType = 1
)
func (BNNSNormType) String ¶
func (e BNNSNormType) String() string
String returns the BNNSNormType constant's name, or its numeric form when the value is not a known constant.
type BNNSOptimizerClippingFunction ¶
type BNNSOptimizerClippingFunction uint32
Constants that describe clipping functions.
const ( BNNSOptimizerClippingNone BNNSOptimizerClippingFunction = 0 BNNSOptimizerClippingByValue BNNSOptimizerClippingFunction = 1 BNNSOptimizerClippingByNorm BNNSOptimizerClippingFunction = 2 BNNSOptimizerClippingByGlobalNorm BNNSOptimizerClippingFunction = 3 )
func (BNNSOptimizerClippingFunction) String ¶
func (e BNNSOptimizerClippingFunction) String() string
String returns the BNNSOptimizerClippingFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSOptimizerFunction ¶
type BNNSOptimizerFunction uint32
A structure that contains optimizer functions.
const ( BNNSOptimizerFunctionSGDMomentum BNNSOptimizerFunction = 1 BNNSOptimizerFunctionAdam BNNSOptimizerFunction = 2 BNNSOptimizerFunctionRMSProp BNNSOptimizerFunction = 3 BNNSOptimizerFunctionAdamW BNNSOptimizerFunction = 4 BNNSOptimizerFunctionAdamAMSGrad BNNSOptimizerFunction = 5 BNNSOptimizerFunctionAdamWAMSGrad BNNSOptimizerFunction = 6 BNNSOptimizerFunctionSGDMomentumWithClipping BNNSOptimizerFunction = 7 BNNSOptimizerFunctionAdamWithClipping BNNSOptimizerFunction = 8 BNNSOptimizerFunctionRMSPropWithClipping BNNSOptimizerFunction = 9 BNNSOptimizerFunctionAdamWWithClipping BNNSOptimizerFunction = 10 BNNSOptimizerFunctionAdamAMSGradWithClipping BNNSOptimizerFunction = 11 BNNSOptimizerFunctionAdamWAMSGradWithClipping BNNSOptimizerFunction = 12 )
func (BNNSOptimizerFunction) String ¶
func (e BNNSOptimizerFunction) String() string
String returns the BNNSOptimizerFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSOptimizerRegularizationFunction ¶
type BNNSOptimizerRegularizationFunction uint32
A structure that contains optimizer regularization functions.
const ( BNNSOptimizerRegularizationNone BNNSOptimizerRegularizationFunction = 0 BNNSOptimizerRegularizationL1 BNNSOptimizerRegularizationFunction = 1 BNNSOptimizerRegularizationL2 BNNSOptimizerRegularizationFunction = 2 )
func (BNNSOptimizerRegularizationFunction) String ¶
func (e BNNSOptimizerRegularizationFunction) String() string
String returns the BNNSOptimizerRegularizationFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSOptimizerSGDMomentumVariant ¶
type BNNSOptimizerSGDMomentumVariant uint32
Constants that define SGD momentum variants.
const ( BNNSSGDMomentumVariant0 BNNSOptimizerSGDMomentumVariant = 0 BNNSSGDMomentumVariant1 BNNSOptimizerSGDMomentumVariant = 1 BNNSSGDMomentumVariant2 BNNSOptimizerSGDMomentumVariant = 2 )
func (BNNSOptimizerSGDMomentumVariant) String ¶
func (e BNNSOptimizerSGDMomentumVariant) String() string
String returns the BNNSOptimizerSGDMomentumVariant constant's name, or its numeric form when the value is not a known constant.
type BNNSPaddingMode ¶
type BNNSPaddingMode uint32
Constants that define padding modes.
const ( BNNSPaddingModeConstant BNNSPaddingMode = 0 BNNSPaddingModeReflect BNNSPaddingMode = 1 BNNSPaddingModeSymmetric BNNSPaddingMode = 2 )
func (BNNSPaddingMode) String ¶
func (e BNNSPaddingMode) String() string
String returns the BNNSPaddingMode constant's name, or its numeric form when the value is not a known constant.
type BNNSPointerSpecifier ¶
type BNNSPointerSpecifier uint32
Constants that specify which pointer the BNNS get filter function returns.
const ( BNNSPointerSpecifierAlpha BNNSPointerSpecifier = 0 BNNSPointerSpecifierBeta BNNSPointerSpecifier = 1 )
func (BNNSPointerSpecifier) String ¶
func (e BNNSPointerSpecifier) String() string
String returns the BNNSPointerSpecifier constant's name, or its numeric form when the value is not a known constant.
type BNNSPoolingFunction ¶
type BNNSPoolingFunction uint32
Constants that describe pooling functions.
const ( // A function for pooling that computes the maximum of each element in the pooling kernel. BNNSPoolingFunctionMax BNNSPoolingFunction = 0 BNNSPoolingFunctionAverageCountIncludePadding BNNSPoolingFunction = 1 BNNSPoolingFunctionAverageCountExcludePadding BNNSPoolingFunction = 2 BNNSPoolingFunctionUnMax BNNSPoolingFunction = 3 BNNSPoolingFunctionL2Norm BNNSPoolingFunction = 4 // A function for pooling that computes the average of each element in the pooling kernel. // // Deprecated: since macOS 11.0. BNNSPoolingFunctionAverage BNNSPoolingFunction = 1 )
func (BNNSPoolingFunction) String ¶
func (e BNNSPoolingFunction) String() string
String returns the BNNSPoolingFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSQuantizerFunction ¶
type BNNSQuantizerFunction uint32
Constants that describe quantization functions.
const ( BNNSQuantizerFunctionQuantize BNNSQuantizerFunction = 0 BNNSQuantizerFunctionDequantize BNNSQuantizerFunction = 1 )
func (BNNSQuantizerFunction) String ¶
func (e BNNSQuantizerFunction) String() string
String returns the BNNSQuantizerFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSRandomGeneratorMethod ¶
type BNNSRandomGeneratorMethod uint32
Constants that describe random number generation methods.
const (
BNNSRandomGeneratorMethodAES_CTR BNNSRandomGeneratorMethod = 0
)
func (BNNSRandomGeneratorMethod) String ¶
func (e BNNSRandomGeneratorMethod) String() string
String returns the BNNSRandomGeneratorMethod constant's name, or its numeric form when the value is not a known constant.
type BNNSReduceFunction ¶
type BNNSReduceFunction uint32
Constants that describe reduction functions.
const ( BNNSReduceFunctionMax BNNSReduceFunction = 0 BNNSReduceFunctionMin BNNSReduceFunction = 1 BNNSReduceFunctionArgMax BNNSReduceFunction = 2 BNNSReduceFunctionArgMin BNNSReduceFunction = 3 BNNSReduceFunctionMean BNNSReduceFunction = 4 BNNSReduceFunctionMeanNonZero BNNSReduceFunction = 5 BNNSReduceFunctionSum BNNSReduceFunction = 6 BNNSReduceFunctionSumSquare BNNSReduceFunction = 7 BNNSReduceFunctionSumLog BNNSReduceFunction = 8 BNNSReduceFunctionL1Norm BNNSReduceFunction = 9 BNNSReduceFunctionLogicalOr BNNSReduceFunction = 10 BNNSReduceFunctionLogicalAnd BNNSReduceFunction = 11 BNNSReduceFunctionL2Norm BNNSReduceFunction = 12 BNNSReduceFunctionLogSumExp BNNSReduceFunction = 13 BNNSReduceFunctionProduct BNNSReduceFunction = 14 BNNSReduceFunctionNone BNNSReduceFunction = 15 BNNSReduceFunctionLogSum BNNSReduceFunction = 16 BNNSReduceFunctionAny BNNSReduceFunction = 10 BNNSReduceFunctionAll BNNSReduceFunction = 11 )
func (BNNSReduceFunction) String ¶
func (e BNNSReduceFunction) String() string
String returns the BNNSReduceFunction constant's name, or its numeric form when the value is not a known constant.
type BNNSRelationalOperator ¶
type BNNSRelationalOperator uint32
Constants that describe relational operations.
const ( BNNSRelationalOperatorEqual BNNSRelationalOperator = 0 BNNSRelationalOperatorLess BNNSRelationalOperator = 1 BNNSRelationalOperatorLessEqual BNNSRelationalOperator = 2 BNNSRelationalOperatorGreater BNNSRelationalOperator = 3 BNNSRelationalOperatorGreaterEqual BNNSRelationalOperator = 4 BNNSRelationalOperatorNotEqual BNNSRelationalOperator = 5 BNNSRelationalOperatorLogicalAND BNNSRelationalOperator = 6 BNNSRelationalOperatorLogicalOR BNNSRelationalOperator = 7 BNNSRelationalOperatorLogicalNOT BNNSRelationalOperator = 8 BNNSRelationalOperatorLogicalNAND BNNSRelationalOperator = 9 BNNSRelationalOperatorLogicalNOR BNNSRelationalOperator = 10 BNNSRelationalOperatorLogicalXOR BNNSRelationalOperator = 11 )
func (BNNSRelationalOperator) String ¶
func (e BNNSRelationalOperator) String() string
String returns the BNNSRelationalOperator constant's name, or its numeric form when the value is not a known constant.
type BNNSShuffleType ¶
type BNNSShuffleType uint32
Constants that specify a shuffle type.
const ( BNNSShuffleTypePixelShuffleNCHW BNNSShuffleType = 0 BNNSShuffleTypePixelUnshuffleNCHW BNNSShuffleType = 1 BNNSShuffleTypeDepthToSpaceNCHW BNNSShuffleType = 2 BNNSShuffleTypeSpaceToDepthNCHW BNNSShuffleType = 3 )
func (BNNSShuffleType) String ¶
func (e BNNSShuffleType) String() string
String returns the BNNSShuffleType constant's name, or its numeric form when the value is not a known constant.
type BNNSSparsityType ¶
type BNNSSparsityType uint32
const (
BNNSSparsityTypeUnstructured BNNSSparsityType = 0
)
func (BNNSSparsityType) String ¶
func (e BNNSSparsityType) String() string
String returns the BNNSSparsityType constant's name, or its numeric form when the value is not a known constant.
type BNNSTargetSystem ¶
type BNNSTargetSystem uint32
const (
BNNSTargetSystemGeneric BNNSTargetSystem = 0
)
func (BNNSTargetSystem) String ¶
func (e BNNSTargetSystem) String() string
String returns the BNNSTargetSystem constant's name, or its numeric form when the value is not a known constant.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int32
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type QuadratureIntegrator ¶ added in v0.17.0
type QuadratureIntegrator int32
Constants that specify integration algorithms.
const ( QuadratureIntegratorQng QuadratureIntegrator = 0 QuadratureIntegratorQag QuadratureIntegrator = 1 QuadratureIntegratorQags QuadratureIntegrator = 2 )
func (QuadratureIntegrator) String ¶ added in v0.17.0
func (e QuadratureIntegrator) String() string
String returns the QuadratureIntegrator constant's name, or its numeric form when the value is not a known constant.
type QuadratureStatus ¶ added in v0.17.0
type QuadratureStatus int32
Constants that indicate the status of a quadrature operation.
const ( QuadratureStatusSuccess QuadratureStatus = 0 QuadratureStatusError QuadratureStatus = -1 QuadratureStatusInvalidArgError QuadratureStatus = -2 QuadratureStatusAllocError QuadratureStatus = -3 QuadratureStatusInternalError QuadratureStatus = -99 QuadratureStatusIntegrateMaxEvalError QuadratureStatus = -101 QuadratureStatusIntegrateBadBehaviourError QuadratureStatus = -102 )
func (QuadratureStatus) String ¶ added in v0.17.0
func (e QuadratureStatus) String() string
String returns the QuadratureStatus constant's name, or its numeric form when the value is not a known constant.
type SparseIterativeMethod_t ¶ added in v0.17.0
type SparseIterativeMethod_t int32
func (SparseIterativeMethod_t) String ¶ added in v0.17.0
func (e SparseIterativeMethod_t) String() string
String returns the SparseIterativeMethod_t constant's name, or its numeric form when the value is not a known constant.
type SparseMatrixProperty ¶ added in v0.17.0
type SparseMatrixProperty int32
The matrix property type.
const ( SparseMatrixPropertyUpperTriangular SparseMatrixProperty = 1 SparseMatrixPropertyLowerTriangular SparseMatrixProperty = 2 SparseMatrixPropertyUpperSymmetric SparseMatrixProperty = 4 SparseMatrixPropertyLowerSymmetric SparseMatrixProperty = 8 )
func (SparseMatrixProperty) String ¶ added in v0.17.0
func (e SparseMatrixProperty) String() string
String returns the SparseMatrixProperty constant's name, or its numeric form when the value is not a known constant.
type SparseNorm ¶ added in v0.17.0
type SparseNorm int32
The norm specifier.
const ( SparseNormOne SparseNorm = 171 SparseNormTwo SparseNorm = 173 SparseNormInf SparseNorm = 175 SparseNormR1 SparseNorm = 179 )
func (SparseNorm) String ¶ added in v0.17.0
func (e SparseNorm) String() string
String returns the SparseNorm constant's name, or its numeric form when the value is not a known constant.
type SparseStatus ¶ added in v0.17.0
type SparseStatus int32
The type reflecting the status of an operations.
const ( SparseStatusSuccess SparseStatus = 0 SparseStatusIllegalParameter SparseStatus = -1000 SparseStatusCannotSetProperty SparseStatus = -1001 SparseStatusSystemError SparseStatus = -1002 )
func (SparseStatus) String ¶ added in v0.17.0
func (e SparseStatus) String() string
String returns the SparseStatus constant's name, or its numeric form when the value is not a known constant.
type Sparsecontrol ¶ added in v0.17.0
type Sparsecontrol uint32
Options that control the computation.
const (
SparseDefaultControl Sparsecontrol = 0
)
func (Sparsecontrol) String ¶ added in v0.17.0
func (e Sparsecontrol) String() string
String returns the Sparsecontrol constant's name, or its numeric form when the value is not a known constant.
type Sparsefactorization ¶ added in v0.17.0
type Sparsefactorization uint8
Constants that define the factorization type.
const ( SparseFactorizationCholesky Sparsefactorization = 0 SparseFactorizationLDLT Sparsefactorization = 1 SparseFactorizationLDLTUnpivoted Sparsefactorization = 2 SparseFactorizationLDLTSBK Sparsefactorization = 3 SparseFactorizationLDLTTPP Sparsefactorization = 4 SparseFactorizationQR Sparsefactorization = 40 SparseFactorizationCholeskyAtA Sparsefactorization = 41 SparseFactorizationLU Sparsefactorization = 80 SparseFactorizationLUUnpivoted Sparsefactorization = 81 SparseFactorizationLUSPP Sparsefactorization = 82 SparseFactorizationLUTPP Sparsefactorization = 83 )
func (Sparsefactorization) String ¶ added in v0.17.0
func (e Sparsefactorization) String() string
String returns the Sparsefactorization constant's name, or its numeric form when the value is not a known constant.
type Sparsegmresvariant ¶ added in v0.17.0
type Sparsegmresvariant uint8
Defines the exact variant of GMRES to implement
const ( SparseVariantDQGMRES Sparsegmresvariant = 0 SparseVariantGMRES Sparsegmresvariant = 1 SparseVariantFGMRES Sparsegmresvariant = 2 )
func (Sparsegmresvariant) String ¶ added in v0.17.0
func (e Sparsegmresvariant) String() string
String returns the Sparsegmresvariant constant's name, or its numeric form when the value is not a known constant.
type Sparseiterativestatus ¶ added in v0.17.0
type Sparseiterativestatus int32
Constants that define the status of the iterative solve.
const ( SparseIterativeConverged Sparseiterativestatus = 0 SparseIterativeMaxIterations Sparseiterativestatus = 1 SparseIterativeParameterError Sparseiterativestatus = -1 SparseIterativeIllConditioned Sparseiterativestatus = -2 SparseIterativeInternalError Sparseiterativestatus = -99 )
func (Sparseiterativestatus) String ¶ added in v0.17.0
func (e Sparseiterativestatus) String() string
String returns the Sparseiterativestatus constant's name, or its numeric form when the value is not a known constant.
type Sparsekind ¶ added in v0.17.0
type Sparsekind uint32
A structure that defines whether the matrix is ordinary, symmetric, or triangular.
const ( SparseOrdinary Sparsekind = 0 SparseTriangular Sparsekind = 1 SparseUnitTriangular Sparsekind = 2 SparseSymmetric Sparsekind = 3 SparseHermitian Sparsekind = 7 )
func (Sparsekind) String ¶ added in v0.17.0
func (e Sparsekind) String() string
String returns the Sparsekind constant's name, or its numeric form when the value is not a known constant.
type Sparselsmrconvergencetest ¶ added in v0.17.0
type Sparselsmrconvergencetest int32
Constants that specify the type of convergence test.
const ( SparseLSMRCTDefault Sparselsmrconvergencetest = 0 SparseLSMRCTFongSaunders Sparselsmrconvergencetest = 1 )
func (Sparselsmrconvergencetest) String ¶ added in v0.17.0
func (e Sparselsmrconvergencetest) String() string
String returns the Sparselsmrconvergencetest constant's name, or its numeric form when the value is not a known constant.
type Sparseorder ¶ added in v0.17.0
type Sparseorder uint8
Options that define which ordering algorithm to use.
const ( SparseOrderDefault Sparseorder = 0 SparseOrderUser Sparseorder = 1 SparseOrderAMD Sparseorder = 2 SparseOrderMetis Sparseorder = 3 SparseOrderCOLAMD Sparseorder = 4 SparseOrderMTMetis Sparseorder = 5 )
func (Sparseorder) String ¶ added in v0.17.0
func (e Sparseorder) String() string
String returns the Sparseorder constant's name, or its numeric form when the value is not a known constant.
type Sparsepreconditioner ¶ added in v0.17.0
type Sparsepreconditioner int32
Constants that define the preconditioner type.
const ( SparsePreconditionerNone Sparsepreconditioner = 0 SparsePreconditionerUser Sparsepreconditioner = 1 SparsePreconditionerDiagonal Sparsepreconditioner = 2 SparsePreconditionerDiagScaling Sparsepreconditioner = 3 )
func (Sparsepreconditioner) String ¶ added in v0.17.0
func (e Sparsepreconditioner) String() string
String returns the Sparsepreconditioner constant's name, or its numeric form when the value is not a known constant.
type Sparsescaling ¶ added in v0.17.0
type Sparsescaling uint8
Options that define which scaling algorithm to use.
const ( SparseScalingDefault Sparsescaling = 0 SparseScalingUser Sparsescaling = 1 SparseScalingEquilibriationInf Sparsescaling = 2 SparseScalingHungarianScalingOnly Sparsescaling = 3 SparseScalingHungarianScalingAndOrdering Sparsescaling = 4 )
func (Sparsescaling) String ¶ added in v0.17.0
func (e Sparsescaling) String() string
String returns the Sparsescaling constant's name, or its numeric form when the value is not a known constant.
type Sparsestatus ¶ added in v0.17.0
type Sparsestatus int32
Constants that describe the status of a factorization.
const ( SparseStatusOK Sparsestatus = 0 SparseFactorizationFailed Sparsestatus = -1 SparseMatrixIsSingular Sparsestatus = -2 SparseInternalError Sparsestatus = -3 SparseParameterError Sparsestatus = -4 SparseStatusReleased Sparsestatus = -2147483647 )
func (Sparsestatus) String ¶ added in v0.17.0
func (e Sparsestatus) String() string
String returns the Sparsestatus constant's name, or its numeric form when the value is not a known constant.
type Sparsesubfactor ¶ added in v0.17.0
type Sparsesubfactor uint8
Constants that define the subfactor of a factorization.
const ( SparseSubfactorInvalid Sparsesubfactor = 0 SparseSubfactorP Sparsesubfactor = 1 SparseSubfactorS Sparsesubfactor = 2 SparseSubfactorL Sparsesubfactor = 3 SparseSubfactorD Sparsesubfactor = 4 SparseSubfactorPLPS Sparsesubfactor = 5 SparseSubfactorQ Sparsesubfactor = 6 SparseSubfactorR Sparsesubfactor = 7 SparseSubfactorRP Sparsesubfactor = 8 SparseSubfactorSr Sparsesubfactor = 9 SparseSubfactorSc Sparsesubfactor = 10 )
func (Sparsesubfactor) String ¶ added in v0.17.0
func (e Sparsesubfactor) String() string
String returns the Sparsesubfactor constant's name, or its numeric form when the value is not a known constant.
type Sparsetriangle ¶ added in v0.17.0
type Sparsetriangle uint8
A structure that defines which triangle a symmetric matrix stores, or whether a triangular matrix is upper or lower.
const ( SparseUpperTriangle Sparsetriangle = 0 SparseLowerTriangle Sparsetriangle = 1 )
func (Sparsetriangle) String ¶ added in v0.17.0
func (e Sparsetriangle) String() string
String returns the Sparsetriangle constant's name, or its numeric form when the value is not a known constant.
type Sparseupdate ¶ added in v0.17.0
type Sparseupdate uint8
Low-rank update algorithm selector
const (
SparseUpdatePartialRefactor Sparseupdate = 0
)
func (Sparseupdate) String ¶ added in v0.17.0
func (e Sparseupdate) String() string
String returns the Sparseupdate constant's name, or its numeric form when the value is not a known constant.
type VImageARGBType ¶
type VImageARGBType int32
Constants that describe the encoding of an ARGB image for conversions between RGB and YpCbCr.
const ( KvImageARGB8888 VImageARGBType = 0 KvImageARGB16U VImageARGBType = 1 KvImageARGB16Q12 VImageARGBType = 2 )
func (VImageARGBType) String ¶
func (e VImageARGBType) String() string
String returns the VImageARGBType constant's name, or its numeric form when the value is not a known constant.
type VImageMDTableUsageHint ¶
type VImageMDTableUsageHint int32
Constants that indicate the use for a multidimensional lookup table.
const ( KvImageMDTableHint_16Q12 VImageMDTableUsageHint = 1 KvImageMDTableHint_Float VImageMDTableUsageHint = 2 )
func (VImageMDTableUsageHint) String ¶
func (e VImageMDTableUsageHint) String() string
String returns the VImageMDTableUsageHint constant's name, or its numeric form when the value is not a known constant.
type VImageYpCbCrType ¶
type VImageYpCbCrType int32
Constants that describe the encoding of a YpCbCr image for conversions between RGB and YpCbCr.
const ( KvImage422CbYpCrYp8 VImageYpCbCrType = 0 KvImage422YpCbYpCr8 VImageYpCbCrType = 1 KvImage422CbYpCrYp8_AA8 VImageYpCbCrType = 2 KvImage420Yp8_Cb8_Cr8 VImageYpCbCrType = 3 KvImage420Yp8_CbCr8 VImageYpCbCrType = 4 KvImage444AYpCbCr8 VImageYpCbCrType = 5 KvImage444CrYpCb8 VImageYpCbCrType = 6 KvImage444CbYpCrA8 VImageYpCbCrType = 7 KvImage444CrYpCb10 VImageYpCbCrType = 8 KvImage422CrYpCbYpCbYpCbYpCrYpCrYp10 VImageYpCbCrType = 9 KvImage422CbYpCrYp16 VImageYpCbCrType = 13 KvImage444AYpCbCr16 VImageYpCbCrType = 14 )
func (VImageYpCbCrType) String ¶
func (e VImageYpCbCrType) String() string
String returns the VImageYpCbCrType constant's name, or its numeric form when the value is not a known constant.
type VimageInterpolationmethod ¶ added in v0.17.0
type VimageInterpolationmethod int32
Constants that represent different interpolation methods.
const ( KvImageNoInterpolation VimageInterpolationmethod = 0 KvImageFullInterpolation VimageInterpolationmethod = 1 KvImageHalfInterpolation VimageInterpolationmethod = 2 )
func (VimageInterpolationmethod) String ¶ added in v0.17.0
func (e VimageInterpolationmethod) String() string
String returns the VimageInterpolationmethod constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.