ensure output matrix is reset on nonconformant input

This commit is contained in:
conrad
2022-08-04 16:07:57 +10:00
parent 5400f08544
commit b9b6e302aa
+5 -1
View File
@@ -95,7 +95,11 @@ chol
out = X.get_ref();
arma_debug_check( (out.is_square() == false), "chol(): given matrix must be square sized" );
if((arma_config::debug) && (out.is_square() == false))
{
out.reset();
arma_stop_logic_error("chol(): given matrix must be square sized");
}
if(out.is_empty())
{