Add block function to Matrix.

This commit is contained in:
kradchen
2023-05-17 10:39:19 +08:00
parent f9e7df3f1c
commit 7babd216de
3 changed files with 86 additions and 1 deletions

View File

@@ -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);
/**
* 矩阵乘法