Coplt.Mathematics
0.4.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
dotnet add package Coplt.Mathematics --version 0.4.0
NuGet\Install-Package Coplt.Mathematics -Version 0.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Coplt.Mathematics" Version="0.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Coplt.Mathematics --version 0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Coplt.Mathematics, 0.4.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Coplt.Mathematics as a Cake Addin #addin nuget:?package=Coplt.Mathematics&version=0.4.0 // Install Coplt.Mathematics as a Cake Tool #tool nuget:?package=Coplt.Mathematics&version=0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Coplt.Mathematics
hlsl-style linear algebra library
- bool (b16 b32 b64)、half [1]、float、double、short、ushort、int、uint、long、ulong、decimal [2]
- Vector2~4 (float3 double4 int2 ...)
- Matrix2x2~4x4 (float3x3 double4x2 int2x3 ...)
- Hlsl-like cartesian product swizzle (.yzx .abgr ...)
- Full simd support (net8+ only)
- Simd accelerated [3] log, exp, pow, fmod, trigonometry
[!NOTE] <a name="note-1"></a>
- Very slow on CPU <a name="note-2"></a>
- Cpu only <a name="note-3"></a>
- Lower precision than C# system library
Function ULPs (vs C# system library)
function | float | double |
---|---|---|
log2 | 1 | 2 |
asin | 2 | 2 |
acos | 2 | 2 |
atan | 2 | 2 |
atan2 | 2 | 2 |
- The function that needs to be rewritten due to insufficient precision is not in the table
Todo
- tests
- rewrite the function with too low precision
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- System.Text.Json (>= 8.0.5)
- Ultz.Bcl.Half (>= 1.0.0)
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Coplt.Mathematics:
Package | Downloads |
---|---|
Coplt.Windowing
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.