IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#355 closed defect (fixed)

psVector->n shouldn't be const

Reported by: robert.desonia@… Owned by: Paul Price
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

Do you really want 'n' to be const in psVector? (ref:SDRS v13, page 18) I can
understand nalloc, since it represents the allocated size, but I think the user
would routinely set n.

-rdd

Change History (1)

comment:1 by Paul Price, 21 years ago

Resolution: fixed
Status: newclosed

Agreed. Altered SDRS:

typedef struct {

psType type; /< vector data type and dimension
int n;
/< size of vector
const int nalloc; /< allocated data block
union {

psS8 *S8; /< Pointers to byte data
psS16 *S16;
/< Pointers to short-integer data
psS32 *S32; /< Pointers to integer data
psS64 *S64;
/< Pointers to long-integer data
psU8 *U8; /< Pointers to unsigned-byte data
psU16 *U16;
/< Pointers to unsigned-short-integer data
psU32 *U32; /< Pointers to unsigned-integer data
psU64 *U64;
/< Pointers to unsigned-long-integer data
psF32 *F32; /< Pointers to floating-point data
psF64 *F64;
/< Pointers to double-precision data
psC32 *C32; /< Pointers to complex floating-point data
psC64 *C64;
/< Pointers to complex floating-point data

} data;

} psVector;

Note: See TracTickets for help on using tickets.