Fix copyFromRawData and fromRawData bug

This commit is contained in:
Krad
2023-04-21 13:55:29 +08:00
parent 16b48e0a6d
commit f4acc85c1a
2 changed files with 110 additions and 23 deletions

View File

@@ -53,7 +53,7 @@ namespace Aurora {
* @param type
* @return
*/
static Matrix fromRawData(double *data, int rows, int cols = 0, int slices = 0, ValueType type = Normal);
static Matrix fromRawData(double *data, int rows, int cols = 1, int slices = 1, ValueType type = Normal);
/**
* Create from a Raw data(double array) with copy the data to a new mkl memory.
@@ -64,7 +64,7 @@ namespace Aurora {
* @param type
* @return
*/
static Matrix copyFromRawData(double *data, int rows, int cols = 0, int slices = 0, ValueType type = Normal);
static Matrix copyFromRawData(double *data, int rows, int cols = 1, int slices = 1, ValueType type = Normal);
/**
* New a mkl calculate based Matrix
@@ -76,7 +76,7 @@ namespace Aurora {
* @param type
* @return
*/
static Matrix New(double *data, int rows, int cols = 0, int slices = 0, ValueType type = Normal);
static Matrix New(double *data, int rows, int cols = 1, int slices = 1, ValueType type = Normal);
/**
* New a mkl calculate based Matrix