Exemplo n.º 1
0
 def __init__(self, lower=True, inplace=False):
     self.lower = lower
     COp.__init__(
         self, ["c_code/magma_cholesky.c"], "APPLY_SPECIFIC(magma_cholesky)"
     )
     self.inplace = inplace
     if self.inplace:
         self.destroy_map = {0: [0]}
Exemplo n.º 2
0
 def __init__(self, inplace=False):
     COp.__init__(self, "c_code/blockgemv.c", "APPLY_SPECIFIC(blockgemv)")
     self.inplace = inplace
     if self.inplace:
         self.destroy_map = {0: [0]}
Exemplo n.º 3
0
 def __init__(self, complete=True):
     self.complete = complete
     COp.__init__(self, ["c_code/magma_qr.c"], "APPLY_SPECIFIC(magma_qr)")
Exemplo n.º 4
0
 def __init__(self, inplace=False):
     COp.__init__(self, ["c_code/magma_inv.c"], "APPLY_SPECIFIC(magma_inv)")
     self.inplace = inplace
     if self.inplace:
         self.destroy_map = {0: [0]}
Exemplo n.º 5
0
 def __init__(self, full_matrices=True, compute_uv=True):
     self.full_matrices = full_matrices
     self.compute_uv = compute_uv
     COp.__init__(self, ["c_code/magma_svd.c"], "APPLY_SPECIFIC(magma_svd)")
Exemplo n.º 6
0
 def __init__(self, UPLO="L", compute_v=True):
     assert UPLO in ["L", "U"]
     self.lower = UPLO == "L"
     self.compute_v = compute_v
     COp.__init__(self, ["c_code/magma_eigh.c"], "APPLY_SPECIFIC(magma_eigh)")