Example #1
0
        internal ColView(Matrix <TRowKey, TColKey, TValue> matrix, TColKey colKey)
        {
            if (!matrix.ContainsColKey(colKey))
            {
                throw new IndexOutOfRangeException(string.Format("{0} is not a col key in the matrix", colKey));
            }

            _matrix = matrix;
            _colKey = colKey;
        }
Example #2
0
 public bool ContainsKey(TColKey colKey)
 {
     return(_matrix.ContainsColKey(colKey) && !_matrix.IsMissing(_rowKey, colKey));
 }