diff --git a/src/Numerics/LinearAlgebra/Double/Factorization/DenseQR.cs b/src/Numerics/LinearAlgebra/Double/Factorization/DenseQR.cs index 1e626da7..f7cfc7e4 100644 --- a/src/Numerics/LinearAlgebra/Double/Factorization/DenseQR.cs +++ b/src/Numerics/LinearAlgebra/Double/Factorization/DenseQR.cs @@ -63,6 +63,11 @@ namespace MathNet.Numerics.LinearAlgebra.Double.Factorization /// If row count is less then column count public DenseQR(DenseMatrix matrix) { + if (matrix == null) + { + throw new ArgumentNullException("matrix"); + } + if (matrix.RowCount < matrix.ColumnCount) { throw new ArgumentException(Resources.ArgumentMatrixDimensions);