Make aurora from Double to float
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Aurora {
|
||||
|
||||
Matrix exp(const Matrix& aMatrix);
|
||||
|
||||
Matrix mod(const Matrix& aMatrix, double aValue);
|
||||
Matrix mod(const Matrix& aMatrix, float aValue);
|
||||
|
||||
Matrix acos(const Matrix& aMatrix);
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Aurora {
|
||||
|
||||
Matrix conj(const Matrix& aMatrix);
|
||||
|
||||
double norm(const Matrix& aMatrix, NormMethod aNormMethod);
|
||||
float norm(const Matrix& aMatrix, NormMethod aNormMethod);
|
||||
|
||||
Matrix transpose(const Matrix& aMatrix);
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Aurora {
|
||||
|
||||
Matrix vecnorm(const Matrix& aMatrix, NormMethod aNormMethod, int aDim);
|
||||
|
||||
Matrix linspace(double aStart, double aEnd, int aNum);
|
||||
Matrix linspace(float aStart, float aEnd, int aNum);
|
||||
|
||||
Matrix auroraUnion(const Matrix& aMatrix1, const Matrix& aMatrix2);
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace Aurora {
|
||||
|
||||
Matrix deleteColumn(const Matrix& aMatrix, int aColumnIndex);
|
||||
|
||||
Matrix createVectorMatrix(double aStartValue, double aStepValue, double aEndValue);
|
||||
Matrix createVectorMatrix(float aStartValue, float aStepValue, float aEndValue);
|
||||
|
||||
Matrix uniqueByRows(const Matrix& aMatrix, Matrix& aIndexResult);
|
||||
/**
|
||||
@@ -119,7 +119,7 @@ namespace Aurora {
|
||||
* @param aMatrix 向量
|
||||
* @param val 指定值
|
||||
*/
|
||||
void nantoval(Matrix& aMatrix,double val);
|
||||
void nantoval(Matrix& aMatrix,float val);
|
||||
|
||||
|
||||
Matrix isnan(const Matrix& aMatrix);
|
||||
@@ -133,17 +133,17 @@ namespace Aurora {
|
||||
* @param aIndex 长度索引
|
||||
* @param aValue 指定值
|
||||
*/
|
||||
void padding(Matrix& aMatrix, int aIndex, double aValue);
|
||||
void padding(Matrix& aMatrix, int aIndex, float aValue);
|
||||
|
||||
Matrix auroraNot(const Matrix& aMatrix);
|
||||
Matrix auroraNot(Matrix&& aMatrix);
|
||||
enum CompareOp{
|
||||
EQ,GT,LT,NG,NL,NE
|
||||
};
|
||||
void compareSet(Matrix& aValueMatrix,double compareValue, double newValue,CompareOp op);
|
||||
void compareSet(Matrix& aValueMatrix,Matrix& aCompareMatrix,double compareValue, double newValue,CompareOp op);
|
||||
void compareSet(Matrix& aDesAndCompareMatrix,Matrix& aOtherCompareMatrix, double newValue,CompareOp op);
|
||||
void compareSet(Matrix& aCompareMatrix,double compareValue, Matrix& aNewValueMatrix,CompareOp op);
|
||||
void compareSet(Matrix& aValueMatrix,float compareValue, float newValue,CompareOp op);
|
||||
void compareSet(Matrix& aValueMatrix,Matrix& aCompareMatrix,float compareValue, float newValue,CompareOp op);
|
||||
void compareSet(Matrix& aDesAndCompareMatrix,Matrix& aOtherCompareMatrix, float newValue,CompareOp op);
|
||||
void compareSet(Matrix& aCompareMatrix,float compareValue, Matrix& aNewValueMatrix,CompareOp op);
|
||||
|
||||
Matrix convertfp16tofloat(short* aData, int aRows, int aColumns);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user