Skip to content

Commit

Permalink
removed redundant if in determinant
Browse files Browse the repository at this point in the history
  • Loading branch information
t4c1 committed Mar 17, 2020
1 parent 8386451 commit 44fdfd7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions stan/math/prim/fun/determinant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ namespace math {
template <typename T, require_eigen_vt<std::is_arithmetic, T>* = nullptr>
inline value_type_t<T> determinant(const T& m) {
check_square("determinant", "m", m);
if (m.size() == 0) {
return 1;
}

return m.determinant();
}

Expand Down

0 comments on commit 44fdfd7

Please sign in to comment.