Add norm and norm's unittest.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user