Matrix Elements VB-800 Instrukcja Użytkownika Strona 36

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 35
28 Appendix A2 Exported Function Summary
Description
Makes pv of type OX
ARRAY and allocates an array of c OxVALUEsinthat
OX
ARRAY.
If pv is not received from Ox, you should set it to an integer before calling this
function, also see OxLibValMatMalloc
OxLibValMatDup
void OxLibValMatDup(OxVALUE *pv, MATRIX mSrc, int r, int c);
pv in: value
out: allocated to type matrix
mSrc in: source matrix
r,c in: number of rows, columns of source matrix
No return value.
Description
Makes pv of type OX
MATRIX, allocates an r × c matrix for it, and duplicates
mSrc in that matrix. You could use OxFreeByValue to free the matrix, but nor-
mally that would be left to the Ox run-time system.
If pv is not received from Ox, you should set it to an integer before calling this
function, also see OxLibValMatMalloc
OxLibValMatMalloc
void OxLibValMatMalloc(OxVALUE *pv, int r, int c);
pv in: value
out: allocated to type matrix
r,c in: number of rows, columns of source matrix
No return value.
Description
Makes pv of type OX
MATRIX and allocates an r × c matrix for it. You could
use OxFreeByValue to free the matrix, but normally that would be left to the Ox
run-time system.
If pv is not received from Ox, you should set it to an integer before calling this
function, for example:
OxVALUE tmp;
OxSetInt(&tmp, 0, 0);
OxLibValMatMalloc(&tmp, 2, 2);
Failure to do so could bring down the Ox system.
OxMain,OxMainCmd
int OxMain(int argc, char *argv[]);
int OxMainCmd(char *sCommand);
Przeglądanie stron 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag