Lines Matching full:array
11 PetscViewerMatlabPutArray - Puts an array into the `PETSCVIEWERMATLAB` viewer.
13 Not Collective, only processor zero saves `array`
17 . m - the first dimensions of `array`
18 . n - the second dimensions of `array`
19 . array - the array (represented in one dimension)
20 - name - the MATLAB name of `array`
25 Only writes `array` values on processor 0.
29 PetscErrorCode PetscViewerMatlabPutArray(PetscViewer mfile, int m, int n, const PetscScalar *array,… in PetscViewerMatlabPutArray() argument
38 PetscCall(PetscInfo(mfile, "Putting MATLAB array %s\n", name)); in PetscViewerMatlabPutArray()
44 PetscCall(PetscArraycpy(mxGetPr(mat), array, m * n)); in PetscViewerMatlabPutArray()
47 PetscCall(PetscInfo(mfile, "Put MATLAB array %s\n", name)); in PetscViewerMatlabPutArray()
62 PetscViewerMatlabGetArray - Gets a variable from a `PETSCVIEWERMATLAB` viewer into an array
64 Not Collective; only processor zero reads in the array
68 . m - the first dimensions of `array`
69 . n - the second dimensions of `array`
70 . array - the array (represented in one dimension), must of be length `m` * `n`
71 - name - the MATLAB name of `array`
76 Only reads in `array` values on processor 0.
80 PetscErrorCode PetscViewerMatlabGetArray(PetscViewer mfile, int m, int n, PetscScalar array[], cons… in PetscViewerMatlabGetArray() argument
89 PetscCall(PetscInfo(mfile, "Getting MATLAB array %s\n", name)); in PetscViewerMatlabGetArray()
91 PetscCheck(mat, PETSC_COMM_SELF, PETSC_ERR_LIB, "Unable to get array %s from matlab", name); in PetscViewerMatlabGetArray()
92 PetscCall(PetscArraycpy(array, mxGetPr(mat), m * n)); in PetscViewerMatlabGetArray()
93 PetscCall(PetscInfo(mfile, "Got MATLAB array %s\n", name)); in PetscViewerMatlabGetArray()
155 …the fields in the MATLAB loaded da variable give the array dimensions so you can reshape the MATLAB
175 Use `PetscViewerMatlabPutArray()` to just put an array of doubles into the .mat file