2
import numpy as np
from numpy.linalg import inv
import theano.tensor as T
from theano.compile import function
from theano.tensor.nlinalg import matrix_inverse, det
from theano import shared
from theano import config
A = shared(np.matrix('1 0 0; 1 2 0; 0 0 3', dtype=config.floatX))
print(A.get_value())
invA = matrix_inverse(A)
print(invA)
print(invA)語句輸出「MatrixInverse.0」。矩陣確實有倒數。有人可以幫我打印矩陣逆? 在此先感謝。Theano Matrix Inverse
感謝您的幫助。 – Nira