Add new max function
This commit is contained in:
@@ -359,6 +359,12 @@ Matrix Aurora::max(const Matrix &aMatrix, const Matrix &aOther) {
|
||||
}
|
||||
}
|
||||
|
||||
Matrix Aurora::max(const Matrix &aMatrix, const double aValue){
|
||||
double *output = malloc(1);
|
||||
output[0] = aValue;
|
||||
return max(aMatrix,Matrix::New(output, 1,1,1));
|
||||
}
|
||||
|
||||
Matrix Aurora::sum(const Matrix &aMatrix, FunctionDirection direction) {
|
||||
if (aMatrix.getDimSize(2)>1 ) {
|
||||
std::cerr<< "sum() not support 3D data!"
|
||||
|
||||
Reference in New Issue
Block a user