why the type of A is "Vector" but not "Matrix" after assemble(a,tensor=A)? And what is the exact meaning of 'tensor'?
I appreciate your help very much!!!
You need to post more code to get a meaningful answer. Tensor can refer to a tensor-like object of any dimension (typically a Vector or a Matrix).