Ndarray


Namespaces

namespace  ndns

Classes

class  ndarray< ElemType, NDim >
 N-dimensional array class. More...

Functions

template<typename ElemType, unsigned NDim>
std::ostream & operator<< (std::ostream &str, const ndarray< ElemType, NDim > &array)
 Methods for formatting ndarray objects.
template<typename ElemType>
ndarray< ElemType, 1 > make_ndarray (ElemType *data, unsigned dim0)
template<typename ElemType>
ndarray< ElemType, 2 > make_ndarray (ElemType *data, unsigned dim0, unsigned dim1)
template<typename ElemType>
ndarray< ElemType, 3 > make_ndarray (ElemType *data, unsigned dim0, unsigned dim1, unsigned dim2)
template<typename ElemType>
ndarray< ElemType, 4 > make_ndarray (ElemType *data, unsigned dim0, unsigned dim1, unsigned dim2, unsigned dim3)
template<typename ElemType>
ndarray< ElemType, 1 > make_ndarray (unsigned dim0)
template<typename ElemType>
ndarray< ElemType, 2 > make_ndarray (unsigned dim0, unsigned dim1)
template<typename ElemType>
ndarray< ElemType, 3 > make_ndarray (unsigned dim0, unsigned dim1, unsigned dim2)
template<typename ElemType>
ndarray< ElemType, 4 > make_ndarray (unsigned dim0, unsigned dim1, unsigned dim2, unsigned dim3)
template<typename ElemType>
ndarray< ElemType, 1 > make_ndarray (const boost::shared_ptr< ElemType > &data, unsigned dim0)
template<typename ElemType>
ndarray< ElemType, 2 > make_ndarray (const boost::shared_ptr< ElemType > &data, unsigned dim0, unsigned dim1)
template<typename ElemType>
ndarray< ElemType, 3 > make_ndarray (const boost::shared_ptr< ElemType > &data, unsigned dim0, unsigned dim1, unsigned dim2)
template<typename ElemType>
ndarray< ElemType, 4 > make_ndarray (const boost::shared_ptr< ElemType > &data, unsigned dim0, unsigned dim1, unsigned dim2, unsigned dim3)

Function Documentation

template<typename ElemType>
ndarray<ElemType, 4> make_ndarray ( const boost::shared_ptr< ElemType > &  data,
unsigned  dim0,
unsigned  dim1,
unsigned  dim2,
unsigned  dim3 
) [inline]

Helper method to create an instance of 4-dimensional array from shared pointer. Shaed pointer defines memory management policy in this case.

Definition at line 631 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 3> make_ndarray ( const boost::shared_ptr< ElemType > &  data,
unsigned  dim0,
unsigned  dim1,
unsigned  dim2 
) [inline]

Helper method to create an instance of 3-dimensional array from shared pointer. Shaed pointer defines memory management policy in this case.

Definition at line 619 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 2> make_ndarray ( const boost::shared_ptr< ElemType > &  data,
unsigned  dim0,
unsigned  dim1 
) [inline]

Helper method to create an instance of 2-dimensional array from shared pointer. Shaed pointer defines memory management policy in this case.

Definition at line 607 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 1> make_ndarray ( const boost::shared_ptr< ElemType > &  data,
unsigned  dim0 
) [inline]

Helper method to create an instance of 1-dimensional array from shared pointer. Shaed pointer defines memory management policy in this case.

Definition at line 595 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 4> make_ndarray ( unsigned  dim0,
unsigned  dim1,
unsigned  dim2,
unsigned  dim3 
) [inline]

Helper method to create an instance of 4-dimensional array. Memory for data is allocated internally in this case.

Definition at line 583 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 3> make_ndarray ( unsigned  dim0,
unsigned  dim1,
unsigned  dim2 
) [inline]

Helper method to create an instance of 3-dimensional array. Memory for data is allocated internally in this case.

Definition at line 571 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 2> make_ndarray ( unsigned  dim0,
unsigned  dim1 
) [inline]

Helper method to create an instance of 2-dimensional array. Memory for data is allocated internally in this case.

Definition at line 559 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 1> make_ndarray ( unsigned  dim0  )  [inline]

Helper method to create an instance of 1-dimensional array. Memory for data is allocated internally in this case.

Definition at line 547 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 4> make_ndarray ( ElemType *  data,
unsigned  dim0,
unsigned  dim1,
unsigned  dim2,
unsigned  dim3 
) [inline]

Helper method to create an instance of 4-dimensional array from raw data pointer. Note there may be potential problems with memory management with raw pointers.

Definition at line 535 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 3> make_ndarray ( ElemType *  data,
unsigned  dim0,
unsigned  dim1,
unsigned  dim2 
) [inline]

Helper method to create an instance of 3-dimensional array from raw data pointer. Note there may be potential problems with memory management with raw pointers.

Definition at line 523 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 2> make_ndarray ( ElemType *  data,
unsigned  dim0,
unsigned  dim1 
) [inline]

Helper method to create an instance of 2-dimensional array from raw data pointer. Note there may be potential problems with memory management with raw pointers.

Definition at line 511 of file ndarray.h.

References ex_algos::shape.

template<typename ElemType>
ndarray<ElemType, 1> make_ndarray ( ElemType *  data,
unsigned  dim0 
) [inline]

Helper method to create an instance of 1-dimensional array from raw data pointer. Note there may be potential problems with memory management with raw pointers.

Definition at line 499 of file ndarray.h.

References ex_algos::shape.

Referenced by psddl_hdf2psana::UsdUsb::DataV1_v1::analog_in(), psddl_hdf2psana::UsdUsb::DataV1_v0::analog_in(), Psana::Lusi::DiodeFexConfigV2::base(), Psana::Lusi::DiodeFexConfigV1::base(), psddl_hdf2psana::Ipimb::ConfigV2_v0::capacitorValues(), psddl_hdf2psana::Ipimb::ConfigV1_v0::capacitorValues(), Psana::Lusi::IpmFexV1::channel(), Psana::Imp::Sample::channels(), PSCalib::GenericCalibPars< TBASE >::common_mode(), pdscalibdata::PnccdCommonModeV1::common_mode(), pdscalibdata::CsPadCommonModeV2::common_mode(), pdscalibdata::CsPad2x2CommonModeV2::common_mode(), Detector::DetectorAccess::common_mode(), psddl_hdf2psana::UsdUsb::ConfigV1_v0::counting_mode(), psddl_pds2psana::TimepixDataV1ToV2::data(), psddl_pds2psana::PnccdFullFrameV1::data(), psddl_hdf2psana::PNCCD::FrameV1_v0::data(), psddl_hdf2psana::Arraychar::DataV1_v0::data(), psddl_hdf2psana::Camera::FrameV1_v0::data16(), psddl_hdf2psana::Camera::FrameV1_v0::data8(), psddl_hdf2psana::CsPad::ConfigV3QuadReg_v0::edgeSelect(), psddl_hdf2psana::CsPad::ConfigV2QuadReg_v0::edgeSelect(), psddl_hdf2psana::CsPad::ConfigV1QuadReg_v0::edgeSelect(), psddl_hdf2psana::UsdUsb::DataV1_v1::encoder_count(), psddl_hdf2psana::UsdUsb::DataV1_v0::encoder_count(), psddl_hdf2psana::Encoder::DataV2_v0::encoder_count(), ImgAlgos::AcqirisCFD::event(), psddl_hdf2psana::CsPad2x2::CsPad2x2GainMapCfg_v0::gainMap(), psddl_hdf2psana::CsPad::CsPadGainMapCfg_v0::gainMap(), ImgAlgos::CSPadBackgroundV1::getBackground(), ImgAlgos::CSPadMaskV1::getMask(), CSPadPixCoords::PixCoordsCSPadV2::getPixCoorNDArrShapedAsData_um(), psddl_hdf2psana::Bld::BldDataSpectrometerV0_v0::hproj(), Psana::EvrData::IOChannelV2::infos(), Psana::EvrData::IOChannel::infos(), ImgAlgos::ImgHitFinder::init(), psddl_hdf2psana::OceanOptics::ConfigV2_v0::nonlinCorrect(), psddl_hdf2psana::OceanOptics::ConfigV1_v0::nonlinCorrect(), ImgAlgos::ImgParametersV1::parameters(), pdscalibdata::PnccdPedestalsV1::pedestals(), pdscalibdata::CsPadPedestalsV2::pedestals(), pdscalibdata::CsPad2x2PedestalsV2::pedestals(), pdscalibdata::CsPadPedestalsV1::pedestals(), pdscalibdata::CsPad2x2PedestalsV1::pedestals(), Detector::DetectorAccess::pedestals(), Detector::DetectorAccess::pixel_areas(), Detector::DetectorAccess::pixel_bkgd(), Detector::DetectorAccess::pixel_coords_x(), Detector::DetectorAccess::pixel_coords_y(), Detector::DetectorAccess::pixel_coords_z(), pdscalibdata::PnccdPixelGainV1::pixel_gain(), pdscalibdata::CsPadPixelGainV2::pixel_gain(), pdscalibdata::CsPad2x2PixelGainV2::pixel_gain(), Detector::DetectorAccess::pixel_gain(), Detector::DetectorAccess::pixel_indexes_x(), Detector::DetectorAccess::pixel_indexes_y(), Detector::DetectorAccess::pixel_mask(), Detector::DetectorAccess::pixel_mask_geo(), pdscalibdata::PnccdPixelRmsV1::pixel_rms(), pdscalibdata::CsPadPixelRmsV2::pixel_rms(), pdscalibdata::CsPad2x2PixelRmsV2::pixel_rms(), Detector::DetectorAccess::pixel_rms(), pdscalibdata::PnccdPixelStatusV1::pixel_status(), pdscalibdata::CsPadPixelStatusV2::pixel_status(), pdscalibdata::CsPad2x2PixelStatusV2::pixel_status(), Detector::DetectorAccess::pixel_status(), pdscalibdata::CsPadPixelGainV1::pixelGains(), pdscalibdata::CsPad2x2PixelGainV1::pixelGains(), psddl_hdf2psana::Timepix::ConfigV3_v0::pixelThresh(), psddl_hdf2psana::Timepix::ConfigV2_v0::pixelThresh(), psddl_hdf2psana::CsPad2x2::CsPad2x2DigitalPotsCfg_v0::pots(), psddl_hdf2psana::CsPad::CsPadDigitalPotsCfg_v0::pots(), psddl_hdf2psana::UsdUsb::ConfigV1_v0::quadrature_mode(), psddl_hdf2psana::CsPad2x2::ElementV1_v0::sb_temp(), psddl_hdf2psana::CsPad::ElementV2_v0< Config >::sb_temp(), psddl_hdf2psana::CsPad::ElementV1_v0< Config >::sb_temp(), cspad_mod::CsPad2x2ElementV1::sb_temp(), cspad_mod::ElementT< ElemType >::sb_temp(), Psana::Lusi::DiodeFexConfigV2::scale(), Psana::Lusi::DiodeFexConfigV1::scale(), Detector::DetectorAccess::shape(), psddl_hdf2psana::CsPad::ConfigV3QuadReg_v0::shiftSelect(), psddl_hdf2psana::CsPad::ConfigV2QuadReg_v0::shiftSelect(), psddl_hdf2psana::CsPad::ConfigV1QuadReg_v0::shiftSelect(), psddl_hdf2psana::UsdUsb::DataV1_v1::status(), pdscalibdata::CsPadPixelStatusV1::status(), pdscalibdata::CsPad2x2PixelStatusV1::status(), psddl_hdf2psana::Bld::BldDataSpectrometerV0_v0::vproj(), psddl_hdf2psana::OceanOptics::ConfigV2_v0::waveLenCalib(), and psddl_hdf2psana::OceanOptics::ConfigV1_v0::waveLenCalib().

template<typename ElemType, unsigned NDim>
std::ostream& operator<< ( std::ostream &  str,
const ndarray< ElemType, NDim > &  array 
)

Methods for formatting ndarray objects.

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

Version:
Id
nd_format.h 5923 2013-03-25 18:03:06Z salnikov@SLAC.STANFORD.EDU
Author:
Andy Salnikov

Definition at line 176 of file nd_format.h.

References exmp_ipython_image::array, ndarray_details::dump_ndarray_data< ElemType, NDim >::dump(), ex_all_dets::i, and typeName().


Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7