Matrix Maps

class NTPolySwig.MatrixMapper

This class is used to apply an operation to each element in the matrix.

static Map(*args)
Overload 1:

Given a distributed matrix, apply this procedure to each element (real).:type inmat: Matrix_ps

Parameters:
  • inmat – the matrix to apply the procedure to.:type outmat: Matrix_ps

  • outmat – the matrix where each element has had proc called on it.:type proc: RealOperation

  • proc – the procedure to apply.


Overload 2:

Given a distributed matrix, apply this procedure to each element (cmplx).:type inmat: Matrix_ps

Parameters:
  • inmat – the matrix to apply the procedure to.:type outmat: Matrix_ps

  • outmat – the matrix where each element has had proc called on it.:type proc: ComplexOperation

  • proc – the procedure to apply.

property thisown

The membership flag

class NTPolySwig.RealOperation

A function object defining an operation on a real triplet list.

property data

When an operation is performed, this is the data to modify.

property thisown

The membership flag

class NTPolySwig.ComplexOperation

A function object defining an operation on a complex triplet list.

property data

When an operation is performed, this is the data to modify.

property thisown

The membership flag