missing 1D array f4vector init

pull/1/head
Thorsten Liebig 2011-11-07 11:46:22 +01:00
parent 5370df360c
commit 0a19e9942d
1 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,13 @@ f4vector* Create1DArray_v4sf(const unsigned int numLines)
cerr << "cannot allocate aligned memory" << endl;
exit(3);
}
for (unsigned int pos=0; pos<numLines; ++pos)
{
array[pos].f[0] = 0;
array[pos].f[1] = 0;
array[pos].f[2] = 0;
array[pos].f[3] = 0;
}
return array;
}
@ -116,6 +123,7 @@ f4vector*** Create3DArray_v4sf(const unsigned int* numLines)
}
return array;
}
f4vector**** Create_N_3DArray_v4sf(const unsigned int* numLines)
{
f4vector**** array=NULL;