Skip to content

Commit adc4e4b

Browse files
author
Pete Luferenko
committed
Merge remote-tracking branch 'upstream/master' into feature/estimators
2 parents 660ebeb + e77f24e commit adc4e4b

File tree

16 files changed

+2128
-249
lines changed

16 files changed

+2128
-249
lines changed

src/Microsoft.ML.CpuMath/AlignedMatrix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public void ZeroItems(int[] indices)
550550

551551
// REVIEW: Ideally, we'd adjust the indices once so we wouldn't need to
552552
// repeatedly deal with padding adjustments.
553-
SseUtils.ZeroMatrixItems(Items, ColCount, ColCountPhy, indices);
553+
CpuMathUtils.ZeroMatrixItems(Items, ColCount, ColCountPhy, indices);
554554
}
555555
}
556556

src/Microsoft.ML.CpuMath/CpuAligenedMathUtils.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void AssertCompatible(ICpuFullMatrix values)
1616
#if DEBUG
1717
var mat = values as TMatrix;
1818
Contracts.AssertValue(mat);
19-
Contracts.Assert(mat.Items.CbAlign == SseUtils.CbAlign);
19+
Contracts.Assert(mat.Items.CbAlign == CpuMathUtils.Vector128Alignment);
2020
#endif
2121
}
2222

@@ -29,7 +29,7 @@ public static void AssertCompatible(ICpuVector values)
2929
#if DEBUG
3030
CpuAlignedVector vec = values as CpuAlignedVector;
3131
Contracts.AssertValue(vec);
32-
Contracts.Assert(vec.Items.CbAlign == SseUtils.CbAlign);
32+
Contracts.Assert(vec.Items.CbAlign == CpuMathUtils.Vector128Alignment);
3333
#endif
3434
}
3535

@@ -89,7 +89,7 @@ public static void MatTimesSrc(bool add, ICpuFullMatrix mat, ICpuVector src, ICp
8989
bool colMajor = typeof(TMatrix) == typeof(CpuAlignedMatrixCol);
9090
AssertCompatible(mat, src, dst);
9191
var m = A(mat);
92-
SseUtils.MatTimesSrc(colMajor, add, m.Items, A(src).Items, A(dst).Items, m.RunCnt);
92+
CpuMathUtils.MatTimesSrc(colMajor, add, m.Items, A(src).Items, A(dst).Items, m.RunCnt);
9393
}
9494

9595
/// <summary>
@@ -108,7 +108,7 @@ public static void MatTranTimesSrc(bool add, ICpuFullMatrix mat, ICpuVector src,
108108
bool colMajor = typeof(TMatrix) == typeof(CpuAlignedMatrixCol);
109109
AssertCompatible(mat, dst, src);
110110
var m = A(mat);
111-
SseUtils.MatTimesSrc(!colMajor, add, m.Items, A(src).Items, A(dst).Items, m.RunCnt);
111+
CpuMathUtils.MatTimesSrc(!colMajor, add, m.Items, A(src).Items, A(dst).Items, m.RunCnt);
112112
}
113113
}
114114

0 commit comments

Comments
 (0)