daily commit on 0917

This commit is contained in:
Youmu Liu
2025-09-17 20:39:27 +08:00
parent 9312407b0f
commit 6e27c6219d
3 changed files with 47 additions and 5 deletions
+10 -3
View File
@@ -33,7 +33,8 @@ using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using hlsfAllocator = global::StgSharp.HighPerformance.Memory.HybridLayerSegregatedFitAllocator;
using hlsfHandle = global::StgSharp.HighPerformance.Memory.HybridLayerSegregatedFitAllocationHandle;
// using hlsfHandle = global::StgSharp.HighPerformance.Memory.HybridLayerSegregatedFitAllocationHandle;
namespace StgSharp.Mathematics
{
@@ -67,17 +68,23 @@ namespace StgSharp.Mathematics
set;
} = null;
/// <summary>
/// Length of the matrix in columns.
/// </summary>
public int ColumnLength { get; init; }
/// <summary>
/// Length of the matrix in rows.
/// </summary>
public int RowLength { get; init; }
public static MatrixAllocation DefaultAllocation { get; set; } = MatrixAllocation.GC;
internal abstract MatrixKernel* Buffer { get; }
protected int KernelColumnLength { get; init; }
protected internal int KernelColumnLength { get; init; }
protected int KernelRowLength { get; init; }
protected internal int KernelRowLength { get; init; }
public static Matrix<T> FromDefault(int columnLength, int rowLength)
{