Sync public subset from Flux (private)
This commit is contained in:
21
include/numerics/min.h
Normal file
21
include/numerics/min.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "./utils/vector.h"
|
||||
#include "./utils/matrix.h"
|
||||
|
||||
|
||||
namespace numerics{
|
||||
|
||||
template <typename T>
|
||||
T min(const T a, const T b){
|
||||
|
||||
if(a < b){
|
||||
return a;
|
||||
}else{
|
||||
return b;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace numerics
|
||||
|
||||
Reference in New Issue
Block a user