Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MatrixMath.h
- Revision:
- 6:aa5e94cddb3f
- Parent:
- 5:93948a9bbde2
diff -r 93948a9bbde2 -r aa5e94cddb3f MatrixMath.h
--- a/MatrixMath.h Sun Oct 30 19:21:30 2011 +0000
+++ b/MatrixMath.h Thu Sep 17 17:51:22 2020 +0700
@@ -67,6 +67,22 @@
*/
static float det( const Matrix& Mat );
+ /**@brief Calculates Kronecker product of two Matrix.
+ * Kronecker product is an operation on two matrices of arbitrary
+ * size resulting in a block matrix. If A is an m × n matrix
+ * and B is a p × q matrix, then the Kronecker product A ⊗ B is
+ * the pm × qn block matrix:
+ * - -
+ * | a_11 B ... a_1n B |
+ * A ⊗ B = | ... ... ... |
+ * | a_m1 B ... a_mn B |
+ * - -
+ * @param Mat_A Matrix m × n
+ * @param Mat_B Matrix p × q
+ * @return Kron Matrix pm × qn.
+ */
+ static Matrix kron(const Matrix& Mat_A, const Matrix& Mat_B);
+
//==== For Kinematics ====//