Search Results for

    Show / Hide Table of Contents

    Class SkipIfAnyExceptIndexIsUniformAttribute

    The result is uniform (or an exception would be thrown) if any element except at the result index is uniform, hence the function call can be skipped.

    Inheritance
    Object
    Attribute
    SkipIfAnyExceptIndexIsUniformAttribute
    Inherited Members
    Attribute.Equals(Object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, Boolean)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, Boolean)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, Boolean)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, Boolean)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, Boolean)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, Boolean)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, Boolean)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, Boolean)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, Boolean)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, Boolean)
    Attribute.Match(Object)
    Attribute.TypeId
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Factors.Attributes
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public class SkipIfAnyExceptIndexIsUniformAttribute : Attribute
    Remarks

    Examples:

    • f([SkipIfAnyExceptIndexIsUniform] Message[] array, int resultIndex)Since no dependency attribute was given, the default is that f depends on all elements of the array. Since SkipIfAnyExceptIndexIsUniform was given, f returns uniform (or throws an exception) if any elements except the one at resultIndex is uniform. Thus array[resultIndex] is a dependency but its uniformity is ignored.
    • f([AllExceptIndex,SkipIfAnyExceptIndexIsUniform] Message[] array, int resultIndex)In this case, f depends on all elements other than resultIndex, and returns uniform (or throws an exception) if any of them are uniform. Thus it is equivalent to [AllExceptIndex,SkipIfUniform]
    • f([MatchingIndex,SkipIfAnyExceptIndexIsUniform] Message[] array, int resultIndex)Here SkipIfAnyExceptIndexIsUniform is ignored since f only depends on array[resultIndex].
    This attribute can be stacked with the other SkipIfUniform attributes, to build up a set of skip cases.
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.