You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Enter feedback here]
In 0.11 KeyType only takes 1 parameter - 'ulong count'
class MatrixElement
{
// Matrix column index starts from firstColumnIndex and is at most firstColumnIndex+n-1.
// Contieuous=true means that all values from firstColumnIndex to firstColumnIndex+n-1 are allowed keys.
// [KeyType(Contiguous = true, Count = n, Min = firstColumnIndex)]
// public uint MatrixColumnIndex;
// Matrix row index starts from firstRowIndex and is at most firstRowIndex+m-1.
// Contieuous=true means that all values from firstRowIndex to firstRowIndex+m-1 are allowed keys.
[KeyType(Contiguous = true, Count = m, Min = firstRowIndex)]
public uint MatrixRowIndex;
// The rating at the MatrixColumnIndex-th column and the MatrixRowIndex-th row.
public float Value;
}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 335e2f1c-de96-9963-8edc-c45bc5d31105
Version Independent ID: 571d5df2-bce7-9fdf-c123-5c932d7935ce
You're right. It should become something like this.
// The following variables defines the shape of a (m+firstRowIndex)-by-(n+firstColumnIndex) matrix.constintfirstRowIndex=1;constintfirstColumnIndex=1;constintm=60;constintn=100;// A tuple of row index, column index, and rating. It specifies a value in the rating matrix.classMatrixElement{// Matrix column index starts from 0 and is at most firstColumnIndex+n-1.[KeyType(n+firstColumnIndex)]publicuintMatrixColumnIndex;// Matrix row index starts from 0 and is at most firstRowIndex+m-1.[KeyType(m+firstRowIndex)]publicuintMatrixRowIndex;// The rating at the MatrixColumnIndex-th column and the MatrixRowIndex-th row.publicfloatValue;}
Basically, we now assume Contiguous is always true and Min is always zero.
[Enter feedback here]
In 0.11 KeyType only takes 1 parameter - 'ulong count'
class MatrixElement
{
// Matrix column index starts from firstColumnIndex and is at most firstColumnIndex+n-1.
// Contieuous=true means that all values from firstColumnIndex to firstColumnIndex+n-1 are allowed keys.
// [KeyType(Contiguous = true, Count = n, Min = firstColumnIndex)]
// public uint MatrixColumnIndex;
// Matrix row index starts from firstRowIndex and is at most firstRowIndex+m-1.
// Contieuous=true means that all values from firstRowIndex to firstRowIndex+m-1 are allowed keys.
[KeyType(Contiguous = true, Count = m, Min = firstRowIndex)]
public uint MatrixRowIndex;
// The rating at the MatrixColumnIndex-th column and the MatrixRowIndex-th row.
public float Value;
}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: