Function CreateL¶
- Defined in File bigfeta_dist.h
Function Documentation¶
-
PetscErrorCode
CreateL
(MPI_Comm COMM, char indexname[], PetscInt local_nrow, PetscInt global_nrow, PetscBool trunc, Mat *L)¶ Creates a diagonal matrix with the weights as the entries.
- Parameters
COMM
: The MPI communicator, PETSC_COMM_SELF.Alocal_nrow
: Number of rows for this ranklocal_row0
: The starting row for this rank.global_nrow
: The total length of the weights vector (N). L is NxN.*L
: The matrix created by this function.