Struct mpi::datatype::UserDatatype
[−]
[src]
pub struct UserDatatype(_);
Methods
impl UserDatatype[src]
pub fn contiguous<D>(count: Count, oldtype: &D) -> UserDatatype where
D: Datatype, [src]
D: Datatype,
Constructs a new datatype by concatenating count repetitions of oldtype
Examples
See examples/contiguous.rs
Standard section(s)
4.1.2
pub fn vector<D>(
count: Count,
blocklength: Count,
stride: Count,
oldtype: &D
) -> UserDatatype where
D: Datatype, [src]
count: Count,
blocklength: Count,
stride: Count,
oldtype: &D
) -> UserDatatype where
D: Datatype,
Construct a new datatype out of count blocks of blocklength elements of oldtype
concatenated with the start of consecutive blocks placed stride elements apart.
Examples
See examples/vector.rs
Standard section(s)
4.1.2
pub fn heterogeneous_vector<D>(
count: Count,
blocklength: Count,
stride: Address,
oldtype: &D
) -> UserDatatype where
D: Datatype, [src]
count: Count,
blocklength: Count,
stride: Address,
oldtype: &D
) -> UserDatatype where
D: Datatype,
Like vector() but stride is given in bytes rather than elements of oldtype.
Standard section(s)
4.1.2
pub fn indexed<D>(
blocklengths: &[Count],
displacements: &[Count],
oldtype: &D
) -> UserDatatype where
D: Datatype, [src]
blocklengths: &[Count],
displacements: &[Count],
oldtype: &D
) -> UserDatatype where
D: Datatype,
Constructs a new type out of multiple blocks of individual length and displacement.
Block i will be blocklengths[i] items of datytpe oldtype long and displaced by
dispplacements[i] items of the oldtype.
Standard section(s)
4.1.2
pub fn heterogeneous_indexed<D>(
blocklengths: &[Count],
displacements: &[Address],
oldtype: &D
) -> UserDatatype where
D: Datatype, [src]
blocklengths: &[Count],
displacements: &[Address],
oldtype: &D
) -> UserDatatype where
D: Datatype,
Constructs a new type out of multiple blocks of individual length and displacement.
Block i will be blocklengths[i] items of datytpe oldtype long and displaced by
dispplacements[i] bytes.
Standard section(s)
4.1.2
pub fn indexed_block<D>(
blocklength: Count,
displacements: &[Count],
oldtype: &D
) -> UserDatatype where
D: Datatype, [src]
blocklength: Count,
displacements: &[Count],
oldtype: &D
) -> UserDatatype where
D: Datatype,
Construct a new type out of blocks of the same length and individual displacements.
Standard section(s)
4.1.2
pub fn heterogeneous_indexed_block<D>(
blocklength: Count,
displacements: &[Address],
oldtype: &D
) -> UserDatatype where
D: Datatype, [src]
blocklength: Count,
displacements: &[Address],
oldtype: &D
) -> UserDatatype where
D: Datatype,
Construct a new type out of blocks of the same length and individual displacements. Displacements are in bytes.
Standard section(s)
4.1.2
pub fn structured(
count: Count,
blocklengths: &[Count],
displacements: &[Address],
types: &[&Datatype<Raw = MPI_Datatype>]
) -> UserDatatype[src]
count: Count,
blocklengths: &[Count],
displacements: &[Address],
types: &[&Datatype<Raw = MPI_Datatype>]
) -> UserDatatype
Constructs a new datatype out of blocks of different length, displacement and datatypes
Examples
See examples/structured.rs
Standard section(s)
4.1.2