Browse Source

Linear Algebra: Double DenseQR ctor to check for null arguments

pull/36/head
Christoph Ruegg 16 years ago
parent
commit
b722589e53
  1. 5
      src/Numerics/LinearAlgebra/Double/Factorization/DenseQR.cs

5
src/Numerics/LinearAlgebra/Double/Factorization/DenseQR.cs

@ -63,6 +63,11 @@ namespace MathNet.Numerics.LinearAlgebra.Double.Factorization
/// <exception cref="ArgumentException">If <paramref name="matrix"/> row count is less then column count</exception>
public DenseQR(DenseMatrix matrix)
{
if (matrix == null)
{
throw new ArgumentNullException("matrix");
}
if (matrix.RowCount < matrix.ColumnCount)
{
throw new ArgumentException(Resources.ArgumentMatrixDimensions);

Loading…
Cancel
Save