HLSF done, working on matrix

This commit is contained in:
Nitload
2025-08-25 09:04:19 +08:00
parent 8779d7d77c
commit bd0e31e922
11 changed files with 78 additions and 549 deletions
+7 -5
View File
@@ -29,17 +29,21 @@
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
using StgSharp.HighPerformance;
using StgSharp.HighPerformance.Memory;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using hlsfHandle = StgSharp.HighPerformance.Memory.HybridLayerSegregatedFitAllocationHandle;
namespace StgSharp.Mathematics
{
public abstract unsafe partial class Matrix
public abstract unsafe partial class Matrix<T> where T: unmanaged, INumber<T>
{
public abstract ref float this[int column, int row]
@@ -49,10 +53,8 @@ namespace StgSharp.Mathematics
public abstract MatrixKernel* GetMatrixKernel(int column, int row);
[Obsolete(
"This method does not contain boarder check, so be careful on size or use indexer instead.",
false)]
public abstract float* UnsafeIndex(int column, int row);
[Obsolete("This method does not contain boarder check, so be careful on size or use indexer instead.", false)]
public abstract T* UnsafeIndex(int column, int row);
}
}