/// <summary> /// Construct array index /// </summary> /// <param name="arrayInfo">Array information class.</param> /// <param name="bound">If truthen.</param> public ArrayLongIndex(ArrayLongInfo arrayInfo, bool bound) { _arrayInfo = arrayInfo; _dimIndices = new long[_arrayInfo.Rank]; _flatIndex = bound && _arrayInfo.Length != 0 ? _arrayInfo.Length - 1 : 0; if (!bound) { _arrayInfo.GetMinDimIndices(_dimIndices); } else { _arrayInfo.GetMaxDimIndices(_dimIndices); } }
public void SetMin() { _carry = 0; _flatIndex = 0; _arrayInfo.GetMinDimIndices(_zeroBased, _dimIndices); }