Skip to content

Commit 44fdfd7

Browse files
committed
removed redundant if in determinant
1 parent 8386451 commit 44fdfd7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

stan/math/prim/fun/determinant.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ namespace math {
2020
template <typename T, require_eigen_vt<std::is_arithmetic, T>* = nullptr>
2121
inline value_type_t<T> determinant(const T& m) {
2222
check_square("determinant", "m", m);
23-
if (m.size() == 0) {
24-
return 1;
25-
}
26-
2723
return m.determinant();
2824
}
2925

0 commit comments

Comments
 (0)