Mat mul mat is now on full function
This commit is contained in:
@@ -59,7 +59,7 @@ namespace StgSharp.Mathematics.Numeric
|
||||
|
||||
}
|
||||
|
||||
public enum MatrixOperationStyle : short
|
||||
public enum MatrixIndexStyle : short
|
||||
{
|
||||
|
||||
BUFFER_INDEX = 1,
|
||||
@@ -78,13 +78,14 @@ namespace StgSharp.Mathematics.Numeric
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct MatrixOpMode(MatrixOperationStyle style, MatrixOperationParam paramLayout)
|
||||
public struct MatrixOpMode(MatrixIndexStyle style, MatrixOperationParam paramLayout)
|
||||
{
|
||||
|
||||
public MatrixOperationParam ParameterStyle = paramLayout;
|
||||
public MatrixOperationStyle OperationStyle = style;
|
||||
public MatrixIndexStyle OperationStyle = style;
|
||||
|
||||
public MatrixOpMode(MatrixOperationStyle style, MatrixOperationSpecial paramLayout)
|
||||
public MatrixOperationParam ParameterStyle = paramLayout;
|
||||
|
||||
public MatrixOpMode(MatrixIndexStyle style, MatrixOperationSpecial paramLayout)
|
||||
: this(style, (MatrixOperationParam)paramLayout) { }
|
||||
|
||||
}
|
||||
@@ -113,7 +114,7 @@ namespace StgSharp.Mathematics.Numeric
|
||||
#region ans
|
||||
|
||||
// Group 2: Result kernel base address + reserved
|
||||
[FieldOffset(16)] public IntPtr Result; // 8
|
||||
[FieldOffset(16)] public IntPtr Answer; // 8
|
||||
[FieldOffset(24)] public int ElementSize;
|
||||
[FieldOffset(28)] public int ReservedPtr0; // 4 (extension/reserved)
|
||||
|
||||
@@ -139,10 +140,10 @@ namespace StgSharp.Mathematics.Numeric
|
||||
|
||||
#region ans enum
|
||||
|
||||
[FieldOffset(64)]public int ResultPrimOffset; // 4
|
||||
[FieldOffset(68)]public int ResultPrimStride; // 4
|
||||
[FieldOffset(72)]public int ResultSecOffset; // 4
|
||||
[FieldOffset(76)] public int ResultSecStride; // 4
|
||||
[FieldOffset(64)]public int AnsPrimOffset; // 4
|
||||
[FieldOffset(68)]public int AnsPrimStride; // 4
|
||||
[FieldOffset(72)]public int AnsSecOffset; // 4
|
||||
[FieldOffset(76)] public int AnsSecStride; // 4
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user