#include#include #include using namespace std; int main() { vector vals = { 1.0, 2.0, 3.0 }; FloatArray arr = FloatArray::assemble(vals); cout << arr << endl; return 0; }
#includeIn this example, we create two float arrays and then use the `FloatArray::assemble` function to create a new FloatArray by concatenating these two arrays. We then output the contents of the resulting FloatArray to the console.#include using namespace std; int main() { float vals1[] = { 1.0, 2.0, 3.0 }; float vals2[] = { 4.0, 5.0, 6.0 }; FloatArray arr = FloatArray::assemble({ vals1, 3 }, { vals2, 3 }); cout << arr << endl; return 0; }