Add Matrix & Matrix max function and its test.

This commit is contained in:
kradchen
2023-05-15 16:23:06 +08:00
parent 9c09e349d3
commit 0148966137
3 changed files with 68 additions and 0 deletions

View File

@@ -51,6 +51,15 @@ namespace Aurora
*/
Matrix min(const Matrix &aMatrix, const Matrix &aOther);
/**
* 比较两个矩阵,求对应位置的最大值,不支持三维
* @attention 矩阵形状不一样时如A为[MxN],则B应为标量或[1xN]的行向量
* @param aMatrix 目标矩阵1
* @param aOther 目标矩阵2
* @return 最大值矩阵
*/
Matrix max(const Matrix &aMatrix, const Matrix &aOther);
/**
* 求矩阵和,可按行、列、单元, 目前不支持三维
* @param aMatrix 目标矩阵