VectorFieldWriteThroughSource<T>

Models & Types · AiDotNet.Models.Parameters

A Vector field exposed as a parameter surface, written through.

Implements: IParameterLayoutSource, IParameterSource<T>

How It Works

Distinct from VectorFieldParameterSource, which REPLACES the vector on restore and therefore needs a setter. This one writes into the existing instance, so it works on a readonly field and cannot leave a caller holding a detached vector.

Constructors

Constructor Summary
VectorFieldWriteThroughSource(Func<Vector<T>> accessor) Creates a source over whatever vector accessor currently returns.

Properties

Property Summary
long ParameterCount { get; }

Methods

Method Summary
IReadOnlyList<ParameterSlotDescriptor> GetParameterLayout()
Vector<T> GetParameters()
void SetParameters(Vector<T> parameters)