An MPI operation

Used with the reduce method.

See http://www.mpi-forum.org/docs/mpi-1.1/mpi-11-html/node78.html

Introduced properties

init band: Op

mpi :: Op :: band

Get a MPI bit-wise and operation.
init bor: Op

mpi :: Op :: bor

Get a MPI bit-wise or operation.
init bxor: Op

mpi :: Op :: bxor

Get a MPI bit-wise xor operation.
init land: Op

mpi :: Op :: land

Get a MPI logical and operation.
init lor: Op

mpi :: Op :: lor

Get a MPI logical or operation.
init lxor: Op

mpi :: Op :: lxor

Get a MPI logical xor operation.
init max: Op

mpi :: Op :: max

Get a MPI maximum operation.
init maxloc: Op

mpi :: Op :: maxloc

Get a MPI maxloc operation.
init min: Op

mpi :: Op :: min

Get a MPI minimum operation.
init minloc: Op

mpi :: Op :: minloc

Get a MPI minloc operation.
init op_null: Op

mpi :: Op :: op_null

Get a MPI null operation.
init prod: Op

mpi :: Op :: prod

Get a MPI product operation.
init replace: Op

mpi :: Op :: replace

Get a MPI replace operation.
init sum: Op

mpi :: Op :: sum

Get a MPI sum operation.

Redefined properties

redef type SELF: Op

mpi $ Op :: SELF

Type of this instance, automatically specialized in every class

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
fun address_is_null: Bool

core :: Pointer :: address_is_null

Is the address behind this Object at NULL?
init band: Op

mpi :: Op :: band

Get a MPI bit-wise and operation.
init bor: Op

mpi :: Op :: bor

Get a MPI bit-wise or operation.
init bxor: Op

mpi :: Op :: bxor

Get a MPI bit-wise xor operation.
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
fun free

core :: Pointer :: free

Free the memory pointed by this pointer
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
init land: Op

mpi :: Op :: land

Get a MPI logical and operation.
init lor: Op

mpi :: Op :: lor

Get a MPI logical or operation.
init lxor: Op

mpi :: Op :: lxor

Get a MPI logical xor operation.
init max: Op

mpi :: Op :: max

Get a MPI maximum operation.
init maxloc: Op

mpi :: Op :: maxloc

Get a MPI maxloc operation.
init min: Op

mpi :: Op :: min

Get a MPI minimum operation.
init minloc: Op

mpi :: Op :: minloc

Get a MPI minloc operation.
init nul: Pointer

core :: Pointer :: nul

C NULL pointer
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
init op_null: Op

mpi :: Op :: op_null

Get a MPI null operation.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
init prod: Op

mpi :: Op :: prod

Get a MPI product operation.
init replace: Op

mpi :: Op :: replace

Get a MPI replace operation.
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
init sum: Op

mpi :: Op :: sum

Get a MPI sum operation.
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
package_diagram mpi::Op Op core::Pointer Pointer mpi::Op->core::Pointer core::Object Object core::Pointer->core::Object ...core::Object ... ...core::Object->core::Object

Ancestors

interface Object

core :: Object

The root of the class hierarchy.

Parents

extern class Pointer

core :: Pointer

Pointer classes are used to manipulate extern C structures.

Class definitions

mpi $ Op
# An MPI operation
#
# Used with the `reduce` method.
#
# See <http://www.mpi-forum.org/docs/mpi-1.1/mpi-11-html/node78.html>
extern class Op `{ MPI_Op `}
	# Get a MPI null operation.
	new op_null `{ return MPI_OP_NULL; `}

	# Get a MPI maximum operation.
	new max `{ return MPI_MAX; `}

	# Get a MPI minimum operation.
	new min `{ return MPI_MIN; `}

	# Get a MPI sum operation.
	new sum `{ return MPI_SUM; `}

	# Get a MPI product operation.
	new prod `{ return MPI_PROD; `}

	# Get a MPI logical and operation.
	new land `{ return MPI_LAND; `}

	# Get a MPI bit-wise and operation.
	new band `{ return MPI_BAND; `}

	# Get a MPI logical or operation.
	new lor `{ return MPI_LOR; `}

	# Get a MPI bit-wise or operation.
	new bor `{ return MPI_BOR; `}

	# Get a MPI logical xor operation.
	new lxor `{ return MPI_LXOR; `}

	# Get a MPI bit-wise xor operation.
	new bxor `{ return MPI_BXOR; `}

	# Get a MPI minloc operation.
	#
	# Used to compute a global minimum and also an index attached
	# to the minimum value.
	#
	# See <http://www.mpi-forum.org/docs/mpi-1.1/mpi-11-html/node79.html#Node79>
	new minloc `{ return MPI_MINLOC; `}

	# Get a MPI maxloc operation.
	#
	# Used to compute a global maximum and also an index attached
	# to the maximum value.
	#
	# See <http://www.mpi-forum.org/docs/mpi-1.1/mpi-11-html/node79.html#Node79>
	new maxloc `{ return MPI_MAXLOC; `}

	# Get a MPI replace operation.
	new replace `{ return MPI_REPLACE; `}
end
lib/mpi/mpi.nit:263,1--320,3