clifford.tools.mat2Frame

clifford.tools.mat2Frame(A: numpy.ndarray, I: Optional[clifford._multivector.MultiVector] = None, is_complex: Optional[bool] = None)Tuple[List[clifford._multivector.MultiVector], clifford._multivector.MultiVector][source]

Translates a (possibly complex) matrix into a real vector frame

The rows and columns of A are interpreted as follows

  • M, N = A.shape

  • M: dimension of space

  • N: number of vectors

If A is complex M and N are doubled.

Parameters
  • A (ndarray) – MxN matrix representing vectors

  • I (MultiVector) – if none we generate an algebra of Gn, if layout we take the vector basis from that, and if its a list we will assume its a vector basis.

Returns

  • a (list of clifford.MultiVector) – The resulting vectors

  • I (clifford.MultiVector) – The blade holding the vectors in a.