Add comment to Matrix::New function.

This commit is contained in:
Krad
2023-04-20 11:53:34 +08:00
parent 286008c4ab
commit 6ec61aa4cb
3 changed files with 35 additions and 11 deletions

View File

@@ -22,8 +22,8 @@ double fourDecimalRound(double src){
}
TEST_F(FunctionTester, matrixSlice) {
double * dataA =new double[8];
double * dataB =new double[8];
double * dataA =Aurora::malloc(8);
double * dataB =Aurora::malloc(8);
for (int i = 0; i < 8; ++i) {
dataA[i]=(double)(i-3);
dataB[i]=(double)(i+2);
@@ -42,8 +42,8 @@ TEST_F(FunctionTester, matrixSlice) {
}
TEST_F(FunctionTester, sign) {
double * dataA =new double[9];
double * dataB =new double[9];
double * dataA =Aurora::malloc(9);
double * dataB =Aurora::malloc(9);
for (int i = 0; i < 9; ++i) {
dataA[i]=(double)(i-3);
dataB[i]=(double)(i+2);
@@ -59,8 +59,8 @@ TEST_F(FunctionTester, sign) {
}
TEST_F(FunctionTester, matrix) {
double * dataA =new double[9];
double * dataB =new double[9];
double * dataA =Aurora::malloc(9);
double * dataB =Aurora::malloc(9);
for (int i = 0; i < 9; ++i) {
dataA[i]=(double)(i+1);
dataB[i]=(double)(i+2);