VectorValidator

Helpers & Utilities · AiDotNet.Validation

Provides validation methods for vectors and related operations.

Methods

Method Summary
void ValidateLength(Vector<T> vector, int expectedLength, string component, string operation) Validates that the vector length matches the expected length.
void ValidateLengthForShape(Vector<T> vector, int[] expectedShape, string component, string operation) Validates that the vector length matches the expected size based on the shape.