Add sub2ind comment.

This commit is contained in:
Krad
2023-05-11 16:21:01 +08:00
parent 55417a0efa
commit b8cd3040b4
2 changed files with 8 additions and 1 deletions

View File

@@ -148,6 +148,13 @@ namespace Aurora
Matrix dot(const Matrix &aMatrix, const Matrix &aOther, FunctionDirection direction = Column);
/**
* 转换下标为索引值
* @attention 索引值按照其实为1与matlab对应在C++中使用需要-1
* @param aVMatrixSize
* @param aSliceIdxs
* @return
*/
Matrix sub2ind(const Matrix &aVMatrixSize, std::initializer_list<Matrix> aSliceIdxs);
};