mirror of
https://github.com/boostorg/python.git
synced 2026-01-27 07:02:15 +00:00
boost.python.numpy - added ndarray::reshape
This commit is contained in:
@@ -115,6 +115,9 @@ public:
|
||||
/// @brief Eliminate any unit-sized dimensions.
|
||||
ndarray squeeze() const;
|
||||
|
||||
/// @brief Equivalent to self.reshape(*shape) in Python.
|
||||
ndarray reshape(tuple const & shape) const;
|
||||
|
||||
/**
|
||||
* @brief If the array contains only a single element, return it as an array scalar; otherwise return
|
||||
* the array.
|
||||
|
||||
Reference in New Issue
Block a user