PetaVision  Alpha
 All Data Structures Namespaces Functions Variables
PV Namespace Reference

Data Structures

struct  _Drop
 
struct  _Log
 
class  AbstractNormProbe
 
class  ANNErrorLayer
 
class  ANNLayer
 
class  ANNNormalizedErrorLayer
 
class  ANNSquaredLayer
 
class  ANNWhitenedLayer
 
class  BackgroundLayer
 
class  BaseConnection
 
class  BaseConnectionProbe
 
class  BaseHyPerConnProbe
 
class  BaseInput
 
class  BaseLayer
 
class  BaseObject
 
class  BaseProbe
 
class  BinningLayer
 
class  Clock
 
class  CloneConn
 
class  CloneKernelConn
 
class  CloneVLayer
 
class  ColProbe
 
class  ColumnEnergyProbe
 
class  Communicator
 
class  ConstantLayer
 
class  CopyConn
 
class  CoreParamGroupHandler
 
class  DataStore
 
class  Factory
 
class  FeedbackConn
 
class  FilenameParsingGroundTruthLayer
 
class  FileStream
 
class  FirmThresholdCostFnLCAProbe
 
class  FirmThresholdCostFnProbe
 
class  GapConn
 
class  GapLayer
 
class  GaussianRandom
 
class  HyPerCol
 
class  HyPerConn
 
class  HyPerLayer
 
class  HyPerLCALayer
 
class  IdentConn
 
class  Image
 
class  ImageFromMemoryBuffer
 
class  ImagePvp
 
class  ImprintConn
 
struct  indexvaluepair_
 
class  InitCloneKernelWeights
 
class  InitCocircWeights
 
class  InitCocircWeightsParams
 
class  InitGauss2DWeights
 
class  InitGauss2DWeightsParams
 
class  InitGaussianRandomWeights
 
class  InitGaussianRandomWeightsParams
 
class  InitIdentWeights
 
class  InitIdentWeightsParams
 
class  InitMaxPoolingWeights
 
class  InitMaxPoolingWeightsParams
 
class  InitOneToOneWeights
 
class  InitOneToOneWeightsParams
 
class  InitOneToOneWeightsWithDelays
 
class  InitOneToOneWeightsWithDelaysParams
 
class  InitRandomWeights
 
class  InitRandomWeightsParams
 
class  InitSmartWeights
 
class  InitSpreadOverArborsWeights
 
class  InitSpreadOverArborsWeightsParams
 
class  InitUniformRandomWeights
 
class  InitUniformRandomWeightsParams
 
class  InitUniformWeights
 
class  InitUniformWeightsParams
 
class  InitV
 
class  InitWeights
 
class  InitWeightsParams
 
class  InterColComm
 
class  ISTALayer
 
class  KernelConn
 
class  KernelProbe
 
class  KeywordHandler
 
class  KmeansLayer
 
class  L0NormLCAProbe
 
class  L0NormProbe
 
class  L1NormLCAProbe
 
class  L1NormProbe
 
class  L2ConnProbe
 
class  L2NormProbe
 
class  LabelErrorLayer
 
class  LabelLayer
 
class  LayerProbe
 
class  LCALIFLayer
 
class  LeakyIntegrator
 
class  LIF
 
class  LIFGap
 
class  LogFileStream
 
struct  LogStreamTraits
 
struct  LogType
 
class  MaskLayer
 
class  MomentumConn
 
class  MomentumLCALayer
 
class  Movie
 
class  MoviePvp
 
class  NormalizeBase
 
class  NormalizeContrastZeroMean
 
class  NormalizeGap
 
class  NormalizeL2
 
class  NormalizeMax
 
class  NormalizeMultiply
 
class  NormalizeSum
 
class  OutStream
 
class  Parameter
 
class  ParameterArray
 
class  ParameterArrayStack
 
class  ParameterGroup
 
class  ParameterStack
 
class  ParameterString
 
class  ParameterStringStack
 
class  ParameterSweep
 
class  ParamGroupHandler
 
class  Patterns
 
class  PlasticCloneConn
 
class  PointLIFProbe
 
class  PointProbe
 
class  PoolingConn
 
class  PoolingIndexLayer
 
class  privateTransposeConn
 
class  PtwiseLinearTransferLayer
 
class  PtwiseProductLayer
 
class  Publisher
 
class  PV_Arguments
 
class  PV_Init
 
class  PVParams
 
class  QuotientColProbe
 
class  Random
 
class  RequireAllZeroActivityProbe
 
class  RescaleConn
 
class  RescaleLayer
 
class  Retina
 
class  RunningAverageLayer
 
class  Segmentify
 
class  SegmentLayer
 
class  ShuffleLayer
 
class  SigmoidLayer
 
struct  SparseWeightInfo
 
class  StatsProbe
 
class  Timer
 
class  TransposeConn
 
class  TransposePoolingConn
 
class  WTALayer
 

Typedefs

typedef _Log< char, LogDebugTypeDebug
 
typedef struct PV::_Drop Drop
 
typedef _Log< char, LogErrorTypeError
 
typedef _Log< char,
LogErrorNoExitType
ErrorNoExit
 
typedef struct PV::indexvaluepair_ indexvaluepair
 
typedef _Log< char, LogInfoTypeInfo
 
typedef LogType< _LogDebug > LogDebugType
 
typedef LogType< _LogErrorNoExit > LogErrorNoExitType
 
typedef LogType< _LogError > LogErrorType
 
typedef LogType< _LogInfo > LogInfoType
 
typedef LogType< _LogStackTrace > LogStackTraceType
 
typedef LogType< _LogWarn > LogWarnType
 
typedef BaseObject *(* ObjectCreateFn )(char const *name, HyPerCol *hc)
 
typedef _Log< char,
LogStackTraceType
StackTrace
 
typedef enum
PV::TriggerBehaviorTypeEnum 
TriggerBehaviorType
 
typedef _Log< char, LogWarnTypeWarn
 
typedef _Log< wchar_t,
LogDebugType
WDebug
 
typedef _Log< wchar_t,
LogErrorType
WError
 
typedef _Log< wchar_t,
LogErrorNoExitType
WErrorNoExit
 
typedef _Log< wchar_t,
LogInfoType
WInfo
 
typedef _Log< wchar_t,
LogStackTraceType
WStackTrace
 
typedef _Log< wchar_t,
LogWarnType
WWarn
 

Enumerations

enum  CheckpointWriteTriggerMode { CPWRITE_TRIGGER_STEP, CPWRITE_TRIGGER_TIME, CPWRITE_TRIGGER_CLOCK }
 
enum  InitVType {
  UndefinedInitV, ConstantV, UniformRandomV, GaussianRandomV,
  InitVFromFile
}
 
enum  InputColorType { COLORTYPE_UNRECOGNIZED, COLORTYPE_GRAYSCALE, COLORTYPE_RGB }
 
enum  InputInterpolationMethod { INTERPOLATE_UNDEFINED, INTERPOLATE_BICUBIC, INTERPOLATE_NEARESTNEIGHBOR }
 
enum  LogTypeEnum {
  _LogInfo, _LogWarn, _LogError, _LogErrorNoExit,
  _LogDebug, _LogStackTrace
}
 
enum  MovementType { RANDOMWALK = 0, MOVEFORWARD = 1, MOVEBACKWARD = 2, RANDOMJUMP = 3 }
 
enum  OrientationMode { horizontal = 0, vertical = 1, mixed = 2 }
 
enum  ParamGroupType {
  UnrecognizedGroupType, HyPerColGroupType, LayerGroupType, ConnectionGroupType,
  ProbeGroupType, ColProbeGroupType, WeightInitializerGroupType, WeightNormalizerGroupType
}
 
enum  ParamsIOFlag { PARAMS_IO_READ, PARAMS_IO_WRITE }
 
enum  PatternType {
  BARS = 0, RECTANGLES = 1, SINEWAVE = 2, COSWAVE = 3,
  IMPULSE = 4, SINEV = 5, COSV = 6, DROP = 7
}
 
enum  PVBufType { BufV, BufActivity }
 
enum  SweepType { SWEEP_UNDEF = 0, SWEEP_NUMBER = 1, SWEEP_STRING = 2 }
 
enum  TimeUnit { CLOCK_SECOND, CLOCK_MINUTE, CLOCK_HOUR, CLOCK_DAY }
 
enum  TriggerBehaviorTypeEnum { NO_TRIGGER, UPDATEONLY_TRIGGER, RESETSTATE_TRIGGER }
 

Functions

static int _mkdir (const char *dir)
 
int * alloc_params (int numParams)
 
static unsigned char compressWeight (pvdata_t w, pvdata_t minVal, pvdata_t maxVal)
 
static unsigned char compressWeight (unsigned char w, pvdata_t minVal, pvdata_t maxVal)
 
BaseObjectcreateANNErrorLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateANNLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateANNNormalizedErrorLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateANNSquaredLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateANNWhitenedLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateBackgroundLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateBasePVObject (char const *name, HyPerCol *hc)
 
BaseObjectcreateBinningLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateCloneConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateCloneKernelConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateCloneVLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateColumnEnergyProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateConstantLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateCopyConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateFeedbackConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateFilenameParsingGroundTruthLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateFirmThresholdCostFnLCAProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateFirmThresholdCostFnProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateGapConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateGapLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateHyPerConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateHyPerLCALayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateIdentConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateImage (char const *name, HyPerCol *hc)
 
BaseObjectcreateImageFromMemoryBuffer (char const *name, HyPerCol *hc)
 
BaseObjectcreateImagePvp (char const *name, HyPerCol *hc)
 
BaseObjectcreateImprintConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitCocircWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitGauss2DWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitGaussianRandomWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitIdentWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitMaxPoolingWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitOneToOneWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitOneToOneWeightsWithDelays (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitSmartWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitSpreadOverArborsWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitUniformRandomWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitUniformWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateInitWeights (char const *name, HyPerCol *hc)
 
BaseObjectcreateISTALayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateKernelConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateKernelProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateKmeansLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateL0NormLCAProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateL0NormProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateL1NormLCAProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateL1NormProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateL2NormProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateLabelErrorLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateLabelLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateLCALIFLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateLeakyIntegrator (char const *name, HyPerCol *hc)
 
BaseObjectcreateLIF (char const *name, HyPerCol *hc)
 
BaseObjectcreateLIFGap (char const *name, HyPerCol *hc)
 
BaseObjectcreateMaskLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateMomentumConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateMomentumLCALayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateMovie (char const *name, HyPerCol *hc)
 
BaseObjectcreateMoviePvp (char const *name, HyPerCol *hc)
 
BaseObjectcreateNormalizeBase (char const *name, HyPerCol *hc)
 
BaseObjectcreateNormalizeContrastZeroMean (char const *name, HyPerCol *hc)
 
BaseObjectcreateNormalizeGap (char const *name, HyPerCol *hc)
 
BaseObjectcreateNormalizeL2 (char const *name, HyPerCol *hc)
 
BaseObjectcreateNormalizeMax (char const *name, HyPerCol *hc)
 
BaseObjectcreateNormalizeMultiply (char const *name, HyPerCol *hc)
 
BaseObjectcreateNormalizeSum (char const *name, HyPerCol *hc)
 
BaseObjectcreatePatterns (char const *name, HyPerCol *hc)
 
BaseObjectcreatePlasticCloneConn (char const *name, HyPerCol *hc)
 
BaseObjectcreatePointLIFProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreatePointProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreatePoolingConn (char const *name, HyPerCol *hc)
 
BaseObjectcreatePoolingIndexLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreatePtwiseLinearTransferLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreatePtwiseProductLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateQuotientColProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateRequireAllZeroActivityProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateRescaleConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateRescaleLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateRetina (char const *name, HyPerCol *hc)
 
BaseObjectcreateRunningAverageLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateSegmentify (char const *name, HyPerCol *hc)
 
BaseObjectcreateSegmentLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateShuffleLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateSigmoidLayer (char const *name, HyPerCol *hc)
 
BaseObjectcreateStatsProbe (char const *name, HyPerCol *hc)
 
BaseObjectcreateTransposeConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateTransposePoolingConn (char const *name, HyPerCol *hc)
 
BaseObjectcreateWTALayer (char const *name, HyPerCol *hc)
 
char * expandLeadingTilde (char const *path)
 
template<typename T >
int gatherActivity (PV_Stream *pvstream, Communicator *comm, int rootproc, T *buffer, const PVLayerLoc *layerLoc, bool extended)
 
template int gatherActivity< pvdata_t > (PV_Stream *pvstream, Communicator *comm, int rootproc, pvdata_t *buffer, const PVLayerLoc *layerLoc, bool extended)
 
template int gatherActivity< taus_uint4 > (PV_Stream *pvstream, Communicator *comm, int rootproc, taus_uint4 *buffer, const PVLayerLoc *layerLoc, bool extended)
 
template int gatherActivity< unsigned char > (PV_Stream *pvstream, Communicator *comm, int rootproc, unsigned char *buffer, const PVLayerLoc *layerLoc, bool extended)
 
std::ostream & getErrorStream ()
 
int getNumGlobalPatches (PVLayerLoc const *loc, bool asPostWeights)
 
std::ostream & getOutputStream ()
 
long int getPV_StreamFilepos (PV_Stream *pvstream)
 
InitWeightsgetWeightInitializer (char const *name, HyPerCol *hc)
 
NormalizeBasegetWeightNormalizer (char const *name, HyPerCol *hc)
 
std::wostream & getWErrorStream ()
 
std::wostream & getWOutputStream ()
 
int parse_options (int argc, char *argv[], bool *paramusage, bool *require_return, char **output_path, char **param_file, char **log_file, char **gpu_devices, unsigned int *random_seed, char **working_dir, int *restart, char **checkpointReadDir, bool *useDefaultNumThreads, int *numthreads, int *num_rows, int *num_columns, int *batch_width, int *dry_run)
 
static void print_stacktrace (FILE *out=stderr, unsigned int max_frames=63)
 
void pv_abort_message (const char *file, int line, const char *fmt,...)
 
void pv_assert_failed (const char *file, int line, const char *condition)
 
void pv_assert_failed_message (const char *file, int line, const char *condition, const char *fmt,...)
 
void * pv_calloc (const char *file, int line, size_t count, size_t size)
 
void * pv_calloc (const char *file, int line, size_t count, size_t size, const char *fmt,...)
 
int pv_center_image (float *V, int nx0, int ny0, int nx, int ny)
 
template<typename T >
void pv_delete (const char *file, int line, T *ptr)
 
void pv_exit_failure (const char *file, int line, const char *fmt,...)
 
int PV_fclose (PV_Stream *pvstream)
 
PV_StreamPV_fopen (const char *path, const char *mode, bool verifyWrites)
 
size_t PV_fread (void *RESTRICT ptr, size_t size, size_t nitems, PV_Stream *RESTRICT pvstream)
 
int PV_fseek (PV_Stream *pvstream, long int offset, int whence)
 
int PV_fseek (PV_Stream *pvstream, long offset, int whence)
 
long int PV_ftell (PV_Stream *pvstream)
 
long int PV_ftell_primitive (PV_Stream *pvstream)
 
size_t PV_fwrite (const void *RESTRICT ptr, size_t size, size_t nitems, PV_Stream *RESTRICT pvstream)
 A wrapper for fwrite() with feedback for errors and the possibility of error recovery. The syntax and purpose of PV_fwrite follows that of the standard C function fwrite(), with the following changes. The FILE* argument is replaced with a PV_Stream* pointer, and the additional argument verify (which defaults to true) provides some error checking. More...
 
int pv_getopt (int argc, char *argv[], const char *opt, bool *paramusage)
 
int pv_getopt_int (int argc, char *argv[], const char *opt, int *iVal, bool *paramusage)
 
int pv_getopt_long (int argc, char *argv[], const char *opt, long int *iVal, bool *paramusage)
 
int pv_getopt_str (int argc, char *argv[], const char *opt, char **sVal, bool *paramusage)
 
int pv_getopt_unsigned (int argc, char *argv[], const char *opt, unsigned int *uVal, bool *paramusage)
 
int pv_getoptionalopt_int (int argc, char *argv[], const char *opt, int *iVal, bool *useDefaultVal, bool *paramusage)
 
void pv_log_debug (const char *file, int line, const char *fmt,...)
 
void pv_log_error (const char *file, int line, const char *fmt,...)
 
void pv_log_error_noexit (const char *file, int line, const char *fmt,...)
 
void pv_log_info (const char *file, int line, const char *fmt,...)
 
void pv_log_warn (const char *file, int line, const char *fmt,...)
 
void * pv_malloc (const char *file, int line, size_t size)
 
void * pv_malloc (const char *file, int line, size_t size, const char *fmt,...)
 
size_t pv_sizeof (int datatype)
 
size_t pv_sizeof_patch (int count, int datatype)
 
int PV_stat (const char *path, struct stat *buf)
 
int pv_text_write_patch (OutStream *outStream, PVPatch *patch, pvwdata_t *data, int nf, int sx, int sy, int sf)
 
int pvcube_delete (PVLayerCube *cube)
 
PVLayerCubepvcube_init (PVLayerCube *cube, const PVLayerLoc *loc, int numItems)
 
PVLayerCubepvcube_new (const PVLayerLoc *loc, int numItems)
 
int pvcube_setAddr (PVLayerCube *cube)
 
size_t pvcube_size (int numItems)
 
int pvp_check_file_header (Communicator *comm, const PVLayerLoc *loc, int params[], int numParams)
 
int pvp_check_file_header_deprecated (Communicator *comm, const PVLayerLoc *loc, int params[], int numParams)
 
int pvp_close_file (PV_Stream *pvstream, Communicator *comm)
 
int pvp_copy_patches (unsigned char *buf, PVPatch **patches, pvwdata_t *dataStart, int numDataPatches, int nxp, int nyp, int nfp, float minVal, float maxVal, bool compressed=true)
 
PV_Streampvp_open_read_file (const char *filename, Communicator *comm)
 
PV_Streampvp_open_write_file (const char *filename, Communicator *comm, bool append)
 
int pvp_read_header (PV_Stream *pvstream, Communicator *comm, int *params, int *numParams)
 
static int pvp_read_header (PV_Stream *pvstream, double *time, int *filetype, int *datatype, int params[], int *numParams)
 
int pvp_read_header (const char *filename, Communicator *comm, double *time, int *filetype, int *datatype, int params[], int *numParams)
 
int pvp_read_time (PV_Stream *pvstream, Communicator *comm, int root_process, double *timed)
 
int * pvp_set_activity_params (Communicator *comm, double timed, const PVLayerLoc *loc, int datatype, int numbands)
 
int * pvp_set_file_params (Communicator *comm, double timed, const PVLayerLoc *loc, int datatype, int numbands)
 
int * pvp_set_kernel_params (Communicator *comm, double timed, const PVLayerLoc *loc, int datatype, int numbands, int nxp, int nyp, int nfp, float min, float max, int numPatches)
 
int * pvp_set_nonspiking_act_params (Communicator *comm, double timed, const PVLayerLoc *loc, int datatype, int numbands)
 
int * pvp_set_nonspiking_sparse_act_params (Communicator *comm, double timed, const PVLayerLoc *loc, int datatype, int numbands)
 
int pvp_set_patches (const unsigned char *buf, const PVPatch *const *patches, pvwdata_t *dataStart, int numDataPatches, int nxp, int nyp, int nfp, float minVal, float maxVal, bool compress=true)
 
int * pvp_set_weight_params (Communicator *comm, double timed, const PVLayerLoc *loc, int datatype, int numbands, int nxp, int nyp, int nfp, float min, float max, int numPatches)
 
int pvp_write_header (PV_Stream *pvstream, Communicator *comm, int *params, int numParams)
 
int pvp_write_header (PV_Stream *pvstream, Communicator *comm, double time, const PVLayerLoc *loc, int filetype, int datatype, int numbands, bool extended, bool contiguous, unsigned int numParams, size_t recordSize)
 
void read_header_err (const char *filename, Communicator *comm, int returned_num_params, int *params)
 
int readFile (const char *filename, float *buf, int *nx, int *ny)
 
int readRandState (const char *filename, Communicator *comm, taus_uint4 *randState, const PVLayerLoc *loc, bool isExtended)
 
int readWeights (PVPatch ***patches, pvwdata_t **dataStart, int numArbors, int numPatches, int nxp, int nyp, int nfp, const char *filename, Communicator *comm, double *timed, const PVLayerLoc *loc)
 
int readWeightsDeprecated (PVPatch ***patches, pvwdata_t **dataStart, int numArbors, int numPatches, int nxp, int nyp, int nfp, const char *filename, Communicator *comm, double *timed, const PVLayerLoc *loc)
 
template<typename T >
int scatterActivity (PV_Stream *pvstream, Communicator *comm, int rootproc, T *buffer, const PVLayerLoc *layerLoc, bool extended, const PVLayerLoc *fileLoc, int offsetX, int offsetY, int filetype, int numActive)
 
template int scatterActivity< float > (PV_Stream *pvstream, Communicator *icComm, int rootproc, float *buffer, const PVLayerLoc *layerLoc, bool extended, const PVLayerLoc *fileLoc, int offsetX, int offsetY, int filetype, int numActive)
 
template int scatterActivity< taus_uint4 > (PV_Stream *pvstream, Communicator *icComm, int rootproc, taus_uint4 *buffer, const PVLayerLoc *layerLoc, bool extended, const PVLayerLoc *fileLoc, int offsetX, int offsetY, int filetype, int numActive)
 
int set_weight_params (int *params, int nxp, int nyp, int nfp, float min, float max, int numPatches)
 
void setLogFile (char const *logFile, std::ios_base::openmode mode)
 
void setWLogFile (char const *logFile, std::ios_base::openmode mode)
 
double timeFromParams (void *params)
 
void timeToParams (double time, void *params)
 
static pvdata_t uncompressWeight (unsigned char w, pvdata_t minVal, pvdata_t maxVal)
 
static pvdata_t uncompressWeight (float w, pvdata_t minVal, pvdata_t maxVal)
 
long int updatePV_StreamFilepos (PV_Stream *pvstream)
 
void usage ()
 
void vpv_log_debug (const char *file, int line, const char *fmt, va_list args)
 
void vpv_log_error (const char *file, int line, const char *fmt, va_list args)
 
void vpv_log_warn (const char *file, int line, const char *fmt, va_list args)
 
void vpv_log_with_prefix (std::ostream &stream, const char *prefix, const char *file, int line, const char *fmt, va_list args)
 
int writeActivity (PV_Stream *pvstream, Communicator *comm, double timed, DataStore *store, const PVLayerLoc *loc)
 
int writeActivitySparse (PV_Stream *pvstream, Communicator *comm, double timed, DataStore *store, const PVLayerLoc *loc, bool includeValues)
 
int writeRandState (const char *filename, Communicator *comm, taus_uint4 *randState, const PVLayerLoc *loc, bool isExtended, bool verifyWrites)
 
int writeWeights (const char *filename, Communicator *comm, double timed, bool append, const PVLayerLoc *preLoc, const PVLayerLoc *postLoc, int nxp, int nyp, int nfp, float minVal, float maxVal, PVPatch ***patches, pvwdata_t **dataStart, int numPatches, int numArbors, bool compress, int file_type)
 

Variables

LogFileStream< char > errorLogFileStream (std::cerr)
 
LogFileStream< wchar_t > errorLogFileWStream (std::wcerr)
 
LogFileStream< char > outputLogFileStream (std::cout)
 
LogFileStream< wchar_t > outputLogFileWStream (std::wcout)
 
**initialize src
 

Detailed Description

Base Input class for reading images, movies, pvp files, as well as creating patterns and loading from memory buffer.

Function Documentation

static unsigned char PV::compressWeight ( pvdata_t  w,
pvdata_t  minVal,
pvdata_t  maxVal 
)
inlinestatic

Compress a weight value to an unsigned char

Definition at line 14 of file weight_conversions.hpp.

static unsigned char PV::compressWeight ( unsigned char  w,
pvdata_t  minVal,
pvdata_t  maxVal 
)
inlinestatic

Compress a weight value to an unsigned char (weight type pvwdata_t already a uchar)

Definition at line 19 of file weight_conversions.hpp.

char * PV::expandLeadingTilde ( char const *  path)

If a filename begins with "~/" or is "~", presume the user means the home directory. The return value is the expanded path; e.g. if the home directory is /home/user1, calling with the path "~/directory/file.name" returns "/home/user1/directory/file.name" If the input filename is longer than "~" and doesn't start with "~/", the return value has the same contents as input (but is a different block of memory). The calling routine has the responsibility for freeing the return value, and if the input string needs to be free()'ed, the calling routine has that responsibility as well.

Definition at line 245 of file io.cpp.

std::ostream & PV::getErrorStream ( )

Returns the stream used by pvWarn, pvError, and pvErrorNoExit. Typically, if a log file is set, this returns the same ostream as getOutputStream(), and if a log file is not set, this returns std::cerr.

Definition at line 60 of file PVLog.cpp.

int PV::getNumGlobalPatches ( PVLayerLoc const *  loc,
bool  asPostWeights 
)

Gets the number of patches for the given PVLayerLoc, in a non-shared weight context. The return value is the number of patches for the global column (i.e. not a particular MPI process) If asPostWeights is true, loc is interpreted as a postsynaptic layer's PVLayerLoc and patches are not counted in the extended region. If asPostWeights is false, loc is interpreted as a presynaptic layer's PVLayerLoc and patches are counted in the extended region.

Definition at line 424 of file fileio.cpp.

std::ostream & PV::getOutputStream ( )

Returns the stream used by pvInfo and, pvDebug Typically, if a log file is set, the file is opened with write access and getOutputStream() returns the resulting fstream. If a log file is not set, this function returns std::cout.

Definition at line 61 of file PVLog.cpp.

std::wostream & PV::getWErrorStream ( )

A wide-character analog of getOutputStream().

Definition at line 63 of file PVLog.cpp.

std::wostream & PV::getWOutputStream ( )

A wide-character analog of getOutputStream().

Definition at line 64 of file PVLog.cpp.

int PV::parse_options ( int  argc,
char *  argv[],
bool *  paramusage,
bool *  require_return,
char **  output_path,
char **  param_file,
char **  log_file,
char **  gpu_devices,
unsigned int *  random_seed,
char **  working_dir,
int *  restart,
char **  checkpointReadDir,
bool *  useDefaultNumThreads,
int *  numthreads,
int *  num_rows,
int *  num_columns,
int *  batch_width,
int *  dry_run 
)

Definition at line 45 of file io.cpp.

static void PV::print_stacktrace ( FILE *  out = stderr,
unsigned int  max_frames = 63 
)
inlinestatic

Print a demangled stack backtrace of the caller function to FILE* out.

Definition at line 47 of file PVAssert.hpp.

int PV::pv_center_image ( float *  V,
int  nx0,
int  ny0,
int  nx,
int  ny 
)

Definition at line 215 of file io.cpp.

void PV::pv_exit_failure ( const char *  file,
int  line,
const char *  fmt,
  ... 
)

pv_exit_failure is deprecated. Use pvError methods instead.

Definition at line 188 of file PVLog.cpp.

size_t PV::PV_fwrite ( const void *RESTRICT  ptr,
size_t  size,
size_t  nitems,
PV_Stream *RESTRICT  pvstream 
)

A wrapper for fwrite() with feedback for errors and the possibility of error recovery. The syntax and purpose of PV_fwrite follows that of the standard C function fwrite(), with the following changes. The FILE* argument is replaced with a PV_Stream* pointer, and the additional argument verify (which defaults to true) provides some error checking.

The function calls fwrite(). If it gets an error, it tries again, up to 5 times (the number is controlled by the preprocessor directive MAX_FILESYSTEMCALL_TRIES). If it fails all 5 times, it fseeks to the position it was in at the start of the call, and returns zero. If it succeeds in any of the 5 times, it returns nitems, and the file position is at the end of the written data.

If verify is true and pvstream is a file (isfile is true), then after writing, the file is opened for reading and the size*nitems characters are compared to the write buffer. If there is an error reading the data back or the data read back does not match the data written, the function returns zero and the fseek() is called to restore the file to the position it was in at the start of the call.

NOTE: the purpose of this wrapper is to provide some attempts at recovery if a file system is imperfect (such as the one we've struggled with). We hope that a successful return value indicates actual success and that the feedback provided by failures prove helpful. However, the function cannot guarantee recovery from errors.

Definition at line 260 of file fileio.cpp.

int PV::pv_getopt_int ( int  argc,
char *  argv[],
const char *  opt,
int *  iVal,
bool *  paramusage 
)

Definition at line 108 of file io.cpp.

int PV::pv_getopt_long ( int  argc,
char *  argv[],
const char *  opt,
long int *  iVal,
bool *  paramusage 
)

Definition at line 151 of file io.cpp.

int PV::pv_getopt_str ( int  argc,
char *  argv[],
const char *  opt,
char **  sVal,
bool *  paramusage 
)

Definition at line 189 of file io.cpp.

int PV::pv_getopt_unsigned ( int  argc,
char *  argv[],
const char *  opt,
unsigned int *  uVal,
bool *  paramusage 
)

Definition at line 170 of file io.cpp.

void PV::pv_log_debug ( const char *  file,
int  line,
const char *  fmt,
  ... 
)

pv_log_debug is deprecated. Use pvDebug methods instead.

Definition at line 129 of file PVLog.cpp.

void PV::pv_log_error ( const char *  file,
int  line,
const char *  fmt,
  ... 
)

pv_log_error is deprecated. Use pvError methods instead.

Definition at line 163 of file PVLog.cpp.

void PV::pv_log_error_noexit ( const char *  file,
int  line,
const char *  fmt,
  ... 
)

pv_log_error_noexit is deprecated. Use pvErrorNoExit methods instead.

Definition at line 176 of file PVLog.cpp.

void PV::pv_log_info ( const char *  file,
int  line,
const char *  fmt,
  ... 
)

pv_log_info is deprecated. Use pvInfo methods instead.

Definition at line 140 of file PVLog.cpp.

void PV::pv_log_warn ( const char *  file,
int  line,
const char *  fmt,
  ... 
)

pv_log_warn is deprecated. Use pvWarn methods instead.

Definition at line 152 of file PVLog.cpp.

size_t PV::pv_sizeof_patch ( int  count,
int  datatype 
)

Returns the size of a patch when read or written. The size includes the size of the (nxp,nyp) patch header.

Definition at line 59 of file fileio.cpp.

int PV::pv_text_write_patch ( OutStream *  outStream,
PVPatch *  patch,
pvwdata_t *  data,
int  nf,
int  sx,
int  sy,
int  sf 
)

Definition at line 1980 of file fileio.cpp.

int PV::pvp_copy_patches ( unsigned char *  buf,
PVPatch **  patches,
pvwdata_t *  dataStart,
int  numDataPatches,
int  nxp,
int  nyp,
int  nfp,
float  minVal,
float  maxVal,
bool  compressed = true 
)

Copy patches into an unsigned char buffer

Definition at line 439 of file fileio.cpp.

int PV::pvp_set_patches ( const unsigned char *  buf,
const PVPatch *const *  patches,
pvwdata_t *  dataStart,
int  numDataPatches,
int  nxp,
int  nyp,
int  nfp,
float  minVal,
float  maxVal,
bool  compress = true 
)

Set patches given an unsigned char input buffer

Definition at line 493 of file fileio.cpp.

static pvdata_t PV::uncompressWeight ( unsigned char  w,
pvdata_t  minVal,
pvdata_t  maxVal 
)
inlinestatic

Uncompress a weight value to a pvdata_t data type

Definition at line 24 of file weight_conversions.hpp.

static pvdata_t PV::uncompressWeight ( float  w,
pvdata_t  minVal,
pvdata_t  maxVal 
)
inlinestatic

Uncompress a weight value to a pvdata_t data type (weight type pvwdata_t already a float)

Definition at line 29 of file weight_conversions.hpp.

Variable Documentation

* * initialize PV::src

copyDirect is never called. Do we still need it?

  • copy src PVLayerCube to dest PVLayerCube

Definition at line 2887 of file HyPerLayer.cpp.