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

@@ -41,10 +41,33 @@ namespace Aurora {
explicit Matrix(const Matrix::MatrixSlice& slice);
/**
* New a mkl calculate based Matrix
* @attention Using New function, must use Aurora:malloc to get memory
* @param data
* @param rows
* @param cols
* @param slices
* @param type
* @return
*/
static Matrix New(double *data, int rows, int cols = 0, int slices = 0, ValueType type = Normal);
/**
* New a mkl calculate based Matrix
* @attention Using New function, must use Aurora:malloc to get memory
* @param data
* @param shapeMatrix
* @return
*/
static Matrix New(double *data, const Matrix &shapeMatrix);
/**
* New a mkl calculate based Matrix
* @attention Memory are allocate by Aurora:malloc function
* @param shapeMatrix
* @return
*/
static Matrix New(const Matrix &shapeMatrix);
Matrix getDataFromDims2(int aColumn);