From 8666dc47037b4564a424ca48a6b24df4278bfd13 Mon Sep 17 00:00:00 2001 From: hzhang Date: Thu, 12 Dec 2024 12:19:24 +0000 Subject: [PATCH] improve: move planned features auto registry to features --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6047762..4eb9de9 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,12 @@ Other modules such as morphisms, groups, rings, and fields are under development - Vector spaces and Affine space operations - Analytic functions, Polynomials, and Bivariant functions - Sampling of Special Matrices +- Auto-registration for custom fields and dimensions ## Planned Features - Statistics: Hypothesis testing - Algebra: Group and Ring operations -- Auto-registration for custom fields and dimensions ## Supported Matrix Types @@ -123,6 +123,7 @@ public interface IDimX #### Custom Field To use a custom field, implement a FieldStructure class with the following required methods: ```csharp +[CustomFieldStructure] class CustomFieldStructure : FieldStructure { abstract TScalar Addition(TScalar self, TScalar other); @@ -158,10 +159,6 @@ virtual TScalar Subtraction(TScalar self, TScalar other); ``` -Finally, register the custom field: -```csharp -ScalarFieldStructureProvider.Register(new CustomFieldStructure()); -``` ## License [MIT][license] © [hzhang][author]