]> gitweb.michael.orlitzky.com - numerical-analysis.git/blobdiff - src/Linear/QR.hs
src/Linear/QR.hs: fix monomorphism restriction warning.
[numerical-analysis.git] / src / Linear / QR.hs
index 4c1c56446f836c348b1b7e65ad138fb650dd9ed3..a4fb325f96d4b510401f79d8517b6beb48b8fc79 100644 (file)
@@ -146,6 +146,8 @@ qr matrix =
   ifoldl col_function initial_qr columns
   where
     Mat columns = transpose matrix
+
+    initial_qr :: (Mat (S m) (S m) a, Mat (S m) (S n) a)
     initial_qr = (identity_matrix, matrix)
 
     -- | Process the column and spit out the current QR