Fix unittest by change double to float.
This commit is contained in:
@@ -286,7 +286,7 @@ TEST_F(Function2D_Test, sort) {
|
||||
EXPECT_FLOAT_EQ(-38.5, ret.getData()[12]);
|
||||
//big sort 10w以上多线程快
|
||||
float * dataA = Aurora::random(1000000*4);
|
||||
auto A = Aurora::Matrix::New(dataA, 1000000, 4);
|
||||
auto A = Aurora::Matrix::fromRawData(dataA, 1000000, 4);
|
||||
ret = Aurora::sort(A);
|
||||
}
|
||||
|
||||
@@ -302,8 +302,6 @@ TEST_F(Function2D_Test, sortrows) {
|
||||
auto B = transpose(Aurora::Matrix::fromRawData(dataB, 7, 6));
|
||||
Aurora::Matrix idx ;
|
||||
auto ret = Aurora::sortrows(B,&idx);
|
||||
ret.printf();
|
||||
idx.printf();
|
||||
}
|
||||
|
||||
TEST_F(Function2D_Test, median) {
|
||||
|
||||
Reference in New Issue
Block a user