From 73f58cfca82b55e237b0b7fede44c92b333b41a7 Mon Sep 17 00:00:00 2001 From: sunwen Date: Fri, 5 May 2023 17:21:33 +0800 Subject: [PATCH] Add matrix isNan function. --- src/Matrix.cpp | 12 ++++++++++++ src/Matrix.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/Matrix.cpp b/src/Matrix.cpp index 7de7d2e..bfbfbc2 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -252,6 +252,18 @@ namespace Aurora { return !mData || mInfo.empty(); } + bool Matrix::isNan() const + { + for(size_t i=0; i