Skip to content

Commit d6d8164

Browse files
committed
Release v5.0.0-alpha12
1 parent d78c53e commit d6d8164

9 files changed

Lines changed: 51 additions & 14 deletions

File tree

RELEASENOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### 5.0.0-alpha11 - 2022-02-27
1+
### 5.0.0-alpha12 - 2022-02-27
22
* COMPATIBILITY: net5.0, net48 better supported with explicit builds
33
* COMPATIBILITY: netstandard1.x, net40, net45 no longer supported
44
* BREAKING: drop all which was marked as obsolete

src/Data.Matlab/Data.Matlab.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>MathNet.Numerics.Data.Matlab</PackageId>
1010
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Data.Matlab.Signed</PackageId>
1111
<VersionPrefix>5.0.0</VersionPrefix>
12-
<VersionSuffix>alpha11</VersionSuffix>
12+
<VersionSuffix>alpha12</VersionSuffix>
1313
<Title>Math.NET Numerics - MATLAB Data I/O Extensions$(TitleSuffix)</Title>
1414
<Description>MathWorks MATLAB Data Input/Output Extensions for Math.NET Numerics, the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
1515
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds

src/Data.Text/Data.Text.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>MathNet.Numerics.Data.Text</PackageId>
1010
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Data.Text.Signed</PackageId>
1111
<VersionPrefix>5.0.0</VersionPrefix>
12-
<VersionSuffix>alpha11</VersionSuffix>
12+
<VersionSuffix>alpha12</VersionSuffix>
1313
<Title>Math.NET Numerics - Text Data I/O Extensions$(TitleSuffix)</Title>
1414
<Description>Text Data Input/Output Extensions for Math.NET Numerics, the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
1515
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds

src/FSharp/FSharp.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>MathNet.Numerics.FSharp</PackageId>
1010
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.FSharp.Signed</PackageId>
1111
<VersionPrefix>5.0.0</VersionPrefix>
12-
<VersionSuffix>alpha11</VersionSuffix>
12+
<VersionSuffix>alpha12</VersionSuffix>
1313
<Title>Math.NET Numerics for F#$(TitleSuffix)</Title>
1414
<Description>F# Modules for Math.NET Numerics, the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Supports .NET 5.0 or higher, .NET Standard 2.0 and .NET Framework 4.6.1 or higher, on Windows, Linux and Mac.$(DescriptionSuffix)</Description>
1515
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds

src/Numerics/Numerics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>MathNet.Numerics</PackageId>
1010
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Signed</PackageId>
1111
<VersionPrefix>5.0.0</VersionPrefix>
12-
<VersionSuffix>alpha11</VersionSuffix>
12+
<VersionSuffix>alpha12</VersionSuffix>
1313
<Title>Math.NET Numerics$(TitleSuffix)</Title>
1414
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Supports .NET 5.0 or higher, .NET Standard 2.0 and .NET Framework 4.6.1 or higher, on Windows, Linux and Mac.$(DescriptionSuffix)</Description>
1515
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds

src/Providers.CUDA/Providers.CUDA.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>MathNet.Numerics.Providers.CUDA</PackageId>
1010
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Providers.CUDA.Signed</PackageId>
1111
<VersionPrefix>5.0.0</VersionPrefix>
12-
<VersionSuffix>alpha11</VersionSuffix>
12+
<VersionSuffix>alpha12</VersionSuffix>
1313
<Title>Math.NET Numerics CUDA Provider$(TitleSuffix)</Title>
1414
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
1515
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds

src/Providers.MKL/NativeProviderLoader.cs

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ internal static bool TryLoad(string fileName, string hintPath)
135135
return true;
136136
}
137137

138+
if (!IsWindows && fileName.StartsWith("lib") && TryLoadDirect(fileName.Substring(3)))
139+
{
140+
return true;
141+
}
142+
138143
// If we have hint path provided by the user, look there next
139144
if (hintPath != null && TryLoadFromDirectory(fileName, hintPath))
140145
{
@@ -297,10 +302,26 @@ static bool TryLoadDirect(string fileName)
297302
}
298303

299304
#if NET5_0_OR_GREATER
300-
return NativeLibrary.TryLoad(fileName, out libraryHandle);
305+
try
306+
{
307+
return NativeLibrary.TryLoad(fileName, out libraryHandle);
308+
}
309+
catch
310+
{
311+
return false;
312+
}
301313
#else
302-
// If successful this will return a handle to the library
303-
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fileName) : WindowsLoader.LoadLibrary(fileName);
314+
try
315+
{
316+
// If successful this will return a handle to the library
317+
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fileName) : WindowsLoader.LoadLibrary(fileName);
318+
}
319+
catch (Exception e)
320+
{
321+
LastException = e;
322+
return false;
323+
}
324+
304325
if (libraryHandle == IntPtr.Zero)
305326
{
306327
int lastError = Marshal.GetLastWin32Error();
@@ -340,10 +361,26 @@ static bool TryLoadFile(string directory, string relativePath, string fileName)
340361
}
341362

342363
#if NET5_0_OR_GREATER
343-
return NativeLibrary.TryLoad(fullPath, out libraryHandle);
364+
try
365+
{
366+
return NativeLibrary.TryLoad(fullPath, out libraryHandle);
367+
}
368+
catch
369+
{
370+
return false;
371+
}
344372
#else
345-
// If successful this will return a handle to the library
346-
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fullPath) : WindowsLoader.LoadLibrary(fullPath);
373+
try
374+
{
375+
// If successful this will return a handle to the library
376+
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fullPath) : WindowsLoader.LoadLibrary(fullPath);
377+
}
378+
catch (Exception e)
379+
{
380+
LastException = e;
381+
return false;
382+
}
383+
347384
if (libraryHandle == IntPtr.Zero)
348385
{
349386
int lastError = Marshal.GetLastWin32Error();

src/Providers.MKL/Providers.MKL.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>MathNet.Numerics.Providers.MKL</PackageId>
1010
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Providers.MKL.Signed</PackageId>
1111
<VersionPrefix>5.0.0</VersionPrefix>
12-
<VersionSuffix>alpha11</VersionSuffix>
12+
<VersionSuffix>alpha12</VersionSuffix>
1313
<Title>Math.NET Numerics MKL Provider$(TitleSuffix)</Title>
1414
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
1515
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds

src/Providers.OpenBLAS/Providers.OpenBLAS.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>MathNet.Numerics.Providers.OpenBLAS</PackageId>
1010
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Providers.OpenBLAS.Signed</PackageId>
1111
<VersionPrefix>5.0.0</VersionPrefix>
12-
<VersionSuffix>alpha11</VersionSuffix>
12+
<VersionSuffix>alpha12</VersionSuffix>
1313
<Title>Math.NET Numerics OpenBLAS Provider$(TitleSuffix)</Title>
1414
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
1515
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds

0 commit comments

Comments
 (0)