forked from tsai/mathnet-numerics
17 changed files with 490 additions and 0 deletions
@ -0,0 +1,102 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|||
<ProductVersion>8.0.30703</ProductVersion> |
|||
<SchemaVersion>2.0</SchemaVersion> |
|||
<ProjectGuid>{8A42A7F3-23C0-46D9-9DBA-B9039EB3C8EB}</ProjectGuid> |
|||
<OutputType>Library</OutputType> |
|||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|||
<RootNamespace>ACMLWrapperTests</RootNamespace> |
|||
<AssemblyName>ACMLWrapperTests</AssemblyName> |
|||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
|||
<FileAlignment>512</FileAlignment> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<DebugType>full</DebugType> |
|||
<Optimize>false</Optimize> |
|||
<OutputPath>bin\Debug\</OutputPath> |
|||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<OutputPath>bin\Release\</OutputPath> |
|||
<DefineConstants>TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
<PlatformTarget>x86</PlatformTarget> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Reference Include="MathNet.Numerics"> |
|||
<HintPath>..\..\..\..\out\debug\Net40\MathNet.Numerics.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="nunit.framework"> |
|||
<HintPath>..\..\..\..\lib\NUnit.2.5.9\nunit.framework.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="System" /> |
|||
<Reference Include="System.Core" /> |
|||
<Reference Include="System.Numerics" /> |
|||
<Reference Include="System.Xml.Linq" /> |
|||
<Reference Include="System.Data.DataSetExtensions" /> |
|||
<Reference Include="Microsoft.CSharp" /> |
|||
<Reference Include="System.Data" /> |
|||
<Reference Include="System.Xml" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="..\..\..\UnitTests\AssertHelpers.cs"> |
|||
<Link>AssertHelpers.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\..\..\UnitTests\LinearAlgebraProviderTests\Complex32\LinearAlgebraProviderTests.cs"> |
|||
<Link>Complex32\LinearAlgebraProviderTests.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\..\..\UnitTests\LinearAlgebraProviderTests\Complex\LinearAlgebraProviderTests.cs"> |
|||
<Link>Complex\LinearAlgebraProviderTests.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\..\..\UnitTests\LinearAlgebraProviderTests\Double\LinearAlgebraProviderTests.cs"> |
|||
<Link>Double\LinearAlgebraProviderTests.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\..\..\UnitTests\LinearAlgebraProviderTests\Single\LinearAlgebraProviderTests.cs"> |
|||
<Link>Single\LinearAlgebraProviderTests.cs</Link> |
|||
</Compile> |
|||
<Compile Include="Complex32\AcmlLinearAlgebraProviderTests.cs" /> |
|||
<Compile Include="Complex\AcmlLinearAlgebraProviderTests.cs" /> |
|||
<Compile Include="Double\AcmlLinearAlgebraProviderTests.cs" /> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
<Compile Include="Single\AcmlLinearAlgebraProviderTests.cs" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Content Include="..\Release\MathNET.Numerics.ACML.dll"> |
|||
<Link>MathNET.Numerics.ACML.dll</Link> |
|||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
|||
</Content> |
|||
<Content Include="C:\AMD\acml4.4.0\ifort32_mp\lib\libacml_mp_dll.dll"> |
|||
<Link>libacml_mp_dll.dll</Link> |
|||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
|||
</Content> |
|||
<Content Include="C:\AMD\acml4.4.0\ifort32_mp\lib\libifcoremd.dll"> |
|||
<Link>libifcoremd.dll</Link> |
|||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
|||
</Content> |
|||
<Content Include="C:\AMD\acml4.4.0\ifort32_mp\lib\libiomp5md.dll"> |
|||
<Link>libiomp5md.dll</Link> |
|||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
|||
</Content> |
|||
<Content Include="C:\AMD\acml4.4.0\ifort32_mp\lib\libmmd.dll"> |
|||
<Link>libmmd.dll</Link> |
|||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
|||
</Content> |
|||
</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> |
|||
@ -0,0 +1,51 @@ |
|||
// <copyright file="AcmlLinearAlgebraProviderTests.cs" company="Math.NET">
|
|||
// Math.NET Numerics, part of the Math.NET Project
|
|||
// http://numerics.mathdotnet.com
|
|||
// http://github.com/mathnet/mathnet-numerics
|
|||
// http://mathnetnumerics.codeplex.com
|
|||
//
|
|||
// Copyright (c) 2009-2010 Math.NET
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
// </copyright>
|
|||
|
|||
using MathNet.Numerics.UnitTests.LinearAlgebraProviderTests.Complex; |
|||
|
|||
namespace MathNet.Numerics.AcmlBlasWrapperTests.LinearAlgebra.Complex |
|||
{ |
|||
using NUnit.Framework; |
|||
|
|||
/// <summary>
|
|||
/// Unit test container for the ACML linear algebra provider.
|
|||
/// </summary>
|
|||
[TestFixture] |
|||
public class AcmlLinearAlgebraProviderTests : LinearAlgebraProviderTests |
|||
{ |
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AcmlLinearAlgebraProviderTests"/> class.
|
|||
/// </summary>
|
|||
public AcmlLinearAlgebraProviderTests() |
|||
{ |
|||
Control.LinearAlgebraProvider = new Algorithms.LinearAlgebra.Acml.AcmlLinearAlgebraProvider(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,51 @@ |
|||
// <copyright file="AcmlLinearAlgebraProviderTests.cs" company="Math.NET">
|
|||
// Math.NET Numerics, part of the Math.NET Project
|
|||
// http://numerics.mathdotnet.com
|
|||
// http://github.com/mathnet/mathnet-numerics
|
|||
// http://mathnetnumerics.codeplex.com
|
|||
//
|
|||
// Copyright (c) 2009-2010 Math.NET
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
// </copyright>
|
|||
|
|||
using MathNet.Numerics.UnitTests.LinearAlgebraProviderTests.Complex; |
|||
|
|||
namespace MathNet.Numerics.AcmlBlasWrapperTests.LinearAlgebra.Complex32 |
|||
{ |
|||
using NUnit.Framework; |
|||
|
|||
/// <summary>
|
|||
/// Unit test container for the ACML linear algebra provider.
|
|||
/// </summary>
|
|||
[TestFixture] |
|||
public class AcmlLinearAlgebraProviderTests : LinearAlgebraProviderTests |
|||
{ |
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AcmlLinearAlgebraProviderTests"/> class.
|
|||
/// </summary>
|
|||
public AcmlLinearAlgebraProviderTests() |
|||
{ |
|||
Control.LinearAlgebraProvider = new Algorithms.LinearAlgebra.Acml.AcmlLinearAlgebraProvider(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,51 @@ |
|||
// <copyright file="AcmlLinearAlgebraProviderTests.cs" company="Math.NET">
|
|||
// Math.NET Numerics, part of the Math.NET Project
|
|||
// http://numerics.mathdotnet.com
|
|||
// http://github.com/mathnet/mathnet-numerics
|
|||
// http://mathnetnumerics.codeplex.com
|
|||
//
|
|||
// Copyright (c) 2009-2010 Math.NET
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
// </copyright>
|
|||
|
|||
using MathNet.Numerics.UnitTests.LinearAlgebraProviderTests.Complex; |
|||
|
|||
namespace MathNet.Numerics.AcmlBlasWrapperTests.LinearAlgebra.Double |
|||
{ |
|||
using NUnit.Framework; |
|||
|
|||
/// <summary>
|
|||
/// Unit test container for the ACML linear algebra provider.
|
|||
/// </summary>
|
|||
[TestFixture] |
|||
public class AcmlLinearAlgebraProviderTests : LinearAlgebraProviderTests |
|||
{ |
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AcmlLinearAlgebraProviderTests"/> class.
|
|||
/// </summary>
|
|||
public AcmlLinearAlgebraProviderTests() |
|||
{ |
|||
Control.LinearAlgebraProvider = new Algorithms.LinearAlgebra.Acml.AcmlLinearAlgebraProvider(); |
|||
} |
|||
} |
|||
} |
|||
@ -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("ACMLWrapperTests")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("Microsoft")] |
|||
[assembly: AssemblyProduct("ACMLWrapperTests")] |
|||
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] |
|||
[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("83801bc7-d554-4669-aede-db11d009d283")] |
|||
|
|||
// 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,51 @@ |
|||
// <copyright file="AcmlLinearAlgebraProviderTests.cs" company="Math.NET">
|
|||
// Math.NET Numerics, part of the Math.NET Project
|
|||
// http://numerics.mathdotnet.com
|
|||
// http://github.com/mathnet/mathnet-numerics
|
|||
// http://mathnetnumerics.codeplex.com
|
|||
//
|
|||
// Copyright (c) 2009-2010 Math.NET
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person
|
|||
// obtaining a copy of this software and associated documentation
|
|||
// files (the "Software"), to deal in the Software without
|
|||
// restriction, including without limitation the rights to use,
|
|||
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|||
// copies of the Software, and to permit persons to whom the
|
|||
// Software is furnished to do so, subject to the following
|
|||
// conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be
|
|||
// included in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|||
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|||
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|||
// OTHER DEALINGS IN THE SOFTWARE.
|
|||
// </copyright>
|
|||
|
|||
using MathNet.Numerics.UnitTests.LinearAlgebraProviderTests.Complex; |
|||
|
|||
namespace MathNet.Numerics.AcmlBlasWrapperTests.LinearAlgebra.Single |
|||
{ |
|||
using NUnit.Framework; |
|||
|
|||
/// <summary>
|
|||
/// Unit test container for the ACML linear algebra provider.
|
|||
/// </summary>
|
|||
[TestFixture] |
|||
public class AcmlLinearAlgebraProviderTests : LinearAlgebraProviderTests |
|||
{ |
|||
/// <summary>
|
|||
/// Initializes a new instance of the <see cref="AcmlLinearAlgebraProviderTests"/> class.
|
|||
/// </summary>
|
|||
public AcmlLinearAlgebraProviderTests() |
|||
{ |
|||
Control.LinearAlgebraProvider = new Algorithms.LinearAlgebra.Acml.AcmlLinearAlgebraProvider(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
<#@ template language="C#" debug="true" #> |
|||
<#@ output extenstion="cs" #> |
|||
<# string library = "Acml";#> |
|||
<# string title = "AMD Core Math Library (ACML)";#> |
|||
<# string dataType = "Common";#> |
|||
<#@ include file="..\native.header.include" #> |
|||
<#@ include file="..\native.footer.include" #> |
|||
@ -0,0 +1,13 @@ |
|||
<#@ template language="C#" debug="true" #> |
|||
<#@ output extenstion="cs" #> |
|||
<# string library = "Acml";#> |
|||
<# string title = "AMD Core Math Library (ACML)";#> |
|||
<# string dataType = "Complex";#> |
|||
<# string zero = "Complex.Zero";#> |
|||
<# string one = "Complex.One";#> |
|||
<# string prefix = "z";#> |
|||
<# string svd_work = "2 * Math.Min(rowsA, columnsA) + Math.Max(rowsA, columnsA)";#> |
|||
<#@ include file="..\native.header.include" #> |
|||
<#@ include file="..\native.dotproduct.include" #> |
|||
<#@ include file="..\native.generic.include" #> |
|||
<#@ include file="..\native.footer.include" #> |
|||
@ -0,0 +1,13 @@ |
|||
<#@ template language="C#" debug="true" #> |
|||
<#@ output extenstion="cs" #> |
|||
<# string library = "Acml";#> |
|||
<# string title = "AMD Core Math Library (ACML)";#> |
|||
<# string dataType = "Complex32";#> |
|||
<# string zero = "Complex32.Zero";#> |
|||
<# string one = "Complex32.One";#> |
|||
<# string prefix = "c";#> |
|||
<# string svd_work = "2 * Math.Min(rowsA, columnsA) + Math.Max(rowsA, columnsA)";#> |
|||
<#@ include file="..\native.header.include" #> |
|||
<#@ include file="..\native.dotproduct.include" #> |
|||
<#@ include file="..\native.generic.include" #> |
|||
<#@ include file="..\native.footer.include" #> |
|||
@ -0,0 +1,13 @@ |
|||
<#@ template language="C#" debug="true" #> |
|||
<#@ output extenstion="cs" #> |
|||
<# string library = "Acml";#> |
|||
<# string title = "AMD Core Math Library (ACML)";#> |
|||
<# string dataType = "double";#> |
|||
<# string zero = "0.0";#> |
|||
<# string one = "1.0";#> |
|||
<# string prefix = "d";#> |
|||
<# string svd_work = "Math.Max((3 * Math.Min(rowsA, columnsA)) + Math.Max(rowsA, columnsA), 5 * Math.Min(rowsA, columnsA))";#> |
|||
<#@ include file="..\native.header.include" #> |
|||
<#@ include file="..\native.dotproduct.include" #> |
|||
<#@ include file="..\native.generic.include" #> |
|||
<#@ include file="..\native.footer.include" #> |
|||
@ -0,0 +1,13 @@ |
|||
<#@ template language="C#" debug="true" #> |
|||
<#@ output extenstion="cs" #> |
|||
<# string library = "Acml";#> |
|||
<# string title = "AMD Core Math Library (ACML)";#> |
|||
<# string dataType = "float";#> |
|||
<# string zero = "0.0f";#> |
|||
<# string one = "1.0f";#> |
|||
<# string prefix = "s";#> |
|||
<# string svd_work = "Math.Max((3 * Math.Min(rowsA, columnsA) + Math.Max(rowsA, columnsA)), 5 * Math.Min(rowsA, columnsA))";#> |
|||
<#@ include file="..\native.header.include" #> |
|||
<#@ include file="..\native.dotproduct.include" #> |
|||
<#@ include file="..\native.generic.include" #> |
|||
<#@ include file="..\native.footer.include" #> |
|||
@ -0,0 +1,8 @@ |
|||
<#@ template language="C#" debug="true" #> |
|||
<#@ output extenstion="cs" #> |
|||
<# string namespaceSuffix = "Acml"; |
|||
string library = "ACML"; |
|||
#> |
|||
<#@ include file="..\safe.native.common.include" #> |
|||
} |
|||
} |
|||
Loading…
Reference in new issue