matrix mul matrix is full function
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
//-----------------------------------------------------------------------
|
||||
=======
|
||||
//-----------------------------------------------------------------------
|
||||
>>>>>>> 7bcb460a3994dda40f24cae0044b5a36f4f16515
|
||||
=======
|
||||
//-----------------------------------------------------------------------
|
||||
>>>>>>> stgsharp-dev/giga
|
||||
// -----------------------------------------------------------------------
|
||||
// file="MatrixParallelThread"
|
||||
// Project: StgSharp
|
||||
@@ -89,11 +93,12 @@ namespace StgSharp.Mathematics.Numeric
|
||||
while (taskQueue.TryDequeue(out nint handle))
|
||||
{
|
||||
MatrixParallelTaskPackage* p = (MatrixParallelTaskPackage*)handle;
|
||||
if ((short)p->ComputeMode.ParameterStyle < 0) {
|
||||
MatrixComputeModel.SpecialBufferCompute(p);
|
||||
}
|
||||
switch (p->ComputeMode.OperationStyle)
|
||||
{
|
||||
case MatrixOperationStyle.PANEL_OP:
|
||||
break;
|
||||
case MatrixOperationStyle.BUFFER_OP:
|
||||
case MatrixIndexStyle.BUFFER_INDEX:
|
||||
switch (p->ComputeMode.ParameterStyle)
|
||||
{
|
||||
case MatrixOperationParam.RIGHT_ANS_PARAM:
|
||||
@@ -106,6 +111,7 @@ namespace StgSharp.Mathematics.Numeric
|
||||
MatrixComputeModel.BufferComputeUnaryScalar(p);
|
||||
break;
|
||||
case MatrixOperationParam.LEFT_RIGHT_ANS_SCALAR_PARAM:
|
||||
MatrixComputeModel.BufferComputeBinaryScalar(p);
|
||||
break;
|
||||
case MatrixOperationParam.ANS_SCALAR_PARAM:
|
||||
MatrixComputeModel.BufferComputeNoOperatorScalar(p);
|
||||
@@ -114,6 +120,7 @@ namespace StgSharp.Mathematics.Numeric
|
||||
break;
|
||||
}
|
||||
break;
|
||||
<<<<<<< HEAD
|
||||
case MatrixOperationStyle.KERNEL_OP:
|
||||
switch (p->ComputeMode.ParameterStyle)
|
||||
{
|
||||
@@ -146,6 +153,8 @@ namespace StgSharp.Mathematics.Numeric
|
||||
break;
|
||||
}
|
||||
break;
|
||||
=======
|
||||
>>>>>>> stgsharp-dev/giga
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -417,6 +426,7 @@ namespace StgSharp.Mathematics.Numeric
|
||||
private static extern IntPtr GetCurrentThread();
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
private static extern nuint SetThreadAffinityMask(
|
||||
IntPtr hThread,
|
||||
@@ -424,6 +434,11 @@ namespace StgSharp.Mathematics.Numeric
|
||||
=======
|
||||
private static extern nuint SetThreadAffinityMask(IntPtr hThread, nuint dwThreadAffinityMask);
|
||||
>>>>>>> 7bcb460a3994dda40f24cae0044b5a36f4f16515
|
||||
=======
|
||||
private static extern nuint SetThreadAffinityMask(
|
||||
IntPtr hThread,
|
||||
nuint dwThreadAffinityMask);
|
||||
>>>>>>> stgsharp-dev/giga
|
||||
|
||||
[LibraryImport("kernel32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
|
||||
Reference in New Issue
Block a user