#include "sundials_types.h"


Go to the source code of this file.
| typedef struct _generic_N_Vector* N_Vector |
Definition at line 62 of file sundials_nvector.h.
| typedef struct _generic_N_Vector_Ops* N_Vector_Ops |
Definition at line 59 of file sundials_nvector.h.
| typedef N_Vector* N_Vector_S |
Definition at line 65 of file sundials_nvector.h.
Definition at line 92 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvabs, and _generic_N_Vector::ops.
Referenced by CVEwtSetSS(), CVEwtSetSV(), CVUpperBoundH0(), IDAEwtSetSS(), and IDAEwtSetSV().

Definition at line 104 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvaddconst, and _generic_N_Vector::ops.
Referenced by CVEwtSetSS(), and IDAEwtSetSS().
00105 { 00106 z->ops->nvaddconst(x, b, z); 00107 return; 00108 }

Definition at line 29 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvclone, and _generic_N_Vector::ops.
Referenced by CVAllocVectors(), CVodeReInit(), CVodeSetTolerances(), IDAAllocVectors(), IDACalcIC(), IDAReInit(), IDASetConstraints(), IDASetId(), IDASetTolerances(), and N_VCloneVectorArray().

Definition at line 34 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvcloneempty, and _generic_N_Vector::ops.
Referenced by N_VCloneEmptyVectorArray().
00035 { 00036 return(w->ops->nvcloneempty(w)); 00037 }

Definition at line 175 of file sundials_nvector.c.
References j, malloc(), N_VCloneEmpty(), N_VDestroyVectorArray(), and NULL.
00176 { 00177 N_Vector *vs; 00178 int j; 00179 00180 if (count <= 0) return(NULL); 00181 00182 vs = NULL; 00183 vs = (N_Vector *) malloc(count * sizeof(N_Vector)); 00184 if(vs == NULL) return(NULL); 00185 00186 for (j = 0; j < count; j++) { 00187 vs[j] = NULL; 00188 vs[j] = N_VCloneEmpty(w); 00189 if (vs[j] == NULL) { 00190 N_VDestroyVectorArray(vs, j-1); 00191 return(NULL); 00192 } 00193 } 00194 00195 return(vs); 00196 }

Definition at line 198 of file sundials_nvector.c.
References j, malloc(), N_VClone(), N_VDestroyVectorArray(), and NULL.
00199 { 00200 N_Vector *vs; 00201 int j; 00202 00203 if (count <= 0) return(NULL); 00204 00205 vs = NULL; 00206 vs = (N_Vector *) malloc(count * sizeof(N_Vector)); 00207 if(vs == NULL) return(NULL); 00208 00209 for (j = 0; j < count; j++) { 00210 vs[j] = NULL; 00211 vs[j] = N_VClone(w); 00212 if (vs[j] == NULL) { 00213 N_VDestroyVectorArray(vs, j-1); 00214 return(NULL); 00215 } 00216 } 00217 00218 return(vs); 00219 }

Definition at line 145 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvcompare, and _generic_N_Vector::ops.
Referenced by IDANls().

Definition at line 68 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvconst, and _generic_N_Vector::ops.
Referenced by cossimdaskr(), CVAdjustAdams(), CVNlsFunctional(), CVNlsNewton(), IDAGetSolution(), IDANewtonIter(), and IDAPredict().

Definition at line 156 of file sundials_nvector.c.
References booleantype, _generic_N_Vector_Ops::nvconstrmask, and _generic_N_Vector::ops.
Referenced by IDAInitialSetup(), IDALineSrch(), and IDANls().
00157 { 00158 return((booleantype) x->ops->nvconstrmask(c, x, m)); 00159 }

| void N_VDestroy | ( | N_Vector | v | ) |
Definition at line 39 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvdestroy, and _generic_N_Vector::ops.
Referenced by CVAllocVectors(), CVFreeVectors(), CVodeReInit(), CVodeSetEwtFn(), CVodeSetTolerances(), IDAAllocVectors(), IDACalcIC(), IDAFreeVectors(), IDAReInit(), IDASetConstraints(), IDASetEwtFn(), IDASetId(), IDASetTolerances(), and N_VDestroyVectorArray().

| void N_VDestroyVectorArray | ( | N_Vector * | vs, | |
| int | count | |||
| ) |
Definition at line 221 of file sundials_nvector.c.
References free(), j, N_VDestroy(), and NULL.
Referenced by N_VCloneEmptyVectorArray(), and N_VCloneVectorArray().
00222 { 00223 int j; 00224 00225 for (j = 0; j < count; j++) N_VDestroy(vs[j]); 00226 00227 free(vs); vs = NULL; 00228 00229 return; 00230 }


Definition at line 80 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvdiv, and _generic_N_Vector::ops.
Referenced by CVUpperBoundH0(), and IDANls().

Definition at line 110 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvdotprod, and _generic_N_Vector::ops.
Definition at line 51 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvgetarraypointer, and _generic_N_Vector::ops.
Referenced by CVDenseDQJac(), CVDenseSolve(), IDADenseDQJac(), IDADenseSolve(), and Jacobians().
00052 { 00053 return((realtype *) v->ops->nvgetarraypointer(v)); 00054 }

Definition at line 98 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvinv, and _generic_N_Vector::ops.
Referenced by CVEwtSetSS(), CVEwtSetSV(), CVUpperBoundH0(), IDAEwtSetSS(), and IDAEwtSetSV().

Definition at line 151 of file sundials_nvector.c.
References booleantype, _generic_N_Vector_Ops::nvinvtest, and _generic_N_Vector::ops.
00152 { 00153 return((booleantype) z->ops->nvinvtest(x, z)); 00154 }
Definition at line 140 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvl1norm, and _generic_N_Vector::ops.
Definition at line 62 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvlinearsum, and _generic_N_Vector::ops.
Referenced by CVAdjustAdams(), CVCompleteStep(), CVComputeEtaqp1(), CVDecreaseBDF(), CVDenseDQJac(), CVEwtSetSV(), CVIncreaseBDF(), CVNewtonIteration(), CVNlsFunctional(), CVodeGetDky(), CVPredict(), CVRcheck1_orig(), CVRcheck2_orig(), CVRestore(), CVUpperBoundH0(), CVYddNorm(), IDACompleteStep(), IDADenseDQJac(), IDAEwtSetSV(), IDAGetSolution(), IDANewtonIter(), IDANewy(), IDANewyyp(), IDANls(), IDAPredict(), IDARcheck1_orig(), IDARcheck2_orig(), and IDATestError().
00063 { 00064 z->ops->nvlinearsum(a, x, b, y, z); 00065 return; 00066 }

Definition at line 115 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvmaxnorm, and _generic_N_Vector::ops.
Referenced by CVUpperBoundH0(), and IDASetConstraints().

Definition at line 130 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvmin, and _generic_N_Vector::ops.
Referenced by CVEwtSetSS(), CVEwtSetSV(), CVodeMalloc(), CVodeReInit(), CVodeSetTolerances(), IDACalcIC(), IDAEwtSetSS(), IDAEwtSetSV(), IDAMalloc(), IDAReInit(), and IDASetTolerances().

Definition at line 161 of file sundials_nvector.c.
References _generic_N_Vector_Ops::nvminquotient, and _generic_N_Vector::ops.
Referenced by IDALineSrch(), and IDANls().
00162 { 00163 return((realtype) num->ops->nvminquotient(num, denom)); 00164 }

Definition at line 74 of file sundials_nvector.c<