Add comment to Matrix::New function.
This commit is contained in:
11
src/main.cxx
11
src/main.cxx
@@ -8,6 +8,7 @@
|
||||
|
||||
|
||||
#include "Matrix.h"
|
||||
#include "Function.h"
|
||||
#include "Function1D.h"
|
||||
|
||||
#include "spdlog/spdlog.h"
|
||||
@@ -16,9 +17,9 @@
|
||||
|
||||
int main() {
|
||||
{
|
||||
double *dataA = new double[8];
|
||||
double *dataB = new double[8];
|
||||
double *dataC = new double[4];
|
||||
double *dataA = Aurora::malloc(8);
|
||||
double *dataB = Aurora::malloc(8);;
|
||||
double *dataC = Aurora::malloc(8);;
|
||||
for (int i = 0; i < 8; ++i) {
|
||||
dataA[i] = (double) (i - 3);
|
||||
dataB[i] = (double) (i + 2);
|
||||
@@ -63,8 +64,8 @@ int main() {
|
||||
printf("New A:\r\n");
|
||||
A.printf();
|
||||
}{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user