Add index to min and max.
This commit is contained in:
@@ -26,6 +26,8 @@ namespace Aurora {
|
||||
*/
|
||||
Matrix min(const Matrix& aMatrix,FunctionDirection direction = Column);
|
||||
|
||||
Matrix min(const Matrix& aMatrix,FunctionDirection direction, long& rowIdx, long& colIdx);
|
||||
|
||||
/**
|
||||
* 求矩阵最小值,可按行、列、单元, 目前不支持三维,不支持复数
|
||||
* @param aMatrix 矩阵
|
||||
@@ -34,6 +36,8 @@ namespace Aurora {
|
||||
*/
|
||||
Matrix max(const Matrix& aMatrix,FunctionDirection direction = Column);
|
||||
|
||||
Matrix max(const Matrix& aMatrix,FunctionDirection direction , long& rowIdx, long& colIdx);
|
||||
|
||||
/**
|
||||
* 比较两个矩阵,求对应位置的最小值,不支持三维
|
||||
* @attention 矩阵形状不一样时,如A为[MxN],则B应为标量或[1xN]的行向量
|
||||
|
||||
Reference in New Issue
Block a user