Add block function to Matrix.
This commit is contained in:
10
src/Matrix.h
10
src/Matrix.h
@@ -173,7 +173,15 @@ namespace Aurora {
|
||||
double& operator[](size_t index);
|
||||
double operator[](size_t index) const;
|
||||
|
||||
|
||||
/**
|
||||
* 切块操作
|
||||
*
|
||||
* @param aDim 需要切块的维度,
|
||||
* @param aBeginIndx 起始索引,包含
|
||||
* @param aEndIndex 终止索引,包含
|
||||
* @return Matrix 返回矩阵
|
||||
*/
|
||||
Matrix block(int aDim,int aBeginIndx, int aEndIndex);
|
||||
|
||||
/**
|
||||
* 矩阵乘法
|
||||
|
||||
Reference in New Issue
Block a user