Changed programming interface of newSpectrumRaw
This commit is contained in:
parent
bb20fcee05
commit
50142e3189
@ -160,7 +160,7 @@ namespace CosmoTool
|
||||
|
||||
virtual Spectrum_ptr estimateSpectrumFromMap(const FMap& m) const = 0;
|
||||
virtual Spectrum_ptr newSpectrumFromRaw(T *data, long size,
|
||||
Spectrum_ptr like_spec) const = 0;
|
||||
const Spectrum& like_spec) const = 0;
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -46,10 +46,9 @@ namespace CosmoTool
|
||||
}
|
||||
|
||||
Spectrum_ptr newSpectrumFromRaw(T *data, long size,
|
||||
Spectrum_ptr like_spec) const
|
||||
const Spectrum& like_spec) const
|
||||
{
|
||||
Spectrum *s = like_spec.get();
|
||||
HealpixSpectrum<T>& in_spec = dynamic_cast<HealpixSpectrum<T>&>(*s);
|
||||
const HealpixSpectrum<T>& in_spec = dynamic_cast<const HealpixSpectrum<T>&>(like_spec);
|
||||
HealpixSpectrum<T> *new_spectrum = new HealpixSpectrum<T>(in_spec.Lmax());
|
||||
T *out_d = new_spectrum->data();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user