3 since the Matrix class is a template class, there are classes created
4 for both Doubles and Integers
6 The template Matrix class and mtx struct were converted to type double
7 methods instead of declaring a method for each type.
8 *NOTE* there is a respective 'INTEGER' version of each method that
9 defaulted to type double, my recommendation is to use the default
10 methods that converted to type double as data will more than likely
14 class Matrix (int) -> class MatrixI
15 an INTEGER type mtx struct is not possible given floating
16 point requirements for certain cases of cassert
18 from pygpmp
import linalg
26 A_int = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
27 B_int = [[9, 8, 7], [6, 5, 4], [3, 2, 1]]
29 res = mtx.std_mtx_add_int(A_int, B_int, C_int)