EleFits  4.0.1
A modern C++ API on top of CFitsIO

◆ VecRaster()

template<typename T , long n = 2>
Euclid::Fits::VecRaster< T, n >::VecRaster ( Position< n >  shape,
std::vector< std::decay_t< T >>  vec 
)

Create a raster with given shape and values.

To transfer ownership of the data instead of copying it, use move semantics:

std::move
T move(T... args)
Euclid::Fits::Raster< T, 2 >::shape
const Position< n > & shape() const
Get the raster shape.
Euclid::Fits::Raster< T, 2 >::data
const T * data() const
Const pointer to the first data element.
Euclid::Fits::VecRaster::VecRaster
VecRaster()=default
Create an empty VecRaster.