コード例 #1
0
ファイル: blockmatrix.py プロジェクト: InSAR-invert/PyMFEM
    def __init__(self, *args):
        this = _blockmatrix.new_BlockMatrix(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

        from mfem.par import intArray
        if len(args) == 1:
            if isinstance(args[0], intArray):
                self._offsets = args[0]
        if len(args) == 2:
            if (isinstance(args[0], intArray)
                    and isinstance(args[1], intArray)):
                self._offsets = (args[0], args[1])
コード例 #2
0
ファイル: blockmatrix.py プロジェクト: mfem/PyMFEM
    def __init__(self, *args):
        r"""
        __init__(BlockMatrix self, intArray offsets) -> BlockMatrix
        __init__(BlockMatrix self, intArray row_offsets, intArray col_offsets) -> BlockMatrix
        """
        _blockmatrix.BlockMatrix_swiginit(self,
                                          _blockmatrix.new_BlockMatrix(*args))

        from mfem.par import intArray
        if len(args) == 1:
            if isinstance(args[0], intArray):
                self._offsets = args[0]
        if len(args) == 2:
            if (isinstance(args[0], intArray)
                    and isinstance(args[1], intArray)):
                self._offsets = (args[0], args[1])
コード例 #3
0
    def __init__(self, *args):
        """
        __init__(mfem::BlockMatrix self, intArray offsets) -> BlockMatrix
        __init__(mfem::BlockMatrix self, intArray row_offsets, intArray col_offsets) -> BlockMatrix
        """
        this = _blockmatrix.new_BlockMatrix(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

        from mfem.ser import intArray  
        if len(args) == 1:
           if isinstance(args[0], intArray):
               self._offsets = args[0]
        if len(args) == 2:
           if (isinstance(args[0], intArray) and
               isinstance(args[1], intArray)):
               self._offsets = (args[0], args[1])
コード例 #4
0
 def __init__(self, *args):
     this = _blockmatrix.new_BlockMatrix(*args)
     try:
         self.this.append(this)
     except Exception:
         self.this = this