Add norm and norm's unittest.

This commit is contained in:
sunwen
2023-04-25 11:24:24 +08:00
parent bbd2320c56
commit c54471ef6a
3 changed files with 74 additions and 0 deletions

View File

@@ -10,6 +10,11 @@ namespace Aurora {
Spline=0,Linear
};
enum NormMethod
{
Norm1=1,Norm2,NormF
};
Matrix complex(const Matrix& matrix);
Matrix real(const Matrix& matrix);
@@ -59,6 +64,8 @@ namespace Aurora {
Matrix conj(const Matrix& aMatrix);
double norm(const Matrix& aMatrix, NormMethod aNormMethod);
/**
* 多项式计算
* @brief 例如p[1 0 1],x[3 2 5],代表对多项式 y = x^2 + 1 求(x=3, x=2, x=5)时所有的y