27 changed files with 758 additions and 528 deletions
@ -0,0 +1,38 @@ |
|||
using System.Collections.Generic; |
|||
using System.IO; |
|||
using System.Reflection; |
|||
|
|||
namespace MathNet.Numerics.TestData |
|||
{ |
|||
public static class Data |
|||
{ |
|||
static readonly Assembly DataAssembly = typeof (Data).Assembly; |
|||
|
|||
public static Stream ReadStream(string name) |
|||
{ |
|||
return DataAssembly.GetManifestResourceStream("MathNet.Numerics.TestData.Data." + name); |
|||
} |
|||
|
|||
public static TextReader ReadText(string name) |
|||
{ |
|||
var stream = ReadStream(name); |
|||
return new StreamReader(stream); |
|||
} |
|||
|
|||
public static string[] ReadAllLines(string name) |
|||
{ |
|||
List<string> lines = new List<string>(); |
|||
|
|||
using (TextReader reader = ReadText(name)) |
|||
{ |
|||
string line; |
|||
while ((line = reader.ReadLine()) != null) |
|||
{ |
|||
lines.Add(line); |
|||
} |
|||
} |
|||
|
|||
return lines.ToArray(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,36 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// General Information about an assembly is controlled through the following
|
|||
// set of attributes. Change these attribute values to modify the information
|
|||
// associated with an assembly.
|
|||
[assembly: AssemblyTitle("Math.NET Numerics Test Data")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("Math.NET Project")] |
|||
[assembly: AssemblyProduct("Math.NET Numerics")] |
|||
[assembly: AssemblyCopyright("Copyright (c) Math.NET Project")] |
|||
[assembly: AssemblyTrademark("")] |
|||
[assembly: AssemblyCulture("")] |
|||
|
|||
// Setting ComVisible to false makes the types in this assembly not visible
|
|||
// to COM components. If you need to access a type in this assembly from
|
|||
// COM, set the ComVisible attribute to true on that type.
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
|||
[assembly: Guid("a4a6a08e-5265-4608-a43d-e4f2e210ba2d")] |
|||
|
|||
// Version information for an assembly consists of the following four values:
|
|||
//
|
|||
// Major Version
|
|||
// Minor Version
|
|||
// Build Number
|
|||
// Revision
|
|||
//
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
|||
// by using the '*' as shown below:
|
|||
// [assembly: AssemblyVersion("1.0.*")]
|
|||
[assembly: AssemblyVersion("1.0.0.0")] |
|||
[assembly: AssemblyFileVersion("1.0.0.0")] |
|||
@ -0,0 +1,290 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
|||
<PropertyGroup> |
|||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|||
<ProjectGuid>{AF3253C9-4DB5-45A0-98CF-C105FDA9DA47}</ProjectGuid> |
|||
<OutputType>Library</OutputType> |
|||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|||
<RootNamespace>MathNet.Numerics.TestData</RootNamespace> |
|||
<AssemblyName>MathNet.Numerics.TestData</AssemblyName> |
|||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
|||
<AssemblyOriginatorKeyFile>..\MathNet.Numerics.snk</AssemblyOriginatorKeyFile> |
|||
<FileAlignment>512</FileAlignment> |
|||
<TargetFrameworkProfile /> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|||
<OutputPath>..\..\out\test\Net35\</OutputPath> |
|||
<IntermediateOutputPath>..\..\obj\test\Net35\</IntermediateOutputPath> |
|||
<BaseIntermediateOutputPath>..\..\obj\test\Net35\</BaseIntermediateOutputPath> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<DefineConstants>TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
|||
<NoWarn>1591</NoWarn> |
|||
<Prefer32Bit>false</Prefer32Bit> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|||
<OutputPath>..\..\out\test-debug\Net35\</OutputPath> |
|||
<IntermediateOutputPath>..\..\obj\test-debug\Net35\</IntermediateOutputPath> |
|||
<BaseIntermediateOutputPath>..\..\obj\test-debug\Net35\</BaseIntermediateOutputPath> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<DebugType>full</DebugType> |
|||
<Optimize>false</Optimize> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
<PlatformTarget>AnyCPU</PlatformTarget> |
|||
<NoWarn>1591</NoWarn> |
|||
<Prefer32Bit>false</Prefer32Bit> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Signed|AnyCPU'"> |
|||
<OutputPath>..\..\out\test-signed\Net35\</OutputPath> |
|||
<IntermediateOutputPath>..\..\obj\test-signed\Net35\</IntermediateOutputPath> |
|||
<BaseIntermediateOutputPath>..\..\obj\test-signed\Net35\</BaseIntermediateOutputPath> |
|||
<!-- Conditional Strong Name: YES --> |
|||
<SignAssembly>true</SignAssembly> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<DefineConstants>TRACE;STRONGNAME</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
|||
<NoWarn>1591</NoWarn> |
|||
<Prefer32Bit>false</Prefer32Bit> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Reference Include="System" /> |
|||
<Reference Include="System.Core" /> |
|||
<Reference Include="System.Xml.Linq" /> |
|||
<Reference Include="System.Data.DataSetExtensions" /> |
|||
<Reference Include="System.Data" /> |
|||
<Reference Include="System.Xml" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="Data.cs" /> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<EmbeddedResource Include="..\..\data\Codeplex-5667.csv"> |
|||
<Link>Data\Codeplex-5667.csv</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\Github-Cureos-1.csv"> |
|||
<Link>Data\Github-Cureos-1.csv</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\A.mat"> |
|||
<Link>Data\Matlab\A.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\collection-nocompress.mat"> |
|||
<Link>Data\Matlab\collection-nocompress.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\collection.mat"> |
|||
<Link>Data\Matlab\collection.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\complex.mat"> |
|||
<Link>Data\Matlab\complex.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\sparse-large.mat"> |
|||
<Link>Data\Matlab\sparse-large.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\sparse-small.mat"> |
|||
<Link>Data\Matlab\sparse-small.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\sparse_complex.mat"> |
|||
<Link>Data\Matlab\sparse_complex.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\matlab\v.mat"> |
|||
<Link>Data\Matlab\v.mat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\AtmWtAgt.dat"> |
|||
<Link>Data\NIST\AtmWtAgt.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Bennett5.dat"> |
|||
<Link>Data\NIST\Bennett5.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\BoxBOD.dat"> |
|||
<Link>Data\NIST\BoxBOD.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Chwirut1.dat"> |
|||
<Link>Data\NIST\Chwirut1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Chwirut2.dat"> |
|||
<Link>Data\NIST\Chwirut2.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\DanWood.dat"> |
|||
<Link>Data\NIST\DanWood.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Eckerle4.dat"> |
|||
<Link>Data\NIST\Eckerle4.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\ENSO.dat"> |
|||
<Link>Data\NIST\ENSO.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Filip.dat"> |
|||
<Link>Data\NIST\Filip.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Gauss1.dat"> |
|||
<Link>Data\NIST\Gauss1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Gauss2.dat"> |
|||
<Link>Data\NIST\Gauss2.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Gauss3.dat"> |
|||
<Link>Data\NIST\Gauss3.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Hahn1.dat"> |
|||
<Link>Data\NIST\Hahn1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Kirby2.dat"> |
|||
<Link>Data\NIST\Kirby2.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Lanczos1.dat"> |
|||
<Link>Data\NIST\Lanczos1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Lanczos2.dat"> |
|||
<Link>Data\NIST\Lanczos2.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Lanczos3.dat"> |
|||
<Link>Data\NIST\Lanczos3.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Lew.dat"> |
|||
<Link>Data\NIST\Lew.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Longley.dat"> |
|||
<Link>Data\NIST\Longley.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Lottery.dat"> |
|||
<Link>Data\NIST\Lottery.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Mavro.dat"> |
|||
<Link>Data\NIST\Mavro.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Meixner.dat"> |
|||
<Link>Data\NIST\Meixner.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\MGH09.dat"> |
|||
<Link>Data\NIST\MGH09.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\MGH10.dat"> |
|||
<Link>Data\NIST\MGH10.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\MGH17.dat"> |
|||
<Link>Data\NIST\MGH17.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Michelso.dat"> |
|||
<Link>Data\NIST\Michelso.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Misra1a.dat"> |
|||
<Link>Data\NIST\Misra1a.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Misra1b.dat"> |
|||
<Link>Data\NIST\Misra1b.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Misra1c.dat"> |
|||
<Link>Data\NIST\Misra1c.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Misra1d.dat"> |
|||
<Link>Data\NIST\Misra1d.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Nelson.dat"> |
|||
<Link>Data\NIST\Nelson.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\NoInt1.dat"> |
|||
<Link>Data\NIST\NoInt1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\NoInt2.dat"> |
|||
<Link>Data\NIST\NoInt2.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Norris.dat"> |
|||
<Link>Data\NIST\Norris.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\NumAcc1.dat"> |
|||
<Link>Data\NIST\NumAcc1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\NumAcc2.dat"> |
|||
<Link>Data\NIST\NumAcc2.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\NumAcc3.dat"> |
|||
<Link>Data\NIST\NumAcc3.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\NumAcc4.dat"> |
|||
<Link>Data\NIST\NumAcc4.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Pontius.dat"> |
|||
<Link>Data\NIST\Pontius.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Rat42.dat"> |
|||
<Link>Data\NIST\Rat42.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Rat43.dat"> |
|||
<Link>Data\NIST\Rat43.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Roszman1.dat"> |
|||
<Link>Data\NIST\Roszman1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SiRstvt.dat"> |
|||
<Link>Data\NIST\SiRstvt.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs01t.dat"> |
|||
<Link>Data\NIST\SmLs01t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs02t.dat"> |
|||
<Link>Data\NIST\SmLs02t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs03t.dat"> |
|||
<Link>Data\NIST\SmLs03t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs04t.dat"> |
|||
<Link>Data\NIST\SmLs04t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs05t.dat"> |
|||
<Link>Data\NIST\SmLs05t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs06t.dat"> |
|||
<Link>Data\NIST\SmLs06t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs07t.dat"> |
|||
<Link>Data\NIST\SmLs07t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs08t.dat"> |
|||
<Link>Data\NIST\SmLs08t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\SmLs09t.dat"> |
|||
<Link>Data\NIST\SmLs09t.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Thurber.dat"> |
|||
<Link>Data\NIST\Thurber.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Wampler1.dat"> |
|||
<Link>Data\NIST\Wampler1.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Wampler2.dat"> |
|||
<Link>Data\NIST\Wampler2.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Wampler3.dat"> |
|||
<Link>Data\NIST\Wampler3.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Wampler4.dat"> |
|||
<Link>Data\NIST\Wampler4.dat</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\..\data\nist\Wampler5.dat"> |
|||
<Link>Data\NIST\Wampler5.dat</Link> |
|||
</EmbeddedResource> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<EmbeddedResource Include="..\..\data\MatrixMarket\fidap007.mtx"> |
|||
<Link>Data\MatrixMarket\fidap007.mtx</Link> |
|||
</EmbeddedResource> |
|||
</ItemGroup> |
|||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
|||
Other similar extension points exist, see Microsoft.Common.targets. |
|||
<Target Name="BeforeBuild"> |
|||
</Target> |
|||
<Target Name="AfterBuild"> |
|||
</Target> |
|||
--> |
|||
</Project> |
|||
Loading…
Reference in new issue