ARTS
2.3.1285(git:92a29ea9-dirty)
|
This can be used to make arrays out of anything. More...
#include <array.h>
Public Member Functions | |
Array () | |
Array (Index n) | |
Array (Index n, const base &fillvalue) | |
Constructor filling with constant value. More... | |
Array (const Array< base > &A) | |
Array (Array< base > &&A) noexcept | |
Array (std::initializer_list< base > init) | |
template<size_t N> | |
Array (const std::array< base, N > &input) | |
Array & | operator= (base x) |
Assignment from base type (fill entire Array with this value). More... | |
Array & | operator= (const Array< base > &A) |
Assignment from another Array. More... | |
Array & | operator= (Array< base > &&A) noexcept |
Index | nelem () const |
Number of elements. More... | |
const base & | operator[] (const Index n) const |
Constant index operator. More... | |
base & | operator[] (const Index n) |
Non-constant index operator. More... | |
void | push_back_n (const base &elem, const Index n) |
Append element n times. More... | |
virtual | ~Array ()=default |
This can be used to make arrays out of anything.
A simple #define does not do for this, since I have to implement member functions like nelem, in order to be consistent with Vector.
Because constructors are not inherited, I have to re-define all constructors.
Definition at line 111 of file array.h.
Referenced by Array< QuantumFieldDescription >::Array().
Referenced by Array< QuantumFieldDescription >::Array().
Number of elements.
Definition at line 195 of file array.h.
Referenced by _cr_internal_(), abs_cia_dataReadFromCIA(), abs_cia_dataReadFromXML(), abs_coefCalcFromXsec(), abs_hitran_relmat_dataReadHitranRelmatDataAndLines(), abs_lines_per_speciesChangeBaseParameterForMatchingLevels(), abs_lines_per_speciesChangeBaseParameterForSpecies(), abs_lines_per_speciesChangeLineShapeModelParameterForSpecies(), abs_lines_per_speciesCreateFromLines(), abs_lines_per_speciesSetBaseParameterForMatchingLevels(), abs_lines_per_speciesSetBaseParameterForSpecies(), abs_lines_per_speciesSetCutoffForSpecies(), abs_lines_per_speciesSetEmpty(), abs_lines_per_speciesSetLinemixingLimitForSpecies(), abs_lines_per_speciesSetLineShapeModelParameterForSpecies(), abs_lines_per_speciesSetLineShapeTypeForSpecies(), abs_lines_per_speciesSetMirroringForSpecies(), abs_lines_per_speciesSetNormalizationForSpecies(), abs_lines_per_speciesSetPopulationForSpecies(), abs_lines_per_speciesSetT0ForSpecies(), abs_linesChangeBaseParameterForMatchingLevels(), abs_linesCleanupEmpty(), abs_linesRemoveBand(), abs_linesReplaceParameterWithLinesParameter(), abs_linesSetBaseParameterForMatchingLevels(), abs_linesTruncateGlobalQuantumNumbers(), abs_linesWriteSpeciesSplitXML(), abs_lookupCalc(), abs_lookupSetup(), abs_lookupSetupBatch(), abs_lookupTestAccMC(), abs_lookupTestAccuracy(), abs_speciesAdd(), abs_speciesAdd2(), abs_speciesSet(), abs_xsec_agenda_checkedCalc(), abs_xsec_per_speciesAddCIA(), abs_xsec_per_speciesAddConts(), abs_xsec_per_speciesAddHitranXsec(), abs_xsec_per_speciesAddLines(), abs_xsec_per_speciesAddPredefinedO2MPM2020(), abs_xsec_per_speciesInit(), GasAbsLookup::Adapt(), adapt_stepwise_partial_derivatives(), ArtsXMLTag::add_attribute(), Workspace::add_wsv(), SourceText::AdvanceChar(), SourceText::AdvanceLine(), AgendaAppend(), AgRecord::AgRecord(), antenna1d_matrix(), antenna2d_interp_response(), Append(), CIARecord::AppendDataset(), SourceText::AppendFile(), apply_iy_unit(), apply_iy_unit2(), Linefunctions::apply_linemixing_scaling_and_mirroring(), Linefunctions::apply_lineshapemodel_jacobian_scaling(), Linefunctions::apply_linestrength_from_nlte_level_distributions(), Linefunctions::apply_rosenkranz_quadratic_scaling(), Linefunctions::apply_VVH_scaling(), Linefunctions::apply_VVW_scaling(), Array< QuantumFieldDescription >::Array(), array_species_tag_from_string(), ArrayOfAgendaAppend(), ArrayOfAgendaExecute(), ArrayOfGriddedFieldGetNames(), ArrayOfIndexExtractFromArrayOfArrayOfIndex(), ArrayOfIndexLinSpace(), ArrayOfQuantumIdentifierSet(), ArrayOfStringSet(), atm_fields_compactAddConstant(), atm_fields_compactExpand(), atm_fields_compactFromMatrix(), atmfields_checkedCalc(), AtmFieldsCalc(), AtmFieldsCalcExpand1D(), AtmRawRead(), AtmWithNLTERawRead(), linalg::avg(), batch_atm_fields_compactAddConstant(), batch_atm_fields_compactAddSpecies(), batch_atm_fields_compactCleanup(), batch_atm_fields_compactFromArrayOfMatrix(), calcBaselineFit(), PressureBroadeningData::ChangeForeign(), PressureBroadeningData::ChangeForeignExponent(), PressureBroadeningData::ChangeForeignExponentRelative(), PressureBroadeningData::ChangeForeignRelative(), PressureBroadeningData::ChangeForeignShift(), PressureBroadeningData::ChangeForeignShiftRelative(), PressureBroadeningData::ChangeSelf(), PressureBroadeningData::ChangeSelfExponent(), PressureBroadeningData::ChangeSelfExponentRelative(), PressureBroadeningData::ChangeSelfRelative(), Agenda::check(), check_abs_species(), check_and_add_block(), check_disort_input(), check_retrieval_grids(), checkIsotopologueRatios(), checkPartitionFunctions(), chk_contains(), chk_pnd_field_raw_only_in_cloudbox(), chk_pnd_raw_data(), chk_scattering_data(), choose_abs_nls(), choose_abs_nls_pert(), choose_abs_t_pert(), cia_get_index(), CIAInfo(), cloud_atm_vars_by_gp(), cloud_fieldsCalc(), cloud_RT_no_background(), cloudbox_checkedCalc(), cloudbox_field_monoSetConst(), cloudbox_fieldUpdate1D(), cloudbox_fieldUpdateSeq1D(), cloudbox_fieldUpdateSeq3D(), cloudboxOff(), cloudboxSetAutomatically(), collision_coefficientsFromSplitFiles(), Compare(), compute_transmission_matrix_and_derivative(), TelsemAtlas::contains(), linalg::cov(), covmat_sxAddBlock(), covmat_sxAddInverseBlock(), cumulative_backscatter_derivative(), cumulative_transmission(), CIARecord::Dataset(), CIARecord::DatasetCount(), define_md_map(), define_wsv_group_map(), Workspace::define_wsv_map(), diy_from_path_to_rgrids(), diy_from_pos_to_rgrids(), doit_scat_fieldCalc(), doit_scat_fieldCalcLimb(), DoitInit(), DoitScatteringDataPrepare(), DoitWriteIterationFields(), dsurface_check(), equivalent_propmattype_indexes(), Agenda::execute(), expand_md_data_raw_to_md_data(), GasAbsLookup::Extract(), XsecRecord::Extract(), Extract(), CIARecord::Extract(), ExtractFromMetaSingleScatSpecies(), f_gridFromabs_lines_per_speciesSetFromSpeciesTag(), f_gridFromabs_linesSet(), f_gridFromSensorAMSU(), f_gridFromSensorAMSUgeneric(), f_gridFromSensorHIRS(), f_gridMetMM(), field_of_propagation(), FieldFromGriddedField(), SourceText::File(), find_all(), find_effective_channel_boundaries(), find_file(), find_first(), find_first_species_tg(), find_new_grid_in_old_grid(), find_next_species_tg(), find_nonlinear_continua(), find_xml_file(), find_xml_file_existence(), Flatten(), FlattenedIndex(), CIARecord::FrequencyGrid(), LineMixingData::Get1stOrder(), LineMixingData::Get1stOrder_dExponent(), LineMixingData::Get1stOrder_dT(), LineMixingData::Get1stOrder_dZerothOrder(), LineMixingData::Get2ndOrder(), LineMixingData::Get2ndOrder_dExponent(), LineMixingData::Get2ndOrder_dFirstOrder(), LineMixingData::Get2ndOrder_dT(), LineMixingData::Get2ndOrder_dZerothOrder(), get_angs(), get_array_groups_as_string(), get_dirname(), get_gp_atmgrids_to_rq(), get_gp_atmsurf_to_rq(), get_gp_rq_to_atmgrids(), GriddedField::get_grid_size(), get_iy_of_background(), get_pointers_for_analytical_jacobians(), get_ppath_cloudvars(), get_species_name(), get_stepwise_clearsky_propmat(), get_stepwise_effective_source(), get_stepwise_scattersky_source(), get_stepwise_transmission_matrix(), get_tag_group_index_for_tag_group(), get_tag_group_name(), EnergyLevelMap::get_vibtemp_params(), PartitionFunctionData::GetCoeff(), LineMixingData::GetLBLRTM(), LineMixingData::GetLBLRTM_dT(), LineMixingData::GetLBLRTM_O2NonResonant(), SourceText::GetSourceLine(), gp4length1grid(), GriddedFieldLatLonExpand(), GriddedFieldLatLonRegrid(), GriddedFieldPRegrid(), gridpos_upperend_check(), hitran_xsec_get_index(), IndexSetToLast(), SourceText::Init(), Workspace::initialize(), insert_elements(), interp(), interp_atmfield_by_itw(), interp_atmfield_gp2itw(), interp_atmsurface_by_itw(), interp_atmsurface_gp2itw(), interp_cloud_coeff1D(), EnergyLevelMap::InterpToGridPos(), interpweights(), is_anyptype_nonTotRan(), is_increasing(), Agenda::is_input(), is_inside_cloudbox(), Agenda::is_output(), is_size(), is_unique(), is_valid_keyword_group(), is_zeeman(), SpeciesTag::IsIsotopologue(), IsotopologueRecord::IsotopologueRecord(), iy_surface_agenda_arrayExecute(), iy_transmitterMultiplePol(), iy_transmitterSinglePol(), iyActiveSingleScat(), iyActiveSingleScat2(), iyb_calc(), iyEmissionStandard(), iyEmissionStandardSequential(), iyHybrid(), iyHybrid2(), iyInterpCloudboxField(), iyLoopFrequencies(), iyMC(), iyReplaceFromAux(), iySurfaceCallAgendaX(), iySurfaceFastem(), iySurfaceRtpropCalc(), iyTransmissionStandard(), jac_ranges_indices(), jacobian_type_extrapol(), jacobianAddAbsSpecies(), jacobianAddBasicCatalogParameter(), jacobianAddBasicCatalogParameters(), jacobianAddFreqShift(), jacobianAddFreqStretch(), jacobianAddMagField(), jacobianAddNLTE(), jacobianAddPointingZa(), jacobianAddPolyfit(), jacobianAddScatSpecies(), jacobianAddShapeCatalogParameters(), jacobianAddSinefit(), jacobianAddSpecialSpecies(), jacobianAddSurfaceQuantity(), jacobianAddTemperature(), jacobianAddWind(), jacobianAdjustAndTransform(), jacobianCalcFreqShift(), jacobianCalcFreqStretch(), jacobianCalcPointingZaInterp(), jacobianCalcPointingZaRecalc(), jacobianCalcPolyfit(), jacobianCalcSinefit(), jacobianFromYbatch(), jacobianSetAffineTransformation(), last(), lbl_checkedCalc(), line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D(), main(), MCGeneral(), MdRecord::MdRecord(), linalg::median(), met_mm_polarisation_hmatrix(), SpeciesTag::Name(), nca_def_ArrayOfIndex(), nca_get_data_ArrayOfArrayOfSpeciesTag(), nca_put_var_ArrayOfIndex(), nca_read_from_file(), nca_write_to_file(), Agenda::nelem(), Workspace::nelem(), LineShape::Model::nelem(), nelemGet(), nlte_collision_factorsCalcFromCoeffs(), nlte_fieldForSingleSpeciesNonOverlappingLines(), nlte_fieldSetLteExternalPartitionFunction(), nlte_fieldSetLteInternalPartitionFunction(), nlte_positions_in_statistical_equilibrium_matrix(), nlte_sourceFromTemperatureAndSrcCoefPerSpecies(), nlteSetByQuantumIdentifiers(), PressureBroadeningData::Nself(), Absorption::Lines::NumBroadeners(), OEM_checks(), EnergyLevelMap::OK(), Absorption::Lines::OK(), open_input_file(), operator<<(), MRecord::operator=(), ComplexVectorView::operator=(), ComplexVector::operator=(), VectorView::operator=(), Vector::operator=(), operator>>(), Array< QuantumFieldDescription >::operator[](), opt_prop_Bulk(), opt_prop_bulkCalc(), opt_prop_NScatElems(), opt_prop_ScatSpecBulk(), opt_prop_sptFromData(), opt_prop_sptFromMonoData(), opt_prop_sptFromScat_data(), opt_prop_sum_propmat_clearsky(), OptimizeDoitPressureGrid(), option_input(), option_methods(), option_workspacevariables(), p_gridRefine(), parse_a5_hitran(), ArtsParser::parse_agenda(), parse_f51_hitran(), ArtsParser::parse_generic_input(), ArtsParser::parse_generic_output(), ArtsParser::parse_intvector_from_string(), ArtsParser::parse_method_args(), ArtsParser::parse_numvector(), ArtsParser::parse_numvector_from_string(), ArtsParser::parse_stringarray_from_string(), partial_derivatives_lineshape_dependency(), particle_bulkprop_fieldClip(), particle_massesFromMetaData(), particle_massesFromMetaDataSingleCategory(), pha_mat_Bulk(), pha_mat_NScatElems(), pha_mat_ScatSpecBulk(), pha_mat_sptFromData(), pha_mat_sptFromDataDOITOpt(), pha_mat_sptFromMonoData(), pha_mat_sptFromScat_data(), pha_matExtractManually(), pnd_agenda_arrayExecute(), pnd_fieldCalcFromParticleBulkProps(), pnd_fieldCalcFrompnd_field_raw(), pnd_fieldZero(), pndFromPsd(), ppath_calc(), ppath_end_1d(), ppath_end_2d(), ppath_step_refr_1d(), ppath_step_refr_2d(), ppath_step_refr_3d(), ppathPlaneParallel(), Agenda::print(), Print(), MRecord::print(), MdRecord::PrintTemplate(), propmat_clearsky_agenda_checkedCalc(), propmat_clearsky_fieldCalc(), propmat_clearskyAddFaraday(), propmat_clearskyAddFromAbsCoefPerSpecies(), propmat_clearskyAddFromLookup(), propmat_clearskyAddHitranLineMixingLines(), propmat_clearskyAddOnTheFly(), propmat_clearskyAddParticles(), propmat_clearskyAddZeeman(), propmat_clearskyInit(), psd_mono_common(), psdMilbrandtYau05(), psdSeifertBeheng06(), SourceText::reachedEot(), LineRecord::ReadFromArtscat3Stream(), Absorption::ReadFromArtscat3Stream(), LineRecord::ReadFromArtscat4Stream(), Absorption::ReadFromArtscat4Stream(), LineRecord::ReadFromArtscat5Stream(), Absorption::ReadFromArtscat5Stream(), LineRecord::ReadFromHitran2001Stream(), Absorption::ReadFromHitran2001Stream(), LineRecord::ReadFromHitran2004Stream(), Absorption::ReadFromHitran2004Stream(), Absorption::ReadFromHitranOnlineStream(), LineRecord::ReadFromJplStream(), Absorption::ReadFromJplStream(), LineRecord::ReadFromLBLRTMStream(), Absorption::ReadFromLBLRTMStream(), LineRecord::ReadFromMytran2Stream(), Absorption::ReadFromMytran2Stream(), SpeciesAuxData::ReadFromStream(), Reduce(), refr_index_airMicrowavesEarth(), regrid_atmfield_by_gp(), regrid_atmfield_by_gp_oem(), regrid_atmsurf_by_gp(), regrid_atmsurf_by_gp_oem(), InteractiveWorkspace::resize(), retrievalAddAbsSpecies(), retrievalAddCatalogParameters(), retrievalAddFreqShift(), retrievalAddFreqStretch(), retrievalAddMagField(), retrievalAddPointingZa(), retrievalAddScatSpecies(), retrievalAddSpecialSpecies(), retrievalAddSurfaceQuantity(), retrievalAddTemperature(), retrievalAddWind(), rtmethods_jacobian_finalisation(), run_cdisort(), LineShape::Model::same_broadening_species(), scat_data_checkedCalc(), scat_data_monoExtract(), scat_dataCalc(), scat_dataCheck(), scat_dataReduceT(), ScatElementsPndAndScatAdd(), ScatElementsSelect(), ScatElementsToabs_speciesAdd(), ScatSpeciesExtendTemperature(), ScatSpeciesMerge(), ScatSpeciesPndAndScatAdd(), ScatSpeciesScatAndMetaRead(), ScatSpeciesSizeMassInfo(), Select(), Absorption::Lines::SelfVMR(), sensor_aux_vectors(), sensor_checkedCalc(), sensor_responseAntenna(), sensor_responseBackend(), sensor_responseFillFgrid(), sensor_responseFrequencySwitching(), sensor_responseGenericAMSU(), sensor_responseMetMM(), sensor_responseMixer(), sensor_responseMixerBackendPrecalcWeights(), sensor_responseMultiMixerBackend(), sensor_responsePolarisation(), sensor_responseStokesRotation(), sensor_responseWMRF(), set_backscatter_radiation_vector(), Linefunctions::set_cross_section_of_band(), Linefunctions::set_doppler(), Linefunctions::set_lorentz(), Agenda::set_outputs_to_push_and_dup(), Linefunctions::set_voigt(), PressureBroadeningData::SetForeign(), PressureBroadeningData::SetForeignExponent(), QuantumIdentifier::SetFromString(), SpeciesAuxData::setParam(), PressureBroadeningData::SetSelf(), PressureBroadeningData::SetSelfExponent(), setup_retrieval_1D(), PressureBroadeningData::Sgam(), SingleCalculatePartitionFctFromData(), SingleCalculatePartitionFctFromData_dT(), species_iso_match(), SpeciesTag::SpeciesMass(), SpeciesTag::SpeciesTag(), spectrometer_matrix(), stepwise_source(), stepwise_transmission(), stokes2pol(), MdRecord::subst_any_with_group(), MdRecord::subst_any_with_specific_group(), surface_props_check(), surface_props_interp(), surface_rtprop_agenda_arrayExecute(), surface_rtpropCallAgendaX(), SurfaceDummy(), ArtsParser::tasklist_insert_set_delete(), CIARecord::TemperatureGrid(), test12(), test_agenda_arrayExecute(), TestArrayOfAgenda(), testVector(), time_steps(), TimeSortTemplate(), transform_jacobian(), transform_x(), transform_x_back(), transmittanceFromIy_aux(), linalg::var(), VectorInsertGridPoints(), vmr_fieldClip(), vmr_fieldPerturb(), vmr_fieldPerturbAtmGrids(), vmr_fieldSetAllConstant(), vmr_fieldSetConstant(), LineShape::Model::vmrs(), LineShape::vmrs(), WMRFSelectChannels(), write_method_header(), write_method_header_documentation(), x2artsAtmAndSurf(), x2artsSensor(), xaStandard(), xClip(), xml_read_from_stream(), xml_write_to_stream(), xsec_species(), yActive(), yApplySensorPol(), ybatchMetProfiles(), ybatchMetProfilesClear(), ybatchTimeAveraging(), ybatchTroposphericCorrectionNaiveMedianForward(), ybatchTroposphericCorrectionNaiveMedianInverse(), yCalc(), yCalcAppend(), za_gridOpt(), and zeeman_on_the_fly().
Assignment from base type (fill entire Array with this value).
Definition at line 158 of file array.h.
Referenced by Array< QuantumFieldDescription >::Array().
Assignment from another Array.
This will adjust the size of the array automatically, so that structures containing arrays can be correctly copied without having an explicit assignment operator.
This is a deviation from the old ARTS paradigm that sizes must match exactly before copying!
A | The other array to copy to this one. |
Constant index operator.
We redifine this here so that we can have range checking by assert.
Definition at line 204 of file array.h.
Referenced by Array< QuantumFieldDescription >::Array().
Append element n times.
Definition at line 221 of file array.h.
Referenced by Array< QuantumFieldDescription >::Array().