55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#ifndef AURORA_FUNCTION1D_H
|
|
#define AURORA_FUNCTION1D_H
|
|
|
|
#include "Matrix.h"
|
|
|
|
namespace Aurora {
|
|
|
|
enum InterpnMethod
|
|
{
|
|
Spline=0,Linear
|
|
};
|
|
|
|
Matrix complex(const Matrix& matrix);
|
|
|
|
Matrix real(const Matrix& matrix);
|
|
|
|
Matrix imag(const Matrix& matrix);
|
|
|
|
Matrix ceil(const Matrix& matrix);
|
|
|
|
Matrix ceil(const Matrix&& matrix);
|
|
|
|
Matrix round(const Matrix& matrix);
|
|
|
|
Matrix round(const Matrix&& matrix);
|
|
|
|
/**
|
|
* 开根号,暂时只支持正整数
|
|
* @param matrix
|
|
* @return
|
|
*/
|
|
Matrix sqrt(const Matrix& matrix);
|
|
|
|
Matrix sqrt(const Matrix&& matrix);
|
|
|
|
Matrix abs(const Matrix& matrix);
|
|
|
|
Matrix abs(const Matrix&& matrix);
|
|
|
|
Matrix sign(const Matrix& matrix);
|
|
|
|
Matrix sign(const Matrix&& matrix);
|
|
|
|
Matrix interp1(const Matrix& aX, const Matrix& aV, const Matrix& aX1, InterpnMethod aMethod);
|
|
|
|
Matrix repmat(const Matrix& aMatrix,int aRowTimes, int aColumnTimes);
|
|
|
|
Matrix repmat(const Matrix& aMatrix,int aRowTimes, int aColumnTimes, int aSliceTimes);
|
|
|
|
Matrix log(const Matrix& aMatrix, int aBaseNum = -1);
|
|
};
|
|
|
|
|
|
#endif //AURORA_FUNCTION1D_H
|