Solved by ptrblck in post #2 
              
              
                from_blob should work: 
  float data[] = {1, 2, 3, 4, 5, 6};

  auto f = from_blob(data, {1, 2, 3});

Make sure the data is alive as long as you are using f or clone() the data.