This module provides various reductions from matrices and vectors to scalars and from matrices to to vectors.
Return sum of the vector x.
Parameters: | x (dtype[:]) – vector to sum up |
---|---|
Raises : | ValueError if argument dimensions aren’t appropriate for this operation or if arguments are otherwise invalid. |
Raises : | TypeError if you pass an argument that doesn’t support buffer interface (e.g. a plain list). Use preferrably a Cython memoryview and resort to Python array, Cython array or a NumPy array. |
Return type: | dtype |
Return sum of the matrix x.
Parameters: | x (dtype[:, :]) – matrix to sum up |
---|---|
Raises : | ValueError if argument dimensions aren’t appropriate for this operation or if arguments are otherwise invalid. |
Raises : | TypeError if you pass an argument that doesn’t support buffer interface (e.g. a plain list). Use preferrably a Cython memoryview and resort to Python array, Cython array or a NumPy array. |
Return type: | dtype |
Compute sum of the invidual rows of matrix x.
Parameters: |
|
---|---|
Raises : | ValueError if argument dimensions aren’t appropriate for this operation or if arguments are otherwise invalid. |
Raises : | TypeError if you pass an argument that doesn’t support buffer interface (e.g. a plain list). Use preferrably a Cython memoryview and resort to Python array, Cython array or a NumPy array. |
Return type: |
Compute sum of the invidual columns of matrix x.
Parameters: |
|
---|---|
Raises : | ValueError if argument dimensions aren’t appropriate for this operation or if arguments are otherwise invalid. |
Raises : | TypeError if you pass an argument that doesn’t support buffer interface (e.g. a plain list). Use preferrably a Cython memoryview and resort to Python array, Cython array or a NumPy array. |
Return type: |