|
HPGCC3 Documentation 3.0 R003
|
Functions | |
| SAT_OBJECT | sat3_createcarray (SAT_OBJECT where, int rows, int cols) |
| Create a complex array object with the given dimensions. | |
| void | sat3_carrayput_dbl (SAT_OBJECT array, int row, int col, double rpart, double ipart) |
| Set the element of an array to the given value (as a double). | |
| void | sat3_carrayput_xreal (SAT_OBJECT array, int row, int col, XREAL *rpart, XREAL *ipart) |
| Set the element of an array to the given value (as XREAL's). | |
| void | sat3_carrayput_int (SAT_OBJECT array, int row, int col, int rpart, int ipart) |
| Set the element of an array to the given value (as int's). | |
| void | sat3_carrayput_llong (SAT_OBJECT array, int row, int col, LONGLONG rpart, LONGLONG ipart) |
| Set the element of an array to the given value (as long long's). | |
| void | sat3_carrayput_decn (SAT_OBJECT array, int row, int col, decNumber *rpart, decNumber *ipart) |
| Set the element of an array to the given value (as decNumber's). | |
| BOOL | sat3_carrayget_dbl (SAT_OBJECT array, int row, int col, double *rpart, double *ipart) |
| Get the element of an array in double format. | |
| BOOL | sat3_carrayget_xreal (SAT_OBJECT array, int row, int col, XREAL *rpart, XREAL *ipart) |
| Get the element of an array in XREAL format. | |
| BOOL | sat3_carrayget_int (SAT_OBJECT array, int row, int col, int *rpart, int *ipart) |
| Get the element of an array in (int) format. | |
| BOOL | sat3_carrayget_llong (SAT_OBJECT array, int row, int col, LONGLONG *rpart, LONGLONG *ipart) |
| Get the element of an array in (long long) format. | |
| BOOL | sat3_carrayget_decn (SAT_OBJECT array, int row, int col, decNumber *rpart, decNumber *ipart) |
| Get the element of an array in (decNumber) format. | |
| BOOL | sat3_carraysize (SAT_OBJECT array, int *rowptr, int *colptr) |
| Get the size of a complex array object. | |
This group includes all functions used to create/convert/manipulate complex arrays.
| BOOL sat3_carrayget_dbl | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| double * | rpart, | ||
| double * | ipart | ||
| ) |
Get the element of an array in double format.
Get the element at the given row and column. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Pointer to a variable that will receive the real part. |
| ipart | Pointer to a variable that will receive the imaginary part. |
| BOOL sat3_carrayget_decn | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| decNumber * | rpart, | ||
| decNumber * | ipart | ||
| ) |
Get the element of an array in (decNumber) format.
Get the element at the given row and column. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Pointer to a variable that will receive the real part. The number must have been allocated for at least 12 digits minimum precision. |
| ipart | Pointer to a variable that will receive the imaginary part. The number must have been allocated for at least 12 digits minimum precision. |
| BOOL sat3_carrayget_int | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| int * | rpart, | ||
| int * | ipart | ||
| ) |
Get the element of an array in (int) format.
Get the element at the given row and column. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Pointer to a variable that will receive the real part. |
| ipart | Pointer to a variable that will receive the imaginary part. |
| BOOL sat3_carrayget_llong | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| LONGLONG * | rpart, | ||
| LONGLONG * | ipart | ||
| ) |
Get the element of an array in (long long) format.
Get the element at the given row and column. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Pointer to a variable that will receive the real part. |
| ipart | Pointer to a variable that will receive the imaginary part. |
| BOOL sat3_carrayget_xreal | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| XREAL * | rpart, | ||
| XREAL * | ipart | ||
| ) |
Get the element of an array in XREAL format.
Get the element at the given row and column. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Pointer to a variable that will receive the real part. |
| ipart | Pointer to a variable that will receive the imaginary part. |
| void sat3_carrayput_dbl | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| double | rpart, | ||
| double | ipart | ||
| ) |
Set the element of an array to the given value (as a double).
Set the element at the given row and column to the specified value. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Real part of the value to store. |
| ipart | Imaginary part of the value to store. |
| void sat3_carrayput_decn | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| decNumber * | rpart, | ||
| decNumber * | ipart | ||
| ) |
Set the element of an array to the given value (as decNumber's).
Set the element at the given row and column to the specified value. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| void sat3_carrayput_int | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| int | rpart, | ||
| int | ipart | ||
| ) |
Set the element of an array to the given value (as int's).
Set the element at the given row and column to the specified value. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Real part of the value to store. |
| ipart | Imaginary part of the value to store. |
| void sat3_carrayput_llong | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| LONGLONG | rpart, | ||
| LONGLONG | ipart | ||
| ) |
Set the element of an array to the given value (as long long's).
Set the element at the given row and column to the specified value. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| array | A complex array object. |
| row | Row coordinate of the element,zero-based. |
| col | Column coordinate, zero-based. |
| rpart | Real part of the value to store. |
| ipart | Imaginary part of the value to store. |
| void sat3_carrayput_xreal | ( | SAT_OBJECT | array, |
| int | row, | ||
| int | col, | ||
| XREAL * | rpart, | ||
| XREAL * | ipart | ||
| ) |
Set the element of an array to the given value (as XREAL's).
Set the element at the given row and column to the specified value. Array coordinates are zero-based, the uppermost element is (0,0). One-dimensional vectors can be treated as either column-vectors or row-vectors. Simply set the row or column coordinate to zero.
| BOOL sat3_carraysize | ( | SAT_OBJECT | array, |
| int * | rowptr, | ||
| int * | colptr | ||
| ) |
Get the size of a complex array object.
Obtain the number of rows and columns in an array object. A one-dimensional array will return 0 columns (one-dimensional arrays are treated as column vectors). A two-dimensional array with a single column will return 1 column.
| array | An array object. |
| rowptr | A pointer to an integer variable that will receive the number of rows. |
| colptr | A pointer to an integer variable that will receive the number of columns. |
| SAT_OBJECT sat3_createcarray | ( | SAT_OBJECT | where, |
| int | rows, | ||
| int | cols | ||
| ) |
Create a complex array object with the given dimensions.
Creates a new complex array of the given dimensions. To create 1-dimensional vectors set one of the dimensions to zero. If one of the dimensions is one, it creates a 2-dimensional array with one row or one column, instead of a vector. Initially, the array is filled with (0+0i).
| where | Defines where to allocate memory from. Can be one of the following constants: ALLOC_HEAP Allocates from the C-heap using malloc() ALLOC_TEMPOB Allocates memory from the TEMPOB calculator area or... it can be an element (SAT_OBJECT) within a composite object, (array, list or any other). |
| rows | Number of rows, use zero to create a one-dimensional vector. |
| cols | Number of columns, use zero to create a one-dimensional vector. |