Skip to content

Commit

Permalink
DOC Add note on the max number of extmath.cartesian arguments (#16406)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry <hlc5v@virginia.edu>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
  • Loading branch information
3 people committed Aug 7, 2020
1 parent 61ce18f commit eff1bdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sklearn/utils/extmath.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ def cartesian(arrays, out=None):
[3, 5, 6],
[3, 5, 7]])
Notes
-----
This function may not be used on more than 32 arrays
because the underlying numpy functions do not support it.
"""
arrays = [np.asarray(x) for x in arrays]
shape = (len(x) for x in arrays)
Expand Down

0 comments on commit eff1bdf

Please sign in to comment.