From b722589e53326d28f0f6d3473ba8b3ef6517c2a0 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Mon, 28 Feb 2011 19:15:50 +0100 Subject: [PATCH] Linear Algebra: Double DenseQR ctor to check for null arguments --- src/Numerics/LinearAlgebra/Double/Factorization/DenseQR.cs | 5 +++++ 1 file changed, 5 insertions(+) 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);