You can apply homogenous() on each column like this:
Matrix4f mat = ...; // your affine transformation stored as a 4x4 matrix
float *data = ...; // your raw buffer storing 3D point as [XYZXYZXYZ...]
mat * Map<Matrix<float, 3, Dynamic> >(data,3,N).colwise().homogeneous()