Add isfinite and isnan and their test.

This commit is contained in:
kradchen
2023-05-16 10:24:09 +08:00
parent b2bacd8894
commit 1a8607eece
3 changed files with 44 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
#define AURORA_FUNCTION1D_H
#include "Matrix.h"
#include <cmath>
namespace Aurora {
@@ -104,6 +105,11 @@ namespace Aurora {
*/
void nantoval(Matrix& aMatrix,double val);
Matrix isnan(Matrix& aMatrix);
Matrix isfinite(Matrix& aMatrix);
/**
* 使用特定值补齐矩阵,默认为设置原数据矩阵数据到制定长度索引的所有值为制定值
* @attention 直接在原数据上进行修改!