Change Remote
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
|
<s:String x:Key="/Default/Environment/Hierarchy/Build/BuildTool/CustomBuildToolPath/@EntryValue">/usr/lib/dotnet/sdk/8.0.110/MSBuild.dll</s:String>
|
||||||
|
<s:String x:Key="/Default/Environment/Hierarchy/Build/BuildTool/DotNetCliExePath/@EntryValue">/usr/lib/dotnet/dotnet</s:String>
|
||||||
|
<s:Int64 x:Key="/Default/Environment/Hierarchy/Build/BuildTool/MsbuildVersion/@EntryValue">4294967294</s:Int64>
|
||||||
|
<s:Boolean x:Key="/Default/Environment/Hierarchy/Build/BuildTool/RecentBuildToolPaths/=_002Fusr_002Flib_002Fdotnet_002Fsdk_002F8_002E0_002E110_002FMSBuild_002Edll/@EntryIndexedValue">True</s:Boolean>
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=996f1696_002D38c8_002D48d8_002Da948_002Ddaa24c1498f3/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" Name="All tests from Solution" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=996f1696_002D38c8_002D48d8_002Da948_002Ddaa24c1498f3/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" Name="All tests from Solution" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
||||||
<Solution />
|
<Solution />
|
||||||
</SessionState></s:String>
|
</SessionState></s:String>
|
||||||
|
|||||||
@@ -3,10 +3,9 @@ using Skeleton.Algebra.AffineSpaces;
|
|||||||
using Skeleton.Algebra.DimensionProviders;
|
using Skeleton.Algebra.DimensionProviders;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
|
||||||
|
|
||||||
using AffineC2Space = Algebra.CategoryOf<IDim2>.OnField<Complex>.FAffineSpace;
|
using AffineC2Space = Algebra.CategoryOf<IDim2>.OnField<Complex>.FAffineSpace;
|
||||||
public static class AffineSpaceTest
|
[TestFixture]
|
||||||
|
public class AffineSpaceTest : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public static void BasicAffineSpaceTest()
|
public static void BasicAffineSpaceTest()
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ using Skeleton.Algebra.Extensions;
|
|||||||
using Skeleton.Analysis.AnalyticFunctions.Polynomials.Implements;
|
using Skeleton.Analysis.AnalyticFunctions.Polynomials.Implements;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class AlgebraMiscTest
|
public class AlgebraMiscTest : BaseTest
|
||||||
{
|
{
|
||||||
|
|
||||||
private static readonly Complex ii = new Complex(0, 1);
|
private static readonly Complex ii = new Complex(0, 1);
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using System.Linq;
|
|||||||
using Skeleton.DataStructure;
|
using Skeleton.DataStructure;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class CacheItemTest
|
public class CacheItemTest : BaseTest
|
||||||
{
|
{
|
||||||
|
|
||||||
private class TestClass
|
private class TestClass
|
||||||
|
|||||||
@@ -4,14 +4,19 @@ using System.Numerics;
|
|||||||
using Skeleton.Algebra.Extensions;
|
using Skeleton.Algebra.Extensions;
|
||||||
using Skeleton.Samples;
|
using Skeleton.Samples;
|
||||||
using Skeleton.Utils;
|
using Skeleton.Utils;
|
||||||
|
using Skeleton.Utils.Helpers;
|
||||||
|
using Skeleton.Utils.RandomEngines;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public class CayleySU3Test
|
public class CayleySU3Test : BaseTest
|
||||||
{
|
{
|
||||||
|
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
private static readonly LieSU3[] Data = 40.ScaleSamples(-1, 1).LieSU3LogSU3Samples().ToArray();
|
private static readonly LieSU3[] Data = 40
|
||||||
|
.WithSeed(Seed)
|
||||||
|
.ScaleSamples(-1, 1)
|
||||||
|
.LieSU3LogSU3Samples()
|
||||||
|
.ToArray();
|
||||||
private static Action<LieSU3> OnFail = x => Console.WriteLine(x.CSharpRepresentation);
|
private static Action<LieSU3> OnFail = x => Console.WriteLine(x.CSharpRepresentation);
|
||||||
[Theory]
|
[Theory]
|
||||||
public static void TestCayleyForLieSU3(LieSU3 data)
|
public static void TestCayleyForLieSU3(LieSU3 data)
|
||||||
|
|||||||
@@ -4,13 +4,18 @@ using System.Numerics;
|
|||||||
using Skeleton.Algebra.Extensions;
|
using Skeleton.Algebra.Extensions;
|
||||||
using Skeleton.Samples;
|
using Skeleton.Samples;
|
||||||
using Skeleton.Utils;
|
using Skeleton.Utils;
|
||||||
|
using Skeleton.Utils.Helpers;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class CayleySU4Test
|
public class CayleySU4Test : BaseTest
|
||||||
{
|
{
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
private static readonly LieSU4[] Data = 40.ScaleSamples(-1, 1).LieSU4LogSU4Samples().ToArray();
|
private static readonly LieSU4[] Data = 40
|
||||||
|
.WithSeed(Seed)
|
||||||
|
.ScaleSamples(-1, 1)
|
||||||
|
.LieSU4LogSU4Samples()
|
||||||
|
.ToArray();
|
||||||
private static Action<LieSU4> OnFail = x => Console.WriteLine(x.CSharpRepresentation);
|
private static Action<LieSU4> OnFail = x => Console.WriteLine(x.CSharpRepresentation);
|
||||||
[Theory]
|
[Theory]
|
||||||
public static void TestCayleyForLieSU4(LieSU4 data)
|
public static void TestCayleyForLieSU4(LieSU4 data)
|
||||||
|
|||||||
@@ -3,13 +3,18 @@ using System.Linq;
|
|||||||
using Skeleton.Algebra.Extensions;
|
using Skeleton.Algebra.Extensions;
|
||||||
using Skeleton.Samples;
|
using Skeleton.Samples;
|
||||||
using Skeleton.Utils;
|
using Skeleton.Utils;
|
||||||
|
using Skeleton.Utils.Helpers;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class CayleyTransformationTest
|
public class CayleyTransformationTest : BaseTest
|
||||||
{
|
{
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
private static readonly LieSU2[] Data = 40.ScaleSamples(-1, 1).LieSU2LogSU2Samples().ToArray();
|
private static readonly LieSU2[] Data = 40
|
||||||
|
.WithSeed(Seed)
|
||||||
|
.ScaleSamples(-1, 1)
|
||||||
|
.LieSU2LogSU2Samples()
|
||||||
|
.ToArray();
|
||||||
private static Action<LieSU2> OnFail = x => Console.WriteLine(x.CSharpRepresentation);
|
private static Action<LieSU2> OnFail = x => Console.WriteLine(x.CSharpRepresentation);
|
||||||
[Theory]
|
[Theory]
|
||||||
public static void TestCayleyForLieSU2(LieSU2 data)
|
public static void TestCayleyForLieSU2(LieSU2 data)
|
||||||
|
|||||||
@@ -6,14 +6,17 @@ using Skeleton.Algebra.ScalarFieldStructure;
|
|||||||
using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
||||||
using Skeleton.Samples;
|
using Skeleton.Samples;
|
||||||
using Skeleton.Utils;
|
using Skeleton.Utils;
|
||||||
|
using Skeleton.Utils.Helpers;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class DecompositionTest
|
public class DecompositionTest : BaseTest
|
||||||
{
|
{
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
public static readonly IEnumerable<C44> TestMatrices =
|
public static readonly IEnumerable<C44> TestMatrices = 100
|
||||||
100.ScaleSamples(-1, 1).C44InvertibleSamples();
|
.WithSeed(Seed)
|
||||||
|
.ScaleSamples(-1, 1)
|
||||||
|
.C44InvertibleSamples();
|
||||||
|
|
||||||
private static readonly Action<C44> OnFail = x =>
|
private static readonly Action<C44> OnFail = x =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public class DraftTest
|
public class DraftTest : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public void QRDraftTest()
|
public void QRDraftTest()
|
||||||
|
|||||||
@@ -4,15 +4,19 @@ using System.Numerics;
|
|||||||
using Skeleton.Algebra.Extensions;
|
using Skeleton.Algebra.Extensions;
|
||||||
using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
||||||
using Skeleton.Samples;
|
using Skeleton.Samples;
|
||||||
|
using Skeleton.Utils.Helpers;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public class EigenDecompositionTest
|
public class EigenDecompositionTest : BaseTest
|
||||||
{
|
{
|
||||||
private static readonly Complex I = Complex.ImaginaryOne;
|
private static readonly Complex I = Complex.ImaginaryOne;
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
public static readonly C22[] DataPoints =
|
public static readonly C22[] DataPoints = 30
|
||||||
30.ScaleSamples(-1, 1).C22InvertibleSamples().ToArray();
|
.WithSeed(Seed)
|
||||||
|
.ScaleSamples(-1, 1)
|
||||||
|
.C22InvertibleSamples()
|
||||||
|
.ToArray();
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
public static void DecompositionIdentityTest(C22 data)
|
public static void DecompositionIdentityTest(C22 data)
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using Skeleton.Algebra.Matrices;
|
|||||||
using Skeleton.Constants;
|
using Skeleton.Constants;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class EigenValueTest
|
public class EigenValueTest : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public static void AlgebraicMultiplicityTest()
|
public static void AlgebraicMultiplicityTest()
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using Skeleton.Algebra.ScalarFieldStructure;
|
using Skeleton.Algebra.ScalarFieldStructure;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class FieldStructureTest
|
public class FieldStructureTest : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public static void EqualTest()
|
public static void EqualTest()
|
||||||
|
|||||||
@@ -4,12 +4,16 @@ using Skeleton.Samples;
|
|||||||
using Skeleton.Utils.Helpers;
|
using Skeleton.Utils.Helpers;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class JordanPowerTest
|
public class JordanPowerTest : BaseTest
|
||||||
{
|
{
|
||||||
private static readonly Complex ii = new Complex(0, 1);
|
private static readonly Complex ii = new Complex(0, 1);
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
public static readonly Complex[] Basic0TestData = 10.ScaleSamples(-1, 1).UCSamples().ToArray();
|
public static readonly Complex[] Basic0TestData = 10
|
||||||
|
.WithSeed(Seed)
|
||||||
|
.ScaleSamples(-1, 1)
|
||||||
|
.UCSamples()
|
||||||
|
.ToArray();
|
||||||
[Theory]
|
[Theory]
|
||||||
public static void J22TestBasic0(Complex eigenValue)
|
public static void J22TestBasic0(Complex eigenValue)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using System.Numerics;
|
|||||||
using Skeleton.Constants;
|
using Skeleton.Constants;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class LieSU3FastEigenValueTest
|
public class LieSU3FastEigenValueTest : BaseTest
|
||||||
{
|
{
|
||||||
private static IEnumerable<Complex> FastEigen(LieSU3 a)
|
private static IEnumerable<Complex> FastEigen(LieSU3 a)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ using System.Linq;
|
|||||||
using Skeleton.DataStructure.Link;
|
using Skeleton.DataStructure.Link;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class LinkTest
|
public class LinkTest : BaseTest
|
||||||
{
|
{
|
||||||
private class TestObj
|
private class TestObj
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using Skeleton.Constants;
|
using Skeleton.Constants;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class MatrixExpLogTest
|
public class MatrixExpLogTest : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public static void ExpTestCase0()
|
public static void ExpTestCase0()
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class MiscTest
|
public class MiscTest : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public static void LatexStringTest()
|
public static void LatexStringTest()
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ using System;
|
|||||||
using Skeleton.Constants;
|
using Skeleton.Constants;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class MultiplicationTest
|
public class MultiplicationTest : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public static void Dim2MultiplicationTest()
|
public static void Dim2MultiplicationTest()
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ namespace Skeleton.Test;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class REFFTest
|
|
||||||
|
[TestFixture]
|
||||||
|
public class REFFTest : BaseTest
|
||||||
{
|
{
|
||||||
|
|
||||||
private static readonly Complex ii = new Complex(0, 1);
|
private static readonly Complex ii = new Complex(0, 1);
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ using Skeleton.Algebra.Extensions;
|
|||||||
using Skeleton.Constants;
|
using Skeleton.Constants;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class SUTestFix
|
public class SUTestFix : BaseTest
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
public static void Dim2Test()
|
public static void Dim2Test()
|
||||||
|
|||||||
@@ -6,18 +6,20 @@ using Skeleton.Constants;
|
|||||||
using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
||||||
using Skeleton.Samples;
|
using Skeleton.Samples;
|
||||||
using Skeleton.Utils;
|
using Skeleton.Utils;
|
||||||
|
using Skeleton.Utils.Helpers;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class UnitaryMatrixFixTest
|
public class UnitaryMatrixFixTest : BaseTest
|
||||||
{
|
{
|
||||||
private static Complex I = Complex.ImaginaryOne;
|
private static Complex I = Complex.ImaginaryOne;
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
public static readonly ((SU2, SU3), SU4)[] DataSource =
|
public static readonly ((SU2, SU3), SU4)[] DataSource = 20
|
||||||
20.ScaleSamples(-1, 1).SU2U2FixSamples()
|
.WithSeed(Seed)
|
||||||
.Zip(20.ScaleSamples(-1, 1).SU3U3FixSamples())
|
.ScaleSamples(-1, 1).SU2U2FixSamples()
|
||||||
.Zip(20.ScaleSamples(-1, 1).SU4U4FixSamples())
|
.Zip(20.ScaleSamples(-1, 1).SU3U3FixSamples())
|
||||||
.ToArray();
|
.Zip(20.ScaleSamples(-1, 1).SU4U4FixSamples())
|
||||||
|
.ToArray();
|
||||||
public static readonly Action<((SU2, SU3), SU4 )> TheoryOnFail = data =>
|
public static readonly Action<((SU2, SU3), SU4 )> TheoryOnFail = data =>
|
||||||
{
|
{
|
||||||
Console.WriteLine("SU2 : ");
|
Console.WriteLine("SU2 : ");
|
||||||
|
|||||||
@@ -6,12 +6,13 @@ using Skeleton.Utils;
|
|||||||
using Skeleton.Utils.Helpers;
|
using Skeleton.Utils.Helpers;
|
||||||
|
|
||||||
namespace Skeleton.Test;
|
namespace Skeleton.Test;
|
||||||
|
[TestFixture]
|
||||||
public static class UnitaryTest
|
public class UnitaryTest : BaseTest
|
||||||
{
|
{
|
||||||
[DatapointSource]
|
[DatapointSource]
|
||||||
public static readonly (((U2, U3), U4),((U2, U3), U4))[] DataSource =
|
public static readonly (((U2, U3), U4),((U2, U3), U4))[] DataSource =
|
||||||
20.ScaleSamples(-1, 1).U2FixSamples()
|
20.WithSeed(Seed)
|
||||||
|
.ScaleSamples(-1, 1).U2FixSamples()
|
||||||
.Zip(20.ScaleSamples(-1, 1).U3FixSamples())
|
.Zip(20.ScaleSamples(-1, 1).U3FixSamples())
|
||||||
.Zip(20.ScaleSamples(-1, 1).U4FixSamples())
|
.Zip(20.ScaleSamples(-1, 1).U4FixSamples())
|
||||||
.ShuffleZip()
|
.ShuffleZip()
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ namespace Skeleton.Test;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// test for vector spaces
|
/// test for vector spaces
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class VectorSpaceTest
|
[TestFixture]
|
||||||
|
public class VectorSpaceTest : BaseTest
|
||||||
{
|
{
|
||||||
private static readonly Complex ii = new Complex(0, 1);
|
private static readonly Complex ii = new Complex(0, 1);
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
Reference in New Issue
Block a user