// DataSet_Vector::Allocate()
int DataSet_Vector::Allocate(SizeArray const& Nin) {
  if (!Nin.empty()) {
    vectors_.reserve( Nin[0] );
    origins_.reserve( Nin[0] ); // TODO: check if this needs allocation
  }
  return 0;
}
int DataSet_Coords_CRD::Allocate(SizeArray const& sizeIn) {
  if (!sizeIn.empty())
    coords_.reserve( sizeIn[0] );
  return 0;
}
Beispiel #3
0
/** Reserve space in the Data and Frames arrays. */
int DataSet_double::Allocate( SizeArray const& sizeIn ) {
  if (!sizeIn.empty())
    Data_.reserve( sizeIn[0] );
  return 0;
}