Add sub2ind comment.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
|||||||
.idea/
|
.idea/
|
||||||
cmake-build-debug/*
|
cmake-*/*
|
||||||
cmake-build-debug-wsl/*
|
cmake-build-debug-wsl/*
|
||||||
build*/
|
build*/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|||||||
@@ -148,6 +148,13 @@ namespace Aurora
|
|||||||
|
|
||||||
Matrix dot(const Matrix &aMatrix, const Matrix &aOther, FunctionDirection direction = Column);
|
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);
|
Matrix sub2ind(const Matrix &aVMatrixSize, std::initializer_list<Matrix> aSliceIdxs);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user