28 references to GetVectorAlignment
Microsoft.ML.CpuMath (2)
CpuAligenedMathUtils.cs (2)
22Contracts.Assert((mat.Items.CbAlign % CpuMathUtils.GetVectorAlignment()) == 0); 35Contracts.Assert((vec.Items.CbAlign % CpuMathUtils.GetVectorAlignment()) == 0);
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
27private static readonly int _vectorAlignment = CpuMathUtils.GetVectorAlignment();
Microsoft.ML.TimeSeries (16)
AdaptiveSingularSpectrumSequenceModeler.cs (16)
272_x = new CpuAlignedVector(windowSize, CpuMathUtils.GetVectorAlignment()); 273_xSmooth = new CpuAlignedVector(windowSize, CpuMathUtils.GetVectorAlignment()); 327_x = new CpuAlignedVector(_windowSize, CpuMathUtils.GetVectorAlignment()); 328_xSmooth = new CpuAlignedVector(_windowSize, CpuMathUtils.GetVectorAlignment()); 332_y = new CpuAlignedVector(_rank, CpuMathUtils.GetVectorAlignment()); 333_wTrans = new CpuAlignedMatrixRow(_rank, _windowSize, CpuMathUtils.GetVectorAlignment()); 434_wTrans = new CpuAlignedMatrixRow(_rank, _windowSize, CpuMathUtils.GetVectorAlignment()); 439_y = new CpuAlignedVector(_rank, CpuMathUtils.GetVectorAlignment()); 444_x = new CpuAlignedVector(_windowSize, CpuMathUtils.GetVectorAlignment()); 445_xSmooth = new CpuAlignedVector(_windowSize, CpuMathUtils.GetVectorAlignment()); 1112_y = new CpuAlignedVector(_rank, CpuMathUtils.GetVectorAlignment()); 1113_wTrans = new CpuAlignedMatrixRow(_rank, _windowSize, CpuMathUtils.GetVectorAlignment()); 1294_x = new CpuAlignedVector(_windowSize, CpuMathUtils.GetVectorAlignment()); 1295_xSmooth = new CpuAlignedVector(_windowSize, CpuMathUtils.GetVectorAlignment()); 1332_y = new CpuAlignedVector(_rank, CpuMathUtils.GetVectorAlignment()); 1335_wTrans = new CpuAlignedMatrixRow(_rank, _windowSize, CpuMathUtils.GetVectorAlignment());
Microsoft.ML.Transforms (9)
RandomFourierFeaturizing.cs (9)
124RndFourierVectors = new AlignedArray(roundedUpD * roundedUpNumFeatures, CpuMathUtils.GetVectorAlignment()); 125RotationTerms = _useSin ? null : new AlignedArray(roundedUpD, CpuMathUtils.GetVectorAlignment()); 158RndFourierVectors = new AlignedArray(roundedUpD * roundedUpNumFeatures, CpuMathUtils.GetVectorAlignment()); 159RotationTerms = _useSin ? null : new AlignedArray(roundedUpD, CpuMathUtils.GetVectorAlignment()); 227private static readonly int _cfltAlign = CpuMathUtils.GetVectorAlignment() / sizeof(float); 517var featuresAligned = new AlignedArray(RoundUp(_srcTypes[iinfo].GetValueCount(), _cfltAlign), CpuMathUtils.GetVectorAlignment()); 518var productAligned = new AlignedArray(RoundUp(_parent._transformInfos[iinfo].NewDim, _cfltAlign), CpuMathUtils.GetVectorAlignment()); 534var featuresAligned = new AlignedArray(RoundUp(1, _cfltAlign), CpuMathUtils.GetVectorAlignment()); 535var productAligned = new AlignedArray(RoundUp(_parent._transformInfos[iinfo].NewDim, _cfltAlign), CpuMathUtils.GetVectorAlignment());