Add isfinite and isnan and their test.
This commit is contained in:
@@ -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 直接在原数据上进行修改!
|
||||
|
||||
Reference in New Issue
Block a user