The condition number of x is defined as the norm of x times the
norm of the inverse of x [1]_; the norm can be the usual L2-norm
(root-of-sum-of-squares) or one of a number of other matrix norms.
For positive integers n, the power is computed by repeated matrix
squarings and matrix multiplications. If n==0, the identity matrix
of the same shape as M is returned. If n<0, the inverse
is computed and then raised to the abs(n).
Note
Stacks of object matrices are not currently supported.
Parameters:
a ((..., M, M) array_like) – Matrix to be “powered”.
n (int) – The exponent can be any integer or long integer, positive,
negative, or zero.
Returns:
a**n – The return value is the same shape and type as M;
if the exponent is positive or zero then the type of the
elements is the same as those of M. If the exponent is
negative the elements are floating-point.
Compute the dot product of two or more arrays in a single function call,
while automatically selecting the fastest evaluation order.
multi_dot chains numpy.dot and uses optimal parenthesization
of the matrices [1]_[2]. Depending on the shapes of the matrices,
this can speed up the multiplication a lot.
If the first argument is 1-D it is treated as a row vector.
If the last argument is 1-D it is treated as a column vector.
The other arguments must be 2-D.
arrays (sequence of array_like) – If the first argument is 1-D it is treated as row vector.
If the last argument is 1-D it is treated as column vector.
The other arguments must be 2-D.
Output argument. This must have the exact kind that would be returned
if it was not used. In particular, it must have the right type, must be
C-contiguous, and its dtype must be the dtype that would be returned
for dot(a, b). This is a performance feature. Therefore, if these
conditions are not met, an exception is raised, instead of attempting
to be flexible.
Added in version 1.19.0.
Returns:
output – Returns the dot product of the supplied arrays.