forked from tsai/mathnet-numerics
17 changed files with 272 additions and 45 deletions
Binary file not shown.
@ -0,0 +1,24 @@ |
|||||
|
<?xml version="1.0"?> |
||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> |
||||
|
<metadata> |
||||
|
<id>TaskParallelLibrary</id> |
||||
|
<version>1.0.2856.0</version> |
||||
|
<title>Task Parallel Library for .NET 3.5</title> |
||||
|
<authors>Microsoft Corporation</authors> |
||||
|
<owners>Microsoft Corporation</owners> |
||||
|
<licenseUrl>http://go.microsoft.com/fwlink/?LinkID=186234</licenseUrl> |
||||
|
<projectUrl>http://msdn.microsoft.com/en-us/library/dd460717.aspx</projectUrl> |
||||
|
<iconUrl>http://i.msdn.microsoft.com/ee402630.NET_lg.png</iconUrl> |
||||
|
<requireLicenseAcceptance>true</requireLicenseAcceptance> |
||||
|
<description>The package includes: |
||||
|
* Task<T> for executing asynchronous operations. |
||||
|
* Concurrent Collections such as ConcurrentStack, ConcurentQueue ad ConcurrentDictionary. |
||||
|
* PLINQ for writing parallel queries. |
||||
|
* additional Threading operations such as Barrier,SpinLock and SpinWait.</description> |
||||
|
<summary>A complete and official Microsoft backport of the Task Parallel Library (TPL) for .NET 3.5.</summary> |
||||
|
<releaseNotes>This backport was shipped with the Reactive Extensions (Rx) library up until v1.0.2856.0. It can be downloaded from http://www.microsoft.com/download/en/details.aspx?id=24940 .</releaseNotes> |
||||
|
<copyright /> |
||||
|
<language /> |
||||
|
<tags>tpl plinq pfx task parallel extensions .net35 backport</tags> |
||||
|
</metadata> |
||||
|
</package> |
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,11 @@ |
|||||
|
The files below can be distributed as described in the MICROSOFT REACTIVE EXTENSTIONS FOR JAVASCRIPT AND .NET LIBRARIES License. |
||||
|
|
||||
|
System.Observable.dll |
||||
|
System.CoreEx.dll |
||||
|
System.Reactive.dll |
||||
|
System.Interactive.dll |
||||
|
System.Threading.dll |
||||
|
System.Linq.Async.dll |
||||
|
System.Reactive.Testing.dll |
||||
|
System.Reactive.ClientProfile.dll |
||||
|
System.Reactive.ExtendedProfile.dll |
||||
@ -1,6 +1,7 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<repositories> |
<repositories> |
||||
<repository path="..\src\FSharpExamples\packages.config" /> |
<repository path="..\src\FSharpExamples\packages.config" /> |
||||
<repository path="..\src\FSharpUnitTests\packages.config" /> |
<repository path="..\src\FSharpUnitTests\packages.config" /> |
||||
<repository path="..\src\UnitTests\packages.config" /> |
<repository path="..\src\Numerics\packages.config" /> |
||||
|
<repository path="..\src\UnitTests\packages.config" /> |
||||
</repositories> |
</repositories> |
||||
@ -0,0 +1,91 @@ |
|||||
|
#if PORTABLE
|
||||
|
namespace MathNet.Numerics |
||||
|
{ |
||||
|
using System; |
||||
|
|
||||
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)] |
||||
|
public class SerializableAttribute : Attribute |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] |
||||
|
public class SpecialNameAttribute : Attribute |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
#endif
|
||||
|
|
||||
|
#if (PORTABLE || NET35)
|
||||
|
namespace MathNet.Numerics |
||||
|
{ |
||||
|
using System; |
||||
|
|
||||
|
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false, Inherited = false)] |
||||
|
public class TargetedPatchingOptOutAttribute : Attribute |
||||
|
{ |
||||
|
public string Reason { get; private set; } |
||||
|
|
||||
|
public TargetedPatchingOptOutAttribute(string reason) |
||||
|
{ |
||||
|
Reason = reason; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
#endif
|
||||
|
|
||||
|
#if NET35
|
||||
|
namespace MathNet.Numerics |
||||
|
{ |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
public class Tuple<T1, T2> |
||||
|
{ |
||||
|
public T1 Item1 { get; set; } |
||||
|
public T2 Item2 { get; set; } |
||||
|
|
||||
|
public Tuple(T1 Item1, T2 Item2) |
||||
|
{ |
||||
|
this.Item1 = Item1; |
||||
|
this.Item2 = Item2; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public class Tuple<T1, T2, T3> |
||||
|
{ |
||||
|
public T1 Item1 { get; set; } |
||||
|
public T2 Item2 { get; set; } |
||||
|
public T3 Item3 { get; set; } |
||||
|
|
||||
|
public Tuple(T1 Item1, T2 Item2, T3 Item3) |
||||
|
{ |
||||
|
this.Item1 = Item1; |
||||
|
this.Item2 = Item2; |
||||
|
this.Item3 = Item3; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class EnumerableExtensions |
||||
|
{ |
||||
|
public static IEnumerable<T> Zip<TA, TB, T>(this IEnumerable<TA> seqA, IEnumerable<TB> seqB, Func<TA, TB, T> func) |
||||
|
{ |
||||
|
if (seqA == null) throw new ArgumentNullException("seqA"); |
||||
|
if (seqB == null) throw new ArgumentNullException("seqB"); |
||||
|
|
||||
|
return Zip35Deferred(seqA, seqB, func); |
||||
|
} |
||||
|
|
||||
|
private static IEnumerable<T> Zip35Deferred<A, B, T>(IEnumerable<A> seqA, IEnumerable<B> seqB, Func<A, B, T> func) |
||||
|
{ |
||||
|
using (var iteratorA = seqA.GetEnumerator()) |
||||
|
using (var iteratorB = seqB.GetEnumerator()) |
||||
|
{ |
||||
|
while (iteratorA.MoveNext() && iteratorB.MoveNext()) |
||||
|
{ |
||||
|
yield return func(iteratorA.Current, iteratorB.Current); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
#endif
|
||||
@ -0,0 +1,111 @@ |
|||||
|
<?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>9.0.30729</ProductVersion> |
||||
|
<SchemaVersion>2.0</SchemaVersion> |
||||
|
<ProjectGuid>{E54E712D-EB6B-4FBF-B29A-6BB95E719BAC}</ProjectGuid> |
||||
|
<OutputType>Library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>MathNet.Numerics</RootNamespace> |
||||
|
<AssemblyName>MathNet.Numerics</AssemblyName> |
||||
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
<UpgradeBackupLocation /> |
||||
|
<IsWebBootstrapper>false</IsWebBootstrapper> |
||||
|
<TargetFrameworkProfile /> |
||||
|
<PublishUrl>publish\</PublishUrl> |
||||
|
<Install>true</Install> |
||||
|
<InstallFrom>Disk</InstallFrom> |
||||
|
<UpdateEnabled>false</UpdateEnabled> |
||||
|
<UpdateMode>Foreground</UpdateMode> |
||||
|
<UpdateInterval>7</UpdateInterval> |
||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits> |
||||
|
<UpdatePeriodically>false</UpdatePeriodically> |
||||
|
<UpdateRequired>false</UpdateRequired> |
||||
|
<MapFileExtensions>true</MapFileExtensions> |
||||
|
<ApplicationRevision>0</ApplicationRevision> |
||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
||||
|
<UseApplicationTrust>false</UseApplicationTrust> |
||||
|
<BootstrapperEnabled>true</BootstrapperEnabled> |
||||
|
<!-- Conditional Strong Name --> |
||||
|
<AssemblyOriginatorKeyFile>..\MathNet.Numerics.snk</AssemblyOriginatorKeyFile> |
||||
|
<SignAssembly Condition=" '$(SignAssembly)' == '' ">false</SignAssembly> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<OutputPath>..\..\out\lib\Net35\</OutputPath> |
||||
|
<IntermediateOutputPath>..\..\obj\lib\Net35\</IntermediateOutputPath> |
||||
|
<BaseIntermediateOutputPath>..\..\obj\lib\Net35\</BaseIntermediateOutputPath> |
||||
|
<DocumentationFile>..\..\out\lib\Net35\MathNet.Numerics.xml</DocumentationFile> |
||||
|
<!-- Conditional Strong Name: NO --> |
||||
|
<SignAssembly>false</SignAssembly> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<DefineConstants>TRACE;NET35;NOSYSNUMERICS</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
||||
|
<NoWarn>1591</NoWarn> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<OutputPath>..\..\out\lib-debug\Net35\</OutputPath> |
||||
|
<IntermediateOutputPath>..\..\obj\lib-debug\Net35\</IntermediateOutputPath> |
||||
|
<BaseIntermediateOutputPath>..\..\obj\lib-debug\Net35\</BaseIntermediateOutputPath> |
||||
|
<!-- Conditional Strong Name: NO --> |
||||
|
<SignAssembly>false</SignAssembly> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<DefineConstants>TRACE;DEBUG;NET35;NOSYSNUMERICS</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<DocumentationFile /> |
||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Signed|AnyCPU'"> |
||||
|
<OutputPath>..\..\out\lib-signed\Net35\</OutputPath> |
||||
|
<IntermediateOutputPath>..\..\obj\lib-signed\Net35\</IntermediateOutputPath> |
||||
|
<BaseIntermediateOutputPath>..\..\obj\lib-signed\Net35\</BaseIntermediateOutputPath> |
||||
|
<DocumentationFile>..\..\out\lib-signed\Net35\MathNet.Numerics.xml</DocumentationFile> |
||||
|
<!-- Conditional Strong Name: YES --> |
||||
|
<SignAssembly>true</SignAssembly> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
|
<Optimize>true</Optimize> |
||||
|
<DefineConstants>TRACE;NET35;NOSYSNUMERICS;STRONGNAME</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
||||
|
<NoWarn>1591</NoWarn> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Threading"> |
||||
|
<HintPath>..\..\packages\TaskParallelLibrary.1.0.2856.0\lib\Net35\System.Threading.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<EmbeddedResource Include="Properties\Resources.resx"> |
||||
|
<Generator>PublicResXFileCodeGenerator</Generator> |
||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
|
<SubType>Designer</SubType> |
||||
|
</EmbeddedResource> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="**\*.cs" Exclude="Properties\Resources.Designer.cs"> |
||||
|
</Compile> |
||||
|
<Compile Include="Properties\Resources.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DesignTime>True</DesignTime> |
||||
|
<DependentUpon>Resources.resx</DependentUpon> |
||||
|
</Compile> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<None Include="packages.config" /> |
||||
|
</ItemGroup> |
||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
|
</Project> |
||||
@ -1,28 +0,0 @@ |
|||||
#if PORTABLE
|
|
||||
|
|
||||
using System; |
|
||||
|
|
||||
namespace MathNet.Numerics |
|
||||
{ |
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)] |
|
||||
public class SerializableAttribute : Attribute |
|
||||
{ |
|
||||
} |
|
||||
|
|
||||
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false, Inherited = false)] |
|
||||
public class TargetedPatchingOptOutAttribute : Attribute |
|
||||
{ |
|
||||
public string Reason { get; private set; } |
|
||||
public TargetedPatchingOptOutAttribute(string reason) |
|
||||
{ |
|
||||
Reason = reason; |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] |
|
||||
public class SpecialNameAttribute : Attribute |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
#endif
|
|
||||
@ -0,0 +1,4 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<packages> |
||||
|
<package id="TaskParallelLibrary" version="1.0.2856.0" targetFramework="net35" /> |
||||
|
</packages> |
||||
Loading…
Reference in new issue