コード例 #1
0
    def __init__(self, *args):
        this = _array.new_doubleArray(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

        if len(args) == 1 and isinstance(args[0], list):
            self.MakeDataOwner()
コード例 #2
0
    def __init__(self, *args):
        r"""
        __init__(doubleArray self, int asize=0) -> doubleArray
        __init__(doubleArray self, double * _data) -> doubleArray
        __init__(doubleArray self, doubleArray src) -> doubleArray
        """
        _array.doubleArray_swiginit(self, _array.new_doubleArray(*args))

        if len(args) == 1 and isinstance(args[0], list):
            self.MakeDataOwner()
コード例 #3
0
 def __init__(self, *args):
     this = _array.new_doubleArray(*args)
     try:
         self.this.append(this)
     except Exception:
         self.this = this