KmlScasolverMatrixSetValue
Set or modify the matrix value.
The specified matrix value must correspond to the non-zero element structure specified when the matrix handle is created. This interface applies to scenarios where the matrix structure remains unchanged but the value changes. After the value array is updated through this interface, the original value array space can be released.
Interface Definition
C interface:
int KmlScasolverMatrixSetValue(KmlScasolverMatrix *matrix, void *values);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
matrix |
KmlScasolverMatrix * |
Matrix handle created by KmlScasolverMatrixCreate. |
Input |
values |
void * |
Matrix value array, which cannot be a null pointer. |
Input |
Return Value
Return Value |
Type |
Description |
|---|---|---|
KMLSS_NO_ERROR |
int |
Normal execution. |
KMLSS_INTERNAL_ERROR |
int |
Internal error. |
KMLSS_NULL_ARGUMENT |
int |
A null argument exists in {matrix, values}. |
Dependencies
#include "kml_scadss.h"