code: public static DMatrixRMaj[] columnsToVector(DMatrixRMaj A, DMatrixRMaj[] v)
      {
          DMatrixRMaj[]ret;
          if( v == null || v.length < A.numCols ) {
              ret = new DMatrixRMaj[ A.numCols ];
          } else {
              ret = v;
          }
  
          for( int i = 0; i < ret.length; i++ ) {
              if( ret[i] == null ) {
                  ret[i] = new DMatrixRMaj(A.numRows,1);
              } else {
                  ret[i].reshape(A.numRows,1, false);
              }
  
              DMatrixRMaj u = ret[i];
  
              for( int j = 0; j < A.numRows; j++ ) {
                  u.set(j,0, A.get(j,i));
              }
          }
  
          return ret;
      }
docs: Converts the columns in a matrix into a set of vectors.
  
  @param A Matrix.  Not modified.
  @param v
  @return An array of vectors.