Exemplo n.º 1
0
    def __init__(self,
                 Op_Real,
                 Op_Imag,
                 ownReal=False,
                 ownImag=False,
                 hermitan=True):
        """
        __init__(mfem::ComplexOperator self, Operator Op_Real, Operator Op_Imag, bool ownReal=False, bool ownImag=False, bool hermitan=True) -> ComplexOperator
        __init__(mfem::ComplexOperator self, Operator Op_Real, Operator Op_Imag, bool ownReal=False, bool ownImag=False) -> ComplexOperator
        __init__(mfem::ComplexOperator self, Operator Op_Real, Operator Op_Imag, bool ownReal=False) -> ComplexOperator
        __init__(mfem::ComplexOperator self, Operator Op_Real, Operator Op_Imag) -> ComplexOperator
        """

        self._parts = [Op_Real, Op_Imag]
        if ownReal:
            assert Op_Real.thisown != 0, "Real Op is not owned by passed object"
            Op_Real.thisown = 0
        if ownImag:
            assert Op_Real.thisown != 0, "Imag Op is not owned by passed object"
            Op_Imag.thisown = 0

        this = _complex_operator.new_ComplexOperator(Op_Real, Op_Imag, ownReal,
                                                     ownImag, hermitan)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
Exemplo n.º 2
0
    def __init__(self,
                 Op_Real,
                 Op_Imag,
                 ownReal=False,
                 ownImag=False,
                 hermitan=True):
        r"""__init__(ComplexOperator self, Operator Op_Real, Operator Op_Imag, bool ownReal=False, bool ownImag=False, bool hermitan=True) -> ComplexOperator"""

        self._parts = [Op_Real, Op_Imag]
        if ownReal:
            assert Op_Real.thisown != 0, "Real Op is not owned by passed object"
            Op_Real.thisown = 0
        if ownImag:
            assert Op_Real.thisown != 0, "Imag Op is not owned by passed object"
            Op_Imag.thisown = 0

        _complex_operator.ComplexOperator_swiginit(
            self,
            _complex_operator.new_ComplexOperator(Op_Real, Op_Imag, ownReal,
                                                  ownImag, hermitan))