internal RowView(Matrix <TRowKey, TColKey, TValue> matrix, TRowKey rowKey) { if (!matrix.ContainsRowKey(rowKey)) { throw new IndexOutOfRangeException(string.Format("{0} is not a row key in the matrix", rowKey)); } _matrix = matrix; _rowKey = rowKey; }
public bool ContainsKey(TRowKey rowKey) { return(_matrix.ContainsRowKey(rowKey) && !_matrix.IsMissing(rowKey, _colKey)); }