|
|
|
@ -574,25 +574,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 |
|
|
|
/// equal the number of rows of this <strong>Matrix</strong>.</exception>
|
|
|
|
public override void SetColumn(int columnIndex, Complex32[] column) |
|
|
|
{ |
|
|
|
if (columnIndex < 0 || columnIndex >= ColumnCount) |
|
|
|
{ |
|
|
|
throw new ArgumentOutOfRangeException("columnIndex"); |
|
|
|
} |
|
|
|
|
|
|
|
if (column == null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException("column"); |
|
|
|
} |
|
|
|
|
|
|
|
if (column.Length != RowCount) |
|
|
|
{ |
|
|
|
throw new ArgumentException(Resources.ArgumentMatrixSameRowDimension, "column"); |
|
|
|
} |
|
|
|
|
|
|
|
for (var i = 0; i < columnIndex; i++) |
|
|
|
{ |
|
|
|
At(i, columnIndex, column[i]); |
|
|
|
} |
|
|
|
throw new InvalidOperationException("Setting a column is not supported on a symmetric matrix. It will violate symmetry"); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -607,25 +589,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 |
|
|
|
/// equal the number of rows of this <strong>Matrix</strong>.</exception>
|
|
|
|
public override void SetColumn(int columnIndex, Vector<Complex32> column) |
|
|
|
{ |
|
|
|
if (columnIndex < 0 || columnIndex >= ColumnCount) |
|
|
|
{ |
|
|
|
throw new ArgumentOutOfRangeException("columnIndex"); |
|
|
|
} |
|
|
|
|
|
|
|
if (column == null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException("column"); |
|
|
|
} |
|
|
|
|
|
|
|
if (column.Count != RowCount) |
|
|
|
{ |
|
|
|
throw new ArgumentException(Resources.ArgumentMatrixSameRowDimension, "column"); |
|
|
|
} |
|
|
|
|
|
|
|
for (var i = 0; i < columnIndex; i++) |
|
|
|
{ |
|
|
|
At(i, columnIndex, column[i]); |
|
|
|
} |
|
|
|
throw new InvalidOperationException("Setting a column is not supported on a symmetric matrix. It will violate symmetry"); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -654,25 +618,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 |
|
|
|
/// equal the number of columns of this <strong>Matrix</strong>.</exception>
|
|
|
|
public override void SetRow(int rowIndex, Vector<Complex32> row) |
|
|
|
{ |
|
|
|
if (rowIndex < 0 || rowIndex >= RowCount) |
|
|
|
{ |
|
|
|
throw new ArgumentOutOfRangeException("rowIndex"); |
|
|
|
} |
|
|
|
|
|
|
|
if (row == null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException("row"); |
|
|
|
} |
|
|
|
|
|
|
|
if (row.Count != ColumnCount) |
|
|
|
{ |
|
|
|
throw new ArgumentException(Resources.ArgumentMatrixSameRowDimension, "row"); |
|
|
|
} |
|
|
|
|
|
|
|
for (var i = rowIndex; i < ColumnCount; i++) |
|
|
|
{ |
|
|
|
At(rowIndex, i, row[i]); |
|
|
|
} |
|
|
|
throw new InvalidOperationException("Setting a row is not supported on a symmetric matrix. It will violate symmetry"); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -687,25 +633,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 |
|
|
|
/// equal the number of columns of this <strong>Matrix</strong>.</exception>
|
|
|
|
public override void SetRow(int rowIndex, Complex32[] row) |
|
|
|
{ |
|
|
|
if (rowIndex < 0 || rowIndex >= RowCount) |
|
|
|
{ |
|
|
|
throw new ArgumentOutOfRangeException("rowIndex"); |
|
|
|
} |
|
|
|
|
|
|
|
if (row == null) |
|
|
|
{ |
|
|
|
throw new ArgumentNullException("row"); |
|
|
|
} |
|
|
|
|
|
|
|
if (row.Length != ColumnCount) |
|
|
|
{ |
|
|
|
throw new ArgumentException(Resources.ArgumentMatrixSameRowDimension, "row"); |
|
|
|
} |
|
|
|
|
|
|
|
for (var i = rowIndex; i < ColumnCount; i++) |
|
|
|
{ |
|
|
|
At(rowIndex, i, row[i]); |
|
|
|
} |
|
|
|
throw new InvalidOperationException("Setting a row is not supported on a symmetric matrix. It will violate symmetry"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|