docstr: Turn the khatri-product of matrices into a vector.
  
      (the tensor ``factors = [|U_1, ... U_n|]``
      is converted into a raveled mode-0 unfolding)
  
  Parameters
  ----------
  cp_tensor
      factors is a list of matrices, all with the same number of columns
      i.e.::
  
          for u in U:
              u[i].shape == (s_i, R)
  
      where `R` is fixed while `s_i` can vary with `i`
  
  Returns
  -------
  ivy.Array
      vectorised tensor
docstr_tok: ["Turn","the","khatri-product","of","matrices","into","a","vector",".","(","the","tensor","``","factors","=","[","|U_1",",","...","U_n|","]","``","is","converted","into","a","raveled","mode-0","unfolding",")","Parameters","--","--","--","--","--","cp_tensor","factors","is","a","list","of","matrices",",","all","with","the","same","number","of","columns","i.e",".",":",":","for","u","in","U",":","u","[","i","]",".shape","==","(","s_i",",","R",")","where","`","R","`","is","fixed","while","`","s_i","`","can","vary","with","`","i","`","Returns","--","--","--","-","ivy.Array","vectorised","tensor"]
code: def cp_to_vec(cp_tensor):
      """Turn the khatri-product of matrices into a vector.
  
          (the tensor ``factors = [|U_1, ... U_n|]``
          is converted into a raveled mode-0 unfolding)
  
      Parameters
      ----------
      cp_tensor
          factors is a list of matrices, all with the same number of columns
          i.e.::
  
              for u in U:
                  u[i].shape == (s_i, R)
  
          where `R` is fixed while `s_i` can vary with `i`
  
      Returns
      -------
      ivy.Array
          vectorised tensor
      """
      return ivy.reshape(ivy.CPTensor.cp_to_tensor(cp_tensor), (-1))
  
imports: from .base import FactorizedTensor
  import ivy
label_desc: Use image node_id 23 for calling the CPTensor obj's underlying member method code with example usage: obj.cp_to_vec(cp_tensor) and returns: ivy