diff --git a/src/Examples/ConsoleHelper.cs b/examples/examples-csharp/ConsoleHelper.cs similarity index 100% rename from src/Examples/ConsoleHelper.cs rename to examples/examples-csharp/ConsoleHelper.cs diff --git a/src/Examples/ContinuousDistributions/BetaDistribution.cs b/examples/examples-csharp/ContinuousDistributions/BetaDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/BetaDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/BetaDistribution.cs diff --git a/src/Examples/ContinuousDistributions/CauchyDistribution.cs b/examples/examples-csharp/ContinuousDistributions/CauchyDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/CauchyDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/CauchyDistribution.cs diff --git a/src/Examples/ContinuousDistributions/ChiDistribution.cs b/examples/examples-csharp/ContinuousDistributions/ChiDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/ChiDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/ChiDistribution.cs diff --git a/src/Examples/ContinuousDistributions/ChiSquareDistribution.cs b/examples/examples-csharp/ContinuousDistributions/ChiSquareDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/ChiSquareDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/ChiSquareDistribution.cs diff --git a/src/Examples/ContinuousDistributions/ContinuousUniformDistribution.cs b/examples/examples-csharp/ContinuousDistributions/ContinuousUniformDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/ContinuousUniformDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/ContinuousUniformDistribution.cs diff --git a/src/Examples/ContinuousDistributions/ErlangDistribution.cs b/examples/examples-csharp/ContinuousDistributions/ErlangDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/ErlangDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/ErlangDistribution.cs diff --git a/src/Examples/ContinuousDistributions/ExponentialDistribution.cs b/examples/examples-csharp/ContinuousDistributions/ExponentialDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/ExponentialDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/ExponentialDistribution.cs diff --git a/src/Examples/ContinuousDistributions/FisherSnedecorDistribution.cs b/examples/examples-csharp/ContinuousDistributions/FisherSnedecorDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/FisherSnedecorDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/FisherSnedecorDistribution.cs diff --git a/src/Examples/ContinuousDistributions/GammaDistribution.cs b/examples/examples-csharp/ContinuousDistributions/GammaDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/GammaDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/GammaDistribution.cs diff --git a/src/Examples/ContinuousDistributions/InverseGammaDistribution.cs b/examples/examples-csharp/ContinuousDistributions/InverseGammaDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/InverseGammaDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/InverseGammaDistribution.cs diff --git a/src/Examples/ContinuousDistributions/LaplaceDistribution.cs b/examples/examples-csharp/ContinuousDistributions/LaplaceDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/LaplaceDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/LaplaceDistribution.cs diff --git a/src/Examples/ContinuousDistributions/LogNormalDistribution.cs b/examples/examples-csharp/ContinuousDistributions/LogNormalDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/LogNormalDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/LogNormalDistribution.cs diff --git a/src/Examples/ContinuousDistributions/NormalDistribution.cs b/examples/examples-csharp/ContinuousDistributions/NormalDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/NormalDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/NormalDistribution.cs diff --git a/src/Examples/ContinuousDistributions/ParetoDistribution.cs b/examples/examples-csharp/ContinuousDistributions/ParetoDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/ParetoDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/ParetoDistribution.cs diff --git a/src/Examples/ContinuousDistributions/RayleighDistribution.cs b/examples/examples-csharp/ContinuousDistributions/RayleighDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/RayleighDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/RayleighDistribution.cs diff --git a/src/Examples/ContinuousDistributions/StableDistribution.cs b/examples/examples-csharp/ContinuousDistributions/StableDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/StableDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/StableDistribution.cs diff --git a/src/Examples/ContinuousDistributions/StudentTDistribution.cs b/examples/examples-csharp/ContinuousDistributions/StudentTDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/StudentTDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/StudentTDistribution.cs diff --git a/src/Examples/ContinuousDistributions/TriangularDistribution.cs b/examples/examples-csharp/ContinuousDistributions/TriangularDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/TriangularDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/TriangularDistribution.cs diff --git a/src/Examples/ContinuousDistributions/WeibullDistribution.cs b/examples/examples-csharp/ContinuousDistributions/WeibullDistribution.cs similarity index 100% rename from src/Examples/ContinuousDistributions/WeibullDistribution.cs rename to examples/examples-csharp/ContinuousDistributions/WeibullDistribution.cs diff --git a/src/Examples/DiscreteDistributions/BernoulliDistribution.cs b/examples/examples-csharp/DiscreteDistributions/BernoulliDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/BernoulliDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/BernoulliDistribution.cs diff --git a/src/Examples/DiscreteDistributions/BinomialDistribution.cs b/examples/examples-csharp/DiscreteDistributions/BinomialDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/BinomialDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/BinomialDistribution.cs diff --git a/src/Examples/DiscreteDistributions/CategoricalDistribution.cs b/examples/examples-csharp/DiscreteDistributions/CategoricalDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/CategoricalDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/CategoricalDistribution.cs diff --git a/src/Examples/DiscreteDistributions/ConwayMaxwellPoissonDistribution.cs b/examples/examples-csharp/DiscreteDistributions/ConwayMaxwellPoissonDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/ConwayMaxwellPoissonDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/ConwayMaxwellPoissonDistribution.cs diff --git a/src/Examples/DiscreteDistributions/DiscreteUniformDistribution.cs b/examples/examples-csharp/DiscreteDistributions/DiscreteUniformDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/DiscreteUniformDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/DiscreteUniformDistribution.cs diff --git a/src/Examples/DiscreteDistributions/GeometricDistribution.cs b/examples/examples-csharp/DiscreteDistributions/GeometricDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/GeometricDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/GeometricDistribution.cs diff --git a/src/Examples/DiscreteDistributions/HypergeometricDistribution.cs b/examples/examples-csharp/DiscreteDistributions/HypergeometricDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/HypergeometricDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/HypergeometricDistribution.cs diff --git a/src/Examples/DiscreteDistributions/NegativeBinomialDistribution.cs b/examples/examples-csharp/DiscreteDistributions/NegativeBinomialDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/NegativeBinomialDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/NegativeBinomialDistribution.cs diff --git a/src/Examples/DiscreteDistributions/PoissonDistribution.cs b/examples/examples-csharp/DiscreteDistributions/PoissonDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/PoissonDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/PoissonDistribution.cs diff --git a/src/Examples/DiscreteDistributions/ZipfDistribution.cs b/examples/examples-csharp/DiscreteDistributions/ZipfDistribution.cs similarity index 100% rename from src/Examples/DiscreteDistributions/ZipfDistribution.cs rename to examples/examples-csharp/DiscreteDistributions/ZipfDistribution.cs diff --git a/src/Examples/IExample.cs b/examples/examples-csharp/IExample.cs similarity index 100% rename from src/Examples/IExample.cs rename to examples/examples-csharp/IExample.cs diff --git a/src/Examples/Integration.cs b/examples/examples-csharp/Integration.cs similarity index 100% rename from src/Examples/Integration.cs rename to examples/examples-csharp/Integration.cs diff --git a/src/Examples/Interpolation/AkimaSpline.cs b/examples/examples-csharp/Interpolation/AkimaSpline.cs similarity index 100% rename from src/Examples/Interpolation/AkimaSpline.cs rename to examples/examples-csharp/Interpolation/AkimaSpline.cs diff --git a/src/Examples/Interpolation/LinearBetweenPoints.cs b/examples/examples-csharp/Interpolation/LinearBetweenPoints.cs similarity index 98% rename from src/Examples/Interpolation/LinearBetweenPoints.cs rename to examples/examples-csharp/Interpolation/LinearBetweenPoints.cs index c62eb70f..b24a6061 100644 --- a/src/Examples/Interpolation/LinearBetweenPoints.cs +++ b/examples/examples-csharp/Interpolation/LinearBetweenPoints.cs @@ -71,7 +71,7 @@ namespace Examples.InterpolationExamples Console.WriteLine(); // 2. Create a linear spline interpolation based on arbitrary points - var method = Interpolate.LinearSpline(points, values); + var method = Interpolate.Linear(points, values); Console.WriteLine(@"2. Create a linear spline interpolation based on arbitrary points"); Console.WriteLine(); diff --git a/src/Examples/Interpolation/RationalWithPoles.cs b/examples/examples-csharp/Interpolation/RationalWithPoles.cs similarity index 100% rename from src/Examples/Interpolation/RationalWithPoles.cs rename to examples/examples-csharp/Interpolation/RationalWithPoles.cs diff --git a/src/Examples/Interpolation/RationalWithoutPoles.cs b/examples/examples-csharp/Interpolation/RationalWithoutPoles.cs similarity index 100% rename from src/Examples/Interpolation/RationalWithoutPoles.cs rename to examples/examples-csharp/Interpolation/RationalWithoutPoles.cs diff --git a/src/Examples/LinearAlgebra/DirectSolvers.cs b/examples/examples-csharp/LinearAlgebra/DirectSolvers.cs similarity index 100% rename from src/Examples/LinearAlgebra/DirectSolvers.cs rename to examples/examples-csharp/LinearAlgebra/DirectSolvers.cs diff --git a/src/Examples/LinearAlgebra/Factorization/Cholesky.cs b/examples/examples-csharp/LinearAlgebra/Factorization/Cholesky.cs similarity index 100% rename from src/Examples/LinearAlgebra/Factorization/Cholesky.cs rename to examples/examples-csharp/LinearAlgebra/Factorization/Cholesky.cs diff --git a/src/Examples/LinearAlgebra/Factorization/Evd.cs b/examples/examples-csharp/LinearAlgebra/Factorization/Evd.cs similarity index 100% rename from src/Examples/LinearAlgebra/Factorization/Evd.cs rename to examples/examples-csharp/LinearAlgebra/Factorization/Evd.cs diff --git a/src/Examples/LinearAlgebra/Factorization/LU.cs b/examples/examples-csharp/LinearAlgebra/Factorization/LU.cs similarity index 100% rename from src/Examples/LinearAlgebra/Factorization/LU.cs rename to examples/examples-csharp/LinearAlgebra/Factorization/LU.cs diff --git a/src/Examples/LinearAlgebra/Factorization/QR.cs b/examples/examples-csharp/LinearAlgebra/Factorization/QR.cs similarity index 100% rename from src/Examples/LinearAlgebra/Factorization/QR.cs rename to examples/examples-csharp/LinearAlgebra/Factorization/QR.cs diff --git a/src/Examples/LinearAlgebra/Factorization/Svd.cs b/examples/examples-csharp/LinearAlgebra/Factorization/Svd.cs similarity index 100% rename from src/Examples/LinearAlgebra/Factorization/Svd.cs rename to examples/examples-csharp/LinearAlgebra/Factorization/Svd.cs diff --git a/src/Examples/LinearAlgebra/IterativeSolvers/BiCgStabSolver.cs b/examples/examples-csharp/LinearAlgebra/IterativeSolvers/BiCgStabSolver.cs similarity index 100% rename from src/Examples/LinearAlgebra/IterativeSolvers/BiCgStabSolver.cs rename to examples/examples-csharp/LinearAlgebra/IterativeSolvers/BiCgStabSolver.cs diff --git a/src/Examples/LinearAlgebra/IterativeSolvers/CompositeSolverExample.cs b/examples/examples-csharp/LinearAlgebra/IterativeSolvers/CompositeSolverExample.cs similarity index 97% rename from src/Examples/LinearAlgebra/IterativeSolvers/CompositeSolverExample.cs rename to examples/examples-csharp/LinearAlgebra/IterativeSolvers/CompositeSolverExample.cs index ed4d45e4..56e33de9 100644 --- a/src/Examples/LinearAlgebra/IterativeSolvers/CompositeSolverExample.cs +++ b/examples/examples-csharp/LinearAlgebra/IterativeSolvers/CompositeSolverExample.cs @@ -102,7 +102,11 @@ namespace Examples.LinearAlgebra.IterativeSolversExamples // Load all suitable solvers from current assembly. Below in this example, there is user-defined solver // "class UserBiCgStab : IIterativeSolverSetup" which uses regular BiCgStab solver. But user may create any other solver // and solver setup classes which implement IIterativeSolverSetup and pass assembly to next function: - var solver = new CompositeSolver(SolverSetup.LoadFromAssembly(Assembly.GetExecutingAssembly())); +#if NETSTANDARD1_6 + var solver = new CompositeSolver(SolverSetup.LoadFromAssembly(typeof(CompositeSolver).GetTypeInfo().Assembly)); +#else + var solver = new CompositeSolver(SolverSetup.LoadFromAssembly(typeof(CompositeSolver).Assembly)); +#endif // 1. Solve the matrix equation var resultX = matrixA.SolveIterative(vectorB, solver, monitor); diff --git a/src/Examples/LinearAlgebra/IterativeSolvers/GpBiCgSolver.cs b/examples/examples-csharp/LinearAlgebra/IterativeSolvers/GpBiCgSolver.cs similarity index 100% rename from src/Examples/LinearAlgebra/IterativeSolvers/GpBiCgSolver.cs rename to examples/examples-csharp/LinearAlgebra/IterativeSolvers/GpBiCgSolver.cs diff --git a/src/Examples/LinearAlgebra/IterativeSolvers/MlkBiCgStabSolver.cs b/examples/examples-csharp/LinearAlgebra/IterativeSolvers/MlkBiCgStabSolver.cs similarity index 100% rename from src/Examples/LinearAlgebra/IterativeSolvers/MlkBiCgStabSolver.cs rename to examples/examples-csharp/LinearAlgebra/IterativeSolvers/MlkBiCgStabSolver.cs diff --git a/src/Examples/LinearAlgebra/IterativeSolvers/TFQMRSolver.cs b/examples/examples-csharp/LinearAlgebra/IterativeSolvers/TFQMRSolver.cs similarity index 100% rename from src/Examples/LinearAlgebra/IterativeSolvers/TFQMRSolver.cs rename to examples/examples-csharp/LinearAlgebra/IterativeSolvers/TFQMRSolver.cs diff --git a/src/Examples/LinearAlgebra/MatrixArithmeticOperations.cs b/examples/examples-csharp/LinearAlgebra/MatrixArithmeticOperations.cs similarity index 100% rename from src/Examples/LinearAlgebra/MatrixArithmeticOperations.cs rename to examples/examples-csharp/LinearAlgebra/MatrixArithmeticOperations.cs diff --git a/src/Examples/LinearAlgebra/MatrixDataAccessor.cs b/examples/examples-csharp/LinearAlgebra/MatrixDataAccessor.cs similarity index 97% rename from src/Examples/LinearAlgebra/MatrixDataAccessor.cs rename to examples/examples-csharp/LinearAlgebra/MatrixDataAccessor.cs index b43a22ba..2afa5193 100644 --- a/src/Examples/LinearAlgebra/MatrixDataAccessor.cs +++ b/examples/examples-csharp/LinearAlgebra/MatrixDataAccessor.cs @@ -156,9 +156,9 @@ namespace Examples.LinearAlgebraExamples // 11. Convert matrix into multidimensional array var data = matrix.ToArray(); Console.WriteLine(@"11. Convert matrix into multidimensional array"); - for (var i = 0; i < data.GetLongLength(0); i++) + for (var i = 0; i < data.GetLength(0); i++) { - for (var j = 0; j < data.GetLongLength(1); j++) + for (var j = 0; j < data.GetLength(1); j++) { Console.Write(data[i, j].ToString("#0.00\t")); } @@ -169,7 +169,7 @@ namespace Examples.LinearAlgebraExamples Console.WriteLine(); // 12. Convert matrix into row-wise array - var rowwise = matrix.ToRowWiseArray(); + var rowwise = matrix.ToRowMajorArray(); Console.WriteLine(@"12. Convert matrix into row-wise array"); for (var i = 0; i < matrix.RowCount; i++) { @@ -184,7 +184,7 @@ namespace Examples.LinearAlgebraExamples Console.WriteLine(); // 13. Convert matrix into column-wise array - var columnise = matrix.ToColumnWiseArray(); + var columnise = matrix.ToColumnMajorArray(); Console.WriteLine(@"13. Convert matrix into column-wise array"); for (var i = 0; i < matrix.RowCount; i++) { diff --git a/src/Examples/LinearAlgebra/MatrixInitialization.cs b/examples/examples-csharp/LinearAlgebra/MatrixInitialization.cs similarity index 100% rename from src/Examples/LinearAlgebra/MatrixInitialization.cs rename to examples/examples-csharp/LinearAlgebra/MatrixInitialization.cs diff --git a/src/Examples/LinearAlgebra/MatrixNorms.cs b/examples/examples-csharp/LinearAlgebra/MatrixNorms.cs similarity index 100% rename from src/Examples/LinearAlgebra/MatrixNorms.cs rename to examples/examples-csharp/LinearAlgebra/MatrixNorms.cs diff --git a/src/Examples/LinearAlgebra/MatrixRowColumnOperations.cs b/examples/examples-csharp/LinearAlgebra/MatrixRowColumnOperations.cs similarity index 100% rename from src/Examples/LinearAlgebra/MatrixRowColumnOperations.cs rename to examples/examples-csharp/LinearAlgebra/MatrixRowColumnOperations.cs diff --git a/src/Examples/LinearAlgebra/MatrixSpecialNumbers.cs b/examples/examples-csharp/LinearAlgebra/MatrixSpecialNumbers.cs similarity index 100% rename from src/Examples/LinearAlgebra/MatrixSpecialNumbers.cs rename to examples/examples-csharp/LinearAlgebra/MatrixSpecialNumbers.cs diff --git a/src/Examples/LinearAlgebra/MatrixTransposeAndInverse.cs b/examples/examples-csharp/LinearAlgebra/MatrixTransposeAndInverse.cs similarity index 100% rename from src/Examples/LinearAlgebra/MatrixTransposeAndInverse.cs rename to examples/examples-csharp/LinearAlgebra/MatrixTransposeAndInverse.cs diff --git a/src/Examples/LinearAlgebra/MatrixTriangular.cs b/examples/examples-csharp/LinearAlgebra/MatrixTriangular.cs similarity index 100% rename from src/Examples/LinearAlgebra/MatrixTriangular.cs rename to examples/examples-csharp/LinearAlgebra/MatrixTriangular.cs diff --git a/src/Examples/LinearAlgebra/VectorArithmeticOperations.cs b/examples/examples-csharp/LinearAlgebra/VectorArithmeticOperations.cs similarity index 100% rename from src/Examples/LinearAlgebra/VectorArithmeticOperations.cs rename to examples/examples-csharp/LinearAlgebra/VectorArithmeticOperations.cs diff --git a/src/Examples/LinearAlgebra/VectorDataAccessor.cs b/examples/examples-csharp/LinearAlgebra/VectorDataAccessor.cs similarity index 98% rename from src/Examples/LinearAlgebra/VectorDataAccessor.cs rename to examples/examples-csharp/LinearAlgebra/VectorDataAccessor.cs index 8817fedc..62e25245 100644 --- a/src/Examples/LinearAlgebra/VectorDataAccessor.cs +++ b/examples/examples-csharp/LinearAlgebra/VectorDataAccessor.cs @@ -26,6 +26,8 @@ using System; using System.Globalization; + +using MathNet.Numerics.LinearAlgebra; using MathNet.Numerics.LinearAlgebra.Double; namespace Examples.LinearAlgebraExamples @@ -158,7 +160,7 @@ namespace Examples.LinearAlgebraExamples // 12. Indexed non-zero enumerator usage Console.WriteLine(@"11. Non-Zero Enumerator usage"); - foreach (var value in vectorA.EnumerateNonZeroIndexed()) + foreach (var value in vectorA.EnumerateIndexed(Zeros.AllowSkip)) { Console.WriteLine(@"Index = {0}; Value = {1}", value.Item1, value.Item2.ToString("#0.00\t", formatProvider)); } diff --git a/src/Examples/LinearAlgebra/VectorInitialization.cs b/examples/examples-csharp/LinearAlgebra/VectorInitialization.cs similarity index 100% rename from src/Examples/LinearAlgebra/VectorInitialization.cs rename to examples/examples-csharp/LinearAlgebra/VectorInitialization.cs diff --git a/src/Examples/NumberTheory.cs b/examples/examples-csharp/NumberTheory.cs similarity index 100% rename from src/Examples/NumberTheory.cs rename to examples/examples-csharp/NumberTheory.cs diff --git a/src/Examples/RandomNumberGeneration.cs b/examples/examples-csharp/RandomNumberGeneration.cs similarity index 100% rename from src/Examples/RandomNumberGeneration.cs rename to examples/examples-csharp/RandomNumberGeneration.cs diff --git a/src/Examples/Signals/Chebyshev.cs b/examples/examples-csharp/Signals/Chebyshev.cs similarity index 100% rename from src/Examples/Signals/Chebyshev.cs rename to examples/examples-csharp/Signals/Chebyshev.cs diff --git a/src/Examples/Signals/Equidistant.cs b/examples/examples-csharp/Signals/Equidistant.cs similarity index 100% rename from src/Examples/Signals/Equidistant.cs rename to examples/examples-csharp/Signals/Equidistant.cs diff --git a/src/Examples/Signals/Random.cs b/examples/examples-csharp/Signals/Random.cs similarity index 100% rename from src/Examples/Signals/Random.cs rename to examples/examples-csharp/Signals/Random.cs diff --git a/src/Examples/SpecialFunctions/Beta.cs b/examples/examples-csharp/SpecialFunctions/Beta.cs similarity index 100% rename from src/Examples/SpecialFunctions/Beta.cs rename to examples/examples-csharp/SpecialFunctions/Beta.cs diff --git a/src/Examples/SpecialFunctions/Common.cs b/examples/examples-csharp/SpecialFunctions/Common.cs similarity index 100% rename from src/Examples/SpecialFunctions/Common.cs rename to examples/examples-csharp/SpecialFunctions/Common.cs diff --git a/src/Examples/SpecialFunctions/ErrorFunction.cs b/examples/examples-csharp/SpecialFunctions/ErrorFunction.cs similarity index 100% rename from src/Examples/SpecialFunctions/ErrorFunction.cs rename to examples/examples-csharp/SpecialFunctions/ErrorFunction.cs diff --git a/src/Examples/SpecialFunctions/Factorial.cs b/examples/examples-csharp/SpecialFunctions/Factorial.cs similarity index 100% rename from src/Examples/SpecialFunctions/Factorial.cs rename to examples/examples-csharp/SpecialFunctions/Factorial.cs diff --git a/src/Examples/SpecialFunctions/Gamma.cs b/examples/examples-csharp/SpecialFunctions/Gamma.cs similarity index 100% rename from src/Examples/SpecialFunctions/Gamma.cs rename to examples/examples-csharp/SpecialFunctions/Gamma.cs diff --git a/src/Examples/SpecialFunctions/Stability.cs b/examples/examples-csharp/SpecialFunctions/Stability.cs similarity index 100% rename from src/Examples/SpecialFunctions/Stability.cs rename to examples/examples-csharp/SpecialFunctions/Stability.cs diff --git a/src/Examples/Statistics.cs b/examples/examples-csharp/Statistics.cs similarity index 100% rename from src/Examples/Statistics.cs rename to examples/examples-csharp/Statistics.cs diff --git a/examples/examples-csharp/examples-csharp.csproj b/examples/examples-csharp/examples-csharp.csproj new file mode 100644 index 00000000..8898d938 --- /dev/null +++ b/examples/examples-csharp/examples-csharp.csproj @@ -0,0 +1,22 @@ + + + net40;net45;net46;netstandard1.6;netstandard2.0 + false + + + + + + + + + + + + + + + + + + diff --git a/examples/examples-csharp/examples-csharp.sln b/examples/examples-csharp/examples-csharp.sln new file mode 100644 index 00000000..5c237319 --- /dev/null +++ b/examples/examples-csharp/examples-csharp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27130.2026 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "examples-csharp", "examples-csharp.csproj", "{11FCA895-F757-4083-8271-2035A5709D22}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {11FCA895-F757-4083-8271-2035A5709D22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {11FCA895-F757-4083-8271-2035A5709D22}.Debug|Any CPU.Build.0 = Debug|Any CPU + {11FCA895-F757-4083-8271-2035A5709D22}.Release|Any CPU.ActiveCfg = Release|Any CPU + {11FCA895-F757-4083-8271-2035A5709D22}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C828D054-1CFC-4684-BA5D-FE8CEA5AECB6} + EndGlobalSection +EndGlobal diff --git a/src/FSharpExamples/Apply.fsx b/examples/examples-fsharp/Apply.fsx similarity index 100% rename from src/FSharpExamples/Apply.fsx rename to examples/examples-fsharp/Apply.fsx diff --git a/src/FSharpExamples/Histogram.fsx b/examples/examples-fsharp/Histogram.fsx similarity index 100% rename from src/FSharpExamples/Histogram.fsx rename to examples/examples-fsharp/Histogram.fsx diff --git a/src/FSharpExamples/LinearRegression.fsx b/examples/examples-fsharp/LinearRegression.fsx similarity index 100% rename from src/FSharpExamples/LinearRegression.fsx rename to examples/examples-fsharp/LinearRegression.fsx diff --git a/src/FSharpExamples/MCMC.fsx b/examples/examples-fsharp/MCMC.fsx similarity index 100% rename from src/FSharpExamples/MCMC.fsx rename to examples/examples-fsharp/MCMC.fsx diff --git a/src/FSharpExamples/Matrices.fsx b/examples/examples-fsharp/Matrices.fsx similarity index 100% rename from src/FSharpExamples/Matrices.fsx rename to examples/examples-fsharp/Matrices.fsx diff --git a/src/FSharpExamples/RandomAndDistributions.fsx b/examples/examples-fsharp/RandomAndDistributions.fsx similarity index 100% rename from src/FSharpExamples/RandomAndDistributions.fsx rename to examples/examples-fsharp/RandomAndDistributions.fsx diff --git a/src/FSharpExamples/Vectors.fsx b/examples/examples-fsharp/Vectors.fsx similarity index 100% rename from src/FSharpExamples/Vectors.fsx rename to examples/examples-fsharp/Vectors.fsx diff --git a/src/FSharpExamples/FSharpExamples.fsproj b/examples/examples-fsharp/examples-fsharp.fsproj similarity index 90% rename from src/FSharpExamples/FSharpExamples.fsproj rename to examples/examples-fsharp/examples-fsharp.fsproj index 39df11ea..f8e7c0bb 100644 --- a/src/FSharpExamples/FSharpExamples.fsproj +++ b/examples/examples-fsharp/examples-fsharp.fsproj @@ -11,9 +11,6 @@ NETSTANDARD;NOSYSNUMERICS - - - diff --git a/examples/examples-fsharp/examples-fsharp.sln b/examples/examples-fsharp/examples-fsharp.sln new file mode 100644 index 00000000..43e963a2 --- /dev/null +++ b/examples/examples-fsharp/examples-fsharp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27130.2026 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "examples-fsharp", "examples-fsharp.fsproj", "{11FCA895-F757-4083-8271-2035A5709D22}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {11FCA895-F757-4083-8271-2035A5709D22}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {11FCA895-F757-4083-8271-2035A5709D22}.Debug|Any CPU.Build.0 = Debug|Any CPU + {11FCA895-F757-4083-8271-2035A5709D22}.Release|Any CPU.ActiveCfg = Release|Any CPU + {11FCA895-F757-4083-8271-2035A5709D22}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C828D054-1CFC-4684-BA5D-FE8CEA5AECB6} + EndGlobalSection +EndGlobal diff --git a/integrations/net45-console-csharp/App.config b/examples/net45-console-csharp/App.config similarity index 100% rename from integrations/net45-console-csharp/App.config rename to examples/net45-console-csharp/App.config diff --git a/integrations/net45-console-csharp/Program.cs b/examples/net45-console-csharp/Program.cs similarity index 100% rename from integrations/net45-console-csharp/Program.cs rename to examples/net45-console-csharp/Program.cs diff --git a/integrations/net45-console-csharp/Properties/AssemblyInfo.cs b/examples/net45-console-csharp/Properties/AssemblyInfo.cs similarity index 100% rename from integrations/net45-console-csharp/Properties/AssemblyInfo.cs rename to examples/net45-console-csharp/Properties/AssemblyInfo.cs diff --git a/integrations/net45-console-csharp/net45-console-csharp.csproj b/examples/net45-console-csharp/net45-console-csharp.csproj similarity index 100% rename from integrations/net45-console-csharp/net45-console-csharp.csproj rename to examples/net45-console-csharp/net45-console-csharp.csproj diff --git a/integrations/net45-console-csharp/net45-console-csharp.sln b/examples/net45-console-csharp/net45-console-csharp.sln similarity index 100% rename from integrations/net45-console-csharp/net45-console-csharp.sln rename to examples/net45-console-csharp/net45-console-csharp.sln diff --git a/integrations/net45-console-fsharp/App.config b/examples/net45-console-fsharp/App.config similarity index 100% rename from integrations/net45-console-fsharp/App.config rename to examples/net45-console-fsharp/App.config diff --git a/integrations/net45-console-fsharp/AssemblyInfo.fs b/examples/net45-console-fsharp/AssemblyInfo.fs similarity index 100% rename from integrations/net45-console-fsharp/AssemblyInfo.fs rename to examples/net45-console-fsharp/AssemblyInfo.fs diff --git a/integrations/net45-console-fsharp/Program.fs b/examples/net45-console-fsharp/Program.fs similarity index 100% rename from integrations/net45-console-fsharp/Program.fs rename to examples/net45-console-fsharp/Program.fs diff --git a/integrations/net45-console-fsharp/net45-console-fsharp.fsproj b/examples/net45-console-fsharp/net45-console-fsharp.fsproj similarity index 100% rename from integrations/net45-console-fsharp/net45-console-fsharp.fsproj rename to examples/net45-console-fsharp/net45-console-fsharp.fsproj diff --git a/integrations/net45-console-fsharp/net45-console-fsharp.sln b/examples/net45-console-fsharp/net45-console-fsharp.sln similarity index 100% rename from integrations/net45-console-fsharp/net45-console-fsharp.sln rename to examples/net45-console-fsharp/net45-console-fsharp.sln diff --git a/integrations/net45-console-fsharp/packages.config b/examples/net45-console-fsharp/packages.config similarity index 100% rename from integrations/net45-console-fsharp/packages.config rename to examples/net45-console-fsharp/packages.config diff --git a/integrations/net471-console-csharp/App.config b/examples/net471-console-csharp/App.config similarity index 100% rename from integrations/net471-console-csharp/App.config rename to examples/net471-console-csharp/App.config diff --git a/integrations/net471-console-csharp/Program.cs b/examples/net471-console-csharp/Program.cs similarity index 100% rename from integrations/net471-console-csharp/Program.cs rename to examples/net471-console-csharp/Program.cs diff --git a/integrations/net471-console-csharp/Properties/AssemblyInfo.cs b/examples/net471-console-csharp/Properties/AssemblyInfo.cs similarity index 100% rename from integrations/net471-console-csharp/Properties/AssemblyInfo.cs rename to examples/net471-console-csharp/Properties/AssemblyInfo.cs diff --git a/integrations/net471-console-csharp/net471-console-csharp.csproj b/examples/net471-console-csharp/net471-console-csharp.csproj similarity index 100% rename from integrations/net471-console-csharp/net471-console-csharp.csproj rename to examples/net471-console-csharp/net471-console-csharp.csproj diff --git a/integrations/net471-console-csharp/net471-console-csharp.sln b/examples/net471-console-csharp/net471-console-csharp.sln similarity index 100% rename from integrations/net471-console-csharp/net471-console-csharp.sln rename to examples/net471-console-csharp/net471-console-csharp.sln diff --git a/integrations/net471-console-fsharp/App.config b/examples/net471-console-fsharp/App.config similarity index 100% rename from integrations/net471-console-fsharp/App.config rename to examples/net471-console-fsharp/App.config diff --git a/integrations/net471-console-fsharp/AssemblyInfo.fs b/examples/net471-console-fsharp/AssemblyInfo.fs similarity index 100% rename from integrations/net471-console-fsharp/AssemblyInfo.fs rename to examples/net471-console-fsharp/AssemblyInfo.fs diff --git a/integrations/net471-console-fsharp/Program.fs b/examples/net471-console-fsharp/Program.fs similarity index 100% rename from integrations/net471-console-fsharp/Program.fs rename to examples/net471-console-fsharp/Program.fs diff --git a/integrations/net471-console-fsharp/net471-console-fsharp.fsproj b/examples/net471-console-fsharp/net471-console-fsharp.fsproj similarity index 100% rename from integrations/net471-console-fsharp/net471-console-fsharp.fsproj rename to examples/net471-console-fsharp/net471-console-fsharp.fsproj diff --git a/integrations/net471-console-fsharp/net471-console-fsharp.sln b/examples/net471-console-fsharp/net471-console-fsharp.sln similarity index 100% rename from integrations/net471-console-fsharp/net471-console-fsharp.sln rename to examples/net471-console-fsharp/net471-console-fsharp.sln diff --git a/integrations/net471-console-fsharp/packages.config b/examples/net471-console-fsharp/packages.config similarity index 100% rename from integrations/net471-console-fsharp/packages.config rename to examples/net471-console-fsharp/packages.config diff --git a/integrations/netcore11-console-csharp/Program.cs b/examples/netcore11-console-csharp/Program.cs similarity index 100% rename from integrations/netcore11-console-csharp/Program.cs rename to examples/netcore11-console-csharp/Program.cs diff --git a/integrations/netcore11-console-csharp/netcore11-console-csharp.csproj b/examples/netcore11-console-csharp/netcore11-console-csharp.csproj similarity index 100% rename from integrations/netcore11-console-csharp/netcore11-console-csharp.csproj rename to examples/netcore11-console-csharp/netcore11-console-csharp.csproj diff --git a/integrations/netcore11-console-csharp/netcore11-console-csharp.sln b/examples/netcore11-console-csharp/netcore11-console-csharp.sln similarity index 100% rename from integrations/netcore11-console-csharp/netcore11-console-csharp.sln rename to examples/netcore11-console-csharp/netcore11-console-csharp.sln diff --git a/integrations/netcore11-console-fsharp/Program.fs b/examples/netcore11-console-fsharp/Program.fs similarity index 100% rename from integrations/netcore11-console-fsharp/Program.fs rename to examples/netcore11-console-fsharp/Program.fs diff --git a/integrations/netcore11-console-fsharp/netcore11-console-fsharp.fsproj b/examples/netcore11-console-fsharp/netcore11-console-fsharp.fsproj similarity index 100% rename from integrations/netcore11-console-fsharp/netcore11-console-fsharp.fsproj rename to examples/netcore11-console-fsharp/netcore11-console-fsharp.fsproj diff --git a/integrations/netcore11-console-fsharp/netcore11-console-fsharp.sln b/examples/netcore11-console-fsharp/netcore11-console-fsharp.sln similarity index 100% rename from integrations/netcore11-console-fsharp/netcore11-console-fsharp.sln rename to examples/netcore11-console-fsharp/netcore11-console-fsharp.sln diff --git a/integrations/netcore20-console-csharp/Program.cs b/examples/netcore20-console-csharp/Program.cs similarity index 100% rename from integrations/netcore20-console-csharp/Program.cs rename to examples/netcore20-console-csharp/Program.cs diff --git a/integrations/netcore20-console-csharp/netcore20-console-csharp.csproj b/examples/netcore20-console-csharp/netcore20-console-csharp.csproj similarity index 100% rename from integrations/netcore20-console-csharp/netcore20-console-csharp.csproj rename to examples/netcore20-console-csharp/netcore20-console-csharp.csproj diff --git a/integrations/netcore20-console-csharp/netcore20-console-csharp.sln b/examples/netcore20-console-csharp/netcore20-console-csharp.sln similarity index 100% rename from integrations/netcore20-console-csharp/netcore20-console-csharp.sln rename to examples/netcore20-console-csharp/netcore20-console-csharp.sln diff --git a/integrations/netcore20-console-fsharp/Program.fs b/examples/netcore20-console-fsharp/Program.fs similarity index 100% rename from integrations/netcore20-console-fsharp/Program.fs rename to examples/netcore20-console-fsharp/Program.fs diff --git a/integrations/netcore20-console-fsharp/netcore20-console-fsharp.fsproj b/examples/netcore20-console-fsharp/netcore20-console-fsharp.fsproj similarity index 100% rename from integrations/netcore20-console-fsharp/netcore20-console-fsharp.fsproj rename to examples/netcore20-console-fsharp/netcore20-console-fsharp.fsproj diff --git a/integrations/netcore20-console-fsharp/netcore20-console-fsharp.sln b/examples/netcore20-console-fsharp/netcore20-console-fsharp.sln similarity index 100% rename from integrations/netcore20-console-fsharp/netcore20-console-fsharp.sln rename to examples/netcore20-console-fsharp/netcore20-console-fsharp.sln diff --git a/integrations/paket.dependencies b/examples/paket.dependencies similarity index 100% rename from integrations/paket.dependencies rename to examples/paket.dependencies diff --git a/src/Examples/Examples.csproj b/src/Examples/Examples.csproj deleted file mode 100644 index f1577ae3..00000000 --- a/src/Examples/Examples.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - net40;net45;net46;netstandard1.6;netstandard2.0 - false - - - - -