1

Closed

Matrix-Cell issue

description

Hello,

there is an issue in Vector.cs.
    /// <summary>
    /// Gets or sets the <see cref="IExpression"/> with the specified index.
    /// </summary>
    /// <value>
    /// The <see cref="IExpression"/>.
    /// </value>
    /// <param name="row">The row.</param>
    /// <param name="col">The column.</param>
    /// <returns>The element of matrix.</returns>
    public IExpression this[int row, int col]
    {
        get
        {
            return this[row][col];
        }
        set
        {
            this[row][col] = value;
        }
    }
// this-Accessor calls itself,
Closed Mar 8, 2014 at 9:24 AM by sys_27

comments

RonnyCSHARP wrote Mar 7, 2014 at 7:07 PM

There is another issue,

the other accessor this [int index] isn't compatible with the other, I've posted above,
the Accessor this[row,col] can't be accessed.

Regards

RonnyCSHARP wrote Mar 7, 2014 at 7:34 PM

sorry, my issue. I've chosen matrix[row][column] to select a cell, but I've to write matrix[row,column],
there is a high confusion. Maybe you could change the accessors.

Regards

sys_27 wrote Mar 8, 2014 at 9:23 AM

You can use matrix[row][column] and matrix[row, column]. They work the same.