dot() and cross() for vectors, norm_matrix() (Frobenius or vector
2-norm), applyfunc() elementwise, is_symmetric(), is_square(),
is_zero_matrix(), hadamard_product(), kronecker_product(), vec()
and pinv() (Moore-Penrose pseudo inverse for full rank matrices).
Given an integer rather than a matrix, is_square() tests for a perfect
square, as sympy.ntheory.primetest.is_square does.
Usage
dot(a, b, doit = FALSE, hermitian = NULL, conjugate_convention = NULL)
cross(a, b, doit = FALSE)
norm_matrix(M)
applyfunc(M, f)
is_square(M)
is_symmetric(M)
is_zero_matrix(M)
vec(M)
pinv(M)Arguments
- a, b
Vectors as matrices, or
CoordSys3D()vectors, dyadics and theDel()operator, for which the methods ofsympy.vectorapply.- doit
For the del operator: evaluate the derivatives.
- hermitian
Conjugate one of the vectors.
- conjugate_convention
Which vector to conjugate:
"maths"or"left"the first,"physics"or"right"the second.- M
A matrix.
- f
A function applied to each entry.