Show / Hide Table of Contents

Class ComputationBase<TIn1, TIn2>

Represents a computation that transforms two inputs

Inheritance
object
Computation
ComputationBase<TIn1, TIn2>
InPlaceComputation<TIn1, TIn2>
TransformationComputation<TIn1, TIn2, TOut>
Implements
IPersistor
ITraceEntry
Inherited Members
Computation.TransformationContext
Computation.Context
Computation.InputArguments
Computation.CreateInputArray()
Computation.Output
Computation.ThrowDelayedException()
Computation.MarkRequire(Computation, bool, ITransformationRuleDependency)
Computation.OutputCore
Computation.OutputInitialized
Computation.Computed
Computation.DelayOutputAtLeast(byte)
Computation.DelayTransformationAtLeast(byte)
Computation.OnOutputInitialized(EventArgs)
Computation.IsDelayed
Computation.OnComputed(EventArgs)
Computation.Transform()
Computation.CreateOutput(IEnumerable)
Computation.InitializeOutput(object)
Computation.SetBaseComputation(Computation)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public abstract class ComputationBase<TIn1, TIn2> : Computation, IPersistor, ITraceEntry where TIn1 : class where TIn2 : class
Type Parameters
Name Description
TIn1

The type of the first input

TIn2

The type of the second input

Constructors

| Edit this page View Source

ComputationBase(GeneralTransformationRule<TIn1, TIn2>, IComputationContext, TIn1, TIn2)

Creates a new computation within the given transformation context for the given input

Declaration
protected ComputationBase(GeneralTransformationRule<TIn1, TIn2> transformationRule, IComputationContext context, TIn1 input1, TIn2 input2)
Parameters
Type Name Description
GeneralTransformationRule<TIn1, TIn2> transformationRule

The transformation rule that was used to transform the input

IComputationContext context

The context of this transformation

TIn1 input1

The first input for this transformation

TIn2 input2

The second input for this transformation

Properties

| Edit this page View Source

Input1

Gets the first input argument for this computation

Declaration
public TIn1 Input1 { get; }
Property Value
Type Description
TIn1
| Edit this page View Source

Input2

Gets the second input argument for this computation

Declaration
public TIn2 Input2 { get; }
Property Value
Type Description
TIn2
| Edit this page View Source

TransformationRule

Gets the transformation rule, which has been used to compute this computation

Declaration
public GeneralTransformationRule<TIn1, TIn2> TransformationRule { get; }
Property Value
Type Description
GeneralTransformationRule<TIn1, TIn2>

Methods

| Edit this page View Source

GetInput(int)

Gets the input argument for this computation with the given index

Declaration
public override object GetInput(int index)
Parameters
Type Name Description
int index

The index of the input parameter

Returns
Type Description
object

The input parameter at the ith position

Overrides
Computation.GetInput(int)

Implements

IPersistor
ITraceEntry

Extension Methods

TraceEntryExtensions.CreateInputArray(ITraceEntry)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX