20 writes to
Microsoft.ML.CpuMath (8)
AlignedMatrix.cs (5)
110_items[index] = value; 133_items[i] = rand(); 363Items[k + j] = rand(); 640Items[row + col * RowCountPhy] = src[ivSrc++]; 658Items[row + col * ColCountPhy] = 0;
CpuMathUtils.netcoreapp.cs (3)
83destination[i] = dotProduct; 97destination[i] = dotProduct; 152destination[i] = dotProduct;
Microsoft.ML.StandardTrainers (8)
FactorizationMachine\FactorizationMachineTrainer.cs (4)
318latentWeightsAligned[vBias + k] = _radius * (float)rng.NextDouble(); 320latentWeightsAligned[vBias + k] = 0; 321latentAccumulatedSquaredGradsAligned[vBias + k] = 1; 337latentAccumulatedSquaredGradsAligned[vBias + k] = 1;
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (4)
103_latentWeightsAligned[indexAligned + k] = latentWeights[index + k]; 105_latentWeightsAligned[indexAligned + k] = 0; 170_latentWeightsAligned[vBiasAligned + k] = latentWeights[vBias + k]; 172_latentWeightsAligned[vBiasAligned + k] = 0;
Microsoft.ML.Tests (2)
TrainerEstimators\MatrixFactorizationTests.cs (2)
829leftFactorMatrixAligned[i] = leftFactorMatrix[i]; 834rightFactorVectorAligned[i] = model.Model.RightFactorMatrix[1 * k + i]; // value at the i-th row and j-th column is indexed by i * k + j.
Microsoft.ML.Transforms (2)
RandomFourierFeaturizing.cs (2)
188RndFourierVectors[i * rowSize + j] = _matrixGenerator.Next(_rand); 195RotationTerms[i] = (_rand.NextSingle() - (float)0.5) * (float)Math.PI;
27 references to
Microsoft.ML.CpuMath (16)
AlignedMatrix.cs (10)
78Contracts.Assert(_items[i] == 0); 105return _items[index]; 122return _items[i]; 221yield return _items[i]; 336Contracts.Assert(Items[i * RunLenPhy + j] == 0); 343Contracts.Assert(Items[i * RunLenPhy + j] == 0); 488yield return Items[ivBase + col]; 608dst[ivDst++] = Items[row + col * RowCountPhy]; 625dst[ivDst++] = Items[row + col * RowCountPhy]; 670yield return Items[row + col * RowCountPhy];
CpuMathUtils.netcoreapp.cs (6)
80dotProduct += matrix[i * source.Size + j] * source[j]; 94dotProduct += matrix[j * destination.Size + i] * source[j]; 150dotProduct += matrix[i * sourceValues.Size + col] * sourceValues[col];
Microsoft.ML.CpuMath.UnitTests (6)
UnitTests.cs (6)
255dotProduct += mat[i * src.Size + j] * src[j]; 289dotProduct += mat[j * dst.Size + i] * src[j]; 325dotProduct += mat[i * src.Size + col] * src[col];
Microsoft.ML.StandardTrainers (2)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (2)
221latentWeights[vBias + k] = _latentWeightsAligned[vBiasAligned + k]; 279latentWeights[index + k] = _latentWeightsAligned[indexAligned + k];
Microsoft.ML.Tests (1)
TrainerEstimators\MatrixFactorizationTests.cs (1)
845Assert.Equal((double)predictions[i].Score, (double)valuesAtSecondColumn[i], 0.001);
Microsoft.ML.Transforms (2)
RandomFourierFeaturizing.cs (2)
586var dotProduct = productAligned[i]; 588dstEditor.Values[i] = (float)MathUtils.Cos(dotProduct + transformInfo.RotationTerms[i]) * scale;