public IVector this[int index] { get { return(this._body[this._indexes[index]]); } set { CollectionImpl.Setter(this, index, value); } }
/// <summary> /// 列コレクションから,指定した列の取得・設定を行う. /// </summary> /// <param name="c">列index</param> /// <returns>列ベクトル</returns> public IVector this[int c] { get { if (c < 0 || this.Count <= c) { throw new IndexOutOfRangeException(); } return(new RefVector(this._body, c * this._rsize, 1, this._rsize)); } set { CollectionImpl.Setter(this, c, value); } }
/// <summary> /// 行コレクションから,指定した行の取得・設定を行う. /// </summary> /// <param name="r">行index</param> /// <returns>行ベクトル</returns> public IVector this[int r] { get { if (r < 0 || this.Count <= r) { throw new IndexOutOfRangeException(); } return(new RefVector(this._body, r, this._rsize, this._csize)); } set { CollectionImpl.Setter(this, r, value); } }