| spBase
    | 
| マクロ定義 | |
| #define | xspAlloc(n, type) (type *)xspMalloc((int)(n)*sizeof(type)) | 
| #define | xspRealloc(p, n, type) (type *)xspRemalloc((char *)(p), (int)(n)*sizeof(type)) | 
| #define | xspFree(p) {_xspFree((char *)(p)); (p) = NULL;} | 
| #define | spArrayCopy(p1, p2, n, type) memmove((char *)(p1), (char *)(p2), (unsigned)(n)*sizeof(type)) | 
| 関数 | |
| char * | xspMalloc (int nbytes) | 
| char * | xspRemalloc (char *p, int nbytes) | 
| void | _xspFree (char *p) | 
| int ** | xspIMatAlloc (int row, int col) | 
| void | xspIMatFree (int **mat, int row) | 
| short ** | xspSMatAlloc (int row, int col) | 
| void | xspSMatFree (short **mat, int row) | 
| long ** | xspLMatAlloc (int row, int col) | 
| void | xspLMatFree (long **mat, int row) | 
| float ** | xspFMatAlloc (int row, int col) | 
| void | xspFMatFree (float **mat, int row) | 
| double ** | xspDMatAlloc (int row, int col) | 
| void | xspDMatFree (double **mat, int row) | 
| char ** | xspCMatAlloc (int row, int col) | 
| void | xspCMatFree (char **mat, int row) | 
| unsigned char ** | xspUCMatAlloc (int row, int col) | 
| void | xspUCMatFree (unsigned char **mat, int row) | 
| char * | xspStrClone (const char *string) | 
| #define xspAlloc | ( | n, | |
| type ) (type *)xspMalloc((int)(n)*sizeof(type)) | 
| #define xspRealloc | ( | p, | |
| n, | |||
| type ) (type *)xspRemalloc((char *)(p), (int)(n)*sizeof(type)) | 
Macro to resize the allocated memory block.
メモリブロックのサイズを変更するためのマクロです.
| [in] | p | すでに確保されたメモリブロックを示すポインタを指定します.NULLの場合は,新たにメモリが確保されます. | 
| [in] | n | メモリの長さを指定します.変更後のメモリのサイズは, n * sizeof(type)となります. | 
| [in] | type | 確保されるメモリの型を指定します.short,long,float,doubleなどを直接指定して下さい. | 
| #define xspFree | ( | p | ) | {_xspFree((char *)(p)); (p) = NULL;} | 
Macro to free the allocated memory block.
メモリを解放するマクロです.
| [in] | p | xspMalloc() などにより確保されたメモリブロックを示すポインタを指定します.メモリを解放後, pを NULL に初期化します. | 
| #define spArrayCopy | ( | p1, | |
| p2, | |||
| n, | |||
| type ) memmove((char *)(p1), (char *)(p2), (unsigned)(n)*sizeof(type)) | 
配列をコピーするためのマクロです.
| [out] | p1 | コピー先のポインタを指定します. | 
| [in] | p2 | コピー元のポインタを指定します. | 
| [in] | n | コピーする長さを指定します.コピーされる長さは, n * sizeof(type)となります. | 
| [in] | type | データ型を指定します.short,long,float,doubleなどを直接指定して下さい. | 
| 
 | extern | 
Allocates memory.
メモリを確保します.この関数で確保したメモリは, xspFree() を用いて解放して下さい.
| [in] | nbytes | 確保するメモリのサイズを指定します. | 
| 
 | extern | 
Resize the allocated memory block.
メモリブロックのサイズを変更します.
| [in] | p | すでに確保されたメモリブロックを示すポインタを指定します. NULL の場合は,新たにメモリが確保されます. | 
| [in] | nbytes | メモリのサイズを指定します. | 
| 
 | extern | 
Frees memory. Use xspFree() instead of this function.
メモリを解放します.この関数の代わりに, xspFree() を使用して下さい.
| [in] | p | xspMalloc() などにより確保されたメモリブロックを示すポインタを指定します. | 
| 
 | extern | 
Allocates memory for a 2-d array of int type.
二次元配列として使用できるメモリを確保します.この関数で確保したメモリは, xspIMatFree() を用いて解放して下さい.
| [in] | row | 行の数を指定します. | 
| [in] | col | 列の数を指定します. | 
| 
 | extern | 
Frees memory of a 2-d array of int type.
xspIMatAlloc() により割り当てたメモリを解放します.
| [in] | mat | xspIMatAlloc() により確保されたメモリブロックを示すポインタのポインタを指定します. | 
| [in] | row | 確保されている行の数を指定します.確保した場合の行数とこの数が異なる場合の動作は保証されません. | 
| 
 | extern | 
Allocates memory for a 2-d array of short type.
二次元配列として使用できるメモリを確保します.この関数で確保したメモリは, xspSMatFree() を用いて解放して下さい.
| [in] | row | 行の数を指定します. | 
| [in] | col | 列の数を指定します. | 
| 
 | extern | 
Frees memory of a 2-d array of short type.
xspSMatAlloc() により割り当てたメモリを解放します.
| [in] | mat | xspSMatAlloc() により確保されたメモリブロックを示すポインタのポインタを指定します. | 
| [in] | row | 確保されている行の数を指定します.確保した場合の行数とこの数が異なる場合の動作は保証されません. | 
| 
 | extern | 
Allocates memory for a 2-d array of long type.
二次元配列として使用できるメモリを確保します.この関数で確保したメモリは, xspLMatFree() を用いて解放して下さい.
| [in] | row | 行の数を指定します. | 
| [in] | col | 列の数を指定します. | 
| 
 | extern | 
Frees memory of a 2-d array of long type.
xspLMatAlloc() により割り当てたメモリを解放します.
| [in] | mat | xspLMatAlloc() により確保されたメモリブロックを示すポインタのポインタを指定します. | 
| [in] | row | 確保されている行の数を指定します.確保した場合の行数とこの数が異なる場合の動作は保証されません. | 
| 
 | extern | 
Allocates memory for a 2-d array of float type.
二次元配列として使用できるメモリを確保します.この関数で確保したメモリは, xspFMatFree() を用いて解放して下さい.
| [in] | row | 行の数を指定します. | 
| [in] | col | 列の数を指定します. | 
| 
 | extern | 
Frees memory of a 2-d array of float type.
xspFMatAlloc() により割り当てたメモリを解放します.
| [in] | mat | xspFMatAlloc() により確保されたメモリブロックを示すポインタのポインタを指定します. | 
| [in] | row | 確保されている行の数を指定します.確保した場合の行数とこの数が異なる場合の動作は保証されません. | 
| 
 | extern | 
Allocates memory for a 2-d array of double type.
二次元配列として使用できるメモリを確保します.この関数で確保したメモリは, xspDMatFree() を用いて解放して下さい.
| [in] | row | 行の数を指定します. | 
| [in] | col | 列の数を指定します. | 
| 
 | extern | 
Frees memory of a 2-d array of double type.
xspDMatAlloc() により割り当てたメモリを解放します.
| [in] | mat | xspDMatAlloc() により確保されたメモリブロックを示すポインタのポインタを指定します. | 
| [in] | row | 確保されている行の数を指定します.確保した場合の行数とこの数が異なる場合の動作は保証されません. | 
| 
 | extern | 
Allocates memory for a 2-d array of char type.
二次元配列として使用できるメモリを確保します.この関数で確保したメモリは, xspCMatFree() を用いて解放して下さい.
| [in] | row | 行の数を指定します. | 
| [in] | col | 列の数を指定します. | 
| 
 | extern | 
Frees memory of a 2-d array of char type.
xspCMatAlloc() により割り当てたメモリを解放します.
| [in] | mat | xspCMatAlloc() により確保されたメモリブロックを示すポインタのポインタを指定します. | 
| [in] | row | 確保されている行の数を指定します.確保した場合の行数とこの数が異なる場合の動作は保証されません. | 
| 
 | extern | 
Allocates memory for a 2-d array of unsigned char type.
二次元配列として使用できるメモリを確保します.この関数で確保したメモリは, xspUCMatFree() を用いて解放して下さい.
| [in] | row | 行の数を指定します. | 
| [in] | col | 列の数を指定します. | 
| 
 | extern | 
Frees memory of a 2-d array of unsigned char type.
xspUCIMatAlloc() により割り当てたメモリを解放します.
| [in] | mat | xspUCMatAlloc() により確保されたメモリブロックを示すポインタのポインタを指定します. | 
| [in] | row | 確保されている行の数を指定します.確保した場合の行数とこの数が異なる場合の動作は保証されません. |