Class VariableArrayBase<TItem, TArray>
Represents a jagged variable array of arbitrary rank
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public abstract class VariableArrayBase<TItem, TArray> : Variable<TArray>, CanGetContainers, IModelExpression<TArray>, SettableTo<Variable<TArray>>, ICloneable, HasItemVariables, IVariableArray, IVariable, IModelExpression, HasObservedValue, IVariableJaggedArray where TItem : Variable, ICloneable, SettableTo<TItem>
Type Parameters
Name | Description |
---|---|
TItem | The item variable type. |
TArray | The domain type of the array. |
Remarks
TItem is either a VariableArray<T> or another VariableArray<,>
Constructors
VariableArrayBase(VariableArrayBase<TItem, TArray>)
Copy constructor.
Declaration
protected VariableArrayBase(VariableArrayBase<TItem, TArray> array)
Parameters
Type | Name | Description |
---|---|---|
VariableArrayBase<TItem, TArray> | array |
Fields
itemPrototype
Declaration
protected TItem itemPrototype
Field Value
Type | Description |
---|---|
TItem |
Properties
Item[IModelExpression[]]
Declaration
protected TItem this[params IModelExpression[] index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
IModelExpression[] | index |
Property Value
Type | Description |
---|---|
TItem |
Item[Range[]]
Declaration
protected TItem this[params Range[] index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Range[] | index |
Property Value
Type | Description |
---|---|
TItem |
Ranges
List of ranges associated with the array
Declaration
public IList<Range> Ranges { get; }
Property Value
Type | Description |
---|---|
IList<Range> |
Methods
SetTo(VariableArrayBase<TItem, TArray>)
Set the variable array to the given value
Declaration
public void SetTo(VariableArrayBase<TItem, TArray> that)
Parameters
Type | Name | Description |
---|---|---|
VariableArrayBase<TItem, TArray> | that |
Explicit Interface Implementations
HasItemVariables.GetItemsUntyped()
Declaration
Dictionary<IReadOnlyList<IModelExpression>, IVariable> HasItemVariables.GetItemsUntyped()
Returns
Type | Description |
---|---|
Dictionary<IReadOnlyList<IModelExpression>, IVariable> |
IVariableArray.ReplaceRanges(Dictionary<Range, Range>, Dictionary<IModelExpression, IModelExpression>, Boolean)
Declaration
IVariableArray IVariableArray.ReplaceRanges(Dictionary<Range, Range> rangeReplacements, Dictionary<IModelExpression, IModelExpression> expressionReplacements, bool deepCopy)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<Range, Range> | rangeReplacements | |
Dictionary<IModelExpression, IModelExpression> | expressionReplacements | |
Boolean | deepCopy |
Returns
Type | Description |
---|---|
IVariableArray |
IVariableJaggedArray.ItemPrototype
Declaration
IVariable IVariableJaggedArray.ItemPrototype { get; }
Returns
Type | Description |
---|---|
IVariable |