add namespace for all assets
This commit is contained in:
@@ -11,19 +11,12 @@ using C33 = CategoryOf<IDim3>.OnField<Complex>.FMatrix;
|
||||
public static class ComplexMatrixExtension
|
||||
{
|
||||
|
||||
private struct C22B
|
||||
private struct C22B(Complex a, Complex b, Complex c, Complex d)
|
||||
{
|
||||
public C22B(Complex a, Complex b, Complex c, Complex d)
|
||||
{
|
||||
X11 = a;
|
||||
X12 = b;
|
||||
X21 = c;
|
||||
X22 = d;
|
||||
}
|
||||
public Complex X11;
|
||||
public Complex X12;
|
||||
public Complex X21;
|
||||
public Complex X22;
|
||||
public Complex X11 = a;
|
||||
public Complex X12 = b;
|
||||
public Complex X21 = c;
|
||||
public Complex X22 = d;
|
||||
|
||||
public static C22B operator +(C22B a, C22B b) =>
|
||||
new(a.X11 + b.X11, a.X12 + b.X12, a.X21 + b.X21, a.X22 + b.X22);
|
||||
@@ -96,14 +89,16 @@ public static class ComplexMatrixExtension
|
||||
C22B w = t + FastFullMul(cPd - a, Ds_CsA);
|
||||
C22B wPv = w + v;
|
||||
|
||||
C33 res = new();
|
||||
res[1, 1] = t.X11 + self[1, 3] * other[3, 1];
|
||||
res[1, 2] = t.X12 + self[1, 3] * other[3, 2];
|
||||
res[2, 1] = t.X21 + self[2, 3] * other[3, 1];
|
||||
res[2, 2] = t.X22 + self[2, 3] * other[3, 2];
|
||||
C33 res = new()
|
||||
{
|
||||
[1, 1] = t.X11 + self[1, 3] * other[3, 1],
|
||||
[1, 2] = t.X12 + self[1, 3] * other[3, 2],
|
||||
[2, 1] = t.X21 + self[2, 3] * other[3, 1],
|
||||
[2, 2] = t.X22 + self[2, 3] * other[3, 2],
|
||||
[1, 3] = wPv.X11 + (self[1, 3] - self[3, 3] - cSa.X11) * other[3, 3],
|
||||
[2, 3] = wPv.X21 + (self[2, 3] - cSa.X21) * other[3, 3]
|
||||
};
|
||||
|
||||
res[1, 3] = wPv.X11 + (self[1, 3] - self[3, 3] - cSa.X11) * other[3, 3];
|
||||
res[2, 3] = wPv.X21 + (self[2, 3] - cSa.X21) * other[3, 3];
|
||||
C22B wPu = w + u;
|
||||
res[3, 1] = wPu.X11 + self[3, 3] * (other[3, 1] - other[1, 1] + CsD.X11);
|
||||
res[3, 2] = wPu.X12 + self[3, 3] * (other[3, 2] - other[1, 2] + CsD.X12);
|
||||
|
||||
Reference in New Issue
Block a user