COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
carmaWrap.obj_double Class Reference
Collaboration diagram for carmaWrap.obj_double:

Public Member Functions

None __init__ (self, context context, numpy.ndarray[numpy.float64] h_data)
 TODO. More...
 
None __init__ (self, context context, obj_double d_data)
 
str __repr__ (self)
 
int add_stream (self)
 TODO. More...
 
int add_stream (self, int np)
 
int aimax (self, int incx=1)
 TODO. More...
 
int aimin (self, int incx=1)
 TODO. More...
 
float asum (self, int incx=1)
 TODO. More...
 
None axpy (self, float alpha, obj_double source, int incx=1, int incy=1, int offset=0)
 TODO. More...
 
None clip (self, float data_min, float data_max)
 TODO. More...
 
None copy (self, obj_double arg0, int arg1, int arg2)
 TODO. More...
 
None copy_from (self, obj_double data, int nb_elem=-1)
 TODO. More...
 
None copy_into (self, obj_double dest, int nb_elem=-1)
 TODO. More...
 
int del_stream (self)
 TODO. More...
 
int del_stream (self, int np)
 
int destroy_prng (self)
 
int destroy_prng_host (self)
 
None device2host (self, numpy.ndarray[numpy.float64] data)
 TODO. More...
 
obj_double dgmm (self, obj_double vectX, float alpha=1, str side='r', obj_double matC=None, int incx=1)
 this method performs one of the matrix‐marix operations matC = diag(vectX)*matA if side='l' More...
 
float dot (self, obj_double source, int incx=1, int incy=1)
 TODO. More...
 
None fft (self, obj_double dest=None, int direction=1)
 
obj_double geam (self, obj_double matB, str opA='N', str opB='N', float alpha=1, obj_double matC=None, float beta=0)
 this method performs the symmetric rank- k update More...
 
obj_double gemm (self, obj_double matB, str op_a='N', str op_b='N', float alpha=1, obj_double matC=None, float beta=0)
 this method performs one of the matrix‐marix operations matC = alpha * op_a(matA) * op_b(matB) + beta * matC More...
 
obj_double gemv (self, obj_double vectx, float alpha=1, str op='N', obj_double vecty=None, float beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty More...
 
obj_double ger (self, obj_double vecty, obj_double mat=None, float alpha=1)
 this method performs the symmetric rank 1 operation A = alpha * x * y T + A More...
 
None host2device (self, numpy.ndarray[numpy.float64] data)
 TODO. More...
 
int init_prng (self)
 
int init_prng (self, int arg0)
 
int init_prng_host (self, int arg0)
 
None init_reduceCub (self)
 TODO. More...
 
bool is_rng_init (self)
 
obj_double magma_gemv (self, obj_double vectx, float alpha=1, str op='N', obj_double vecty=None, float beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty More...
 
float nrm2 (self, int incx=1)
 TODO. More...
 
int prng (self, float arg0, str arg1, float arg2, float arg3)
 
int prng (self, float arg0, str arg1, float arg2)
 
int prng (self, str arg0, float arg1, float arg2)
 
int prng (self, str arg0, float arg1)
 
int prng (self, str arg0)
 
int prng_host (self, str arg0)
 
int prng_host (self, str arg0, float arg1)
 
int prng_host (self, str arg0, float arg1, float arg2)
 
int prng_montagn (self, float arg0)
 
None random (self, int seed=1234, str j='U')
 
None random_host (self, int seed=1234, str j='U')
 
None reduceCub (self)
 TODO. More...
 
int reset (self)
 TODO. More...
 
None rot (self, obj_double arg0, int arg1, int arg2, float arg3, float arg4)
 TODO. More...
 
None scale (self, float scale, int incx=1)
 TODO. More...
 
float sum (self)
 TODO. More...
 
None swap (self, obj_double source, int incx=1, int incy=1)
 TODO. More...
 
None swap_ptr (self, obj_double ptr)
 TODO. More...
 
obj_double symm (self, obj_double matB, float alpha=1, obj_double matC=None, float beta=0, str side='l', str uplo='u')
 this method performs one of the matrix‐marix operations matC = alpha * matA * matB + beta * C More...
 
obj_double symv (self, obj_double vectx, float alpha=1, str uplo='l', obj_double vecty=None, float beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * mat * vectx + beta * vecty More...
 
obj_double syrk (self, str fill='U', str op='N', float alpha=1, obj_double matC=None, float beta=0)
 this method performs the symmetric rank- k update More...
 
obj_double syrkx (self, obj_double matB, str fill='U', str op='N', float alpha=1, obj_double matC=None, float beta=0)
 this method performs the symmetric rank- k update More...
 
object to_cupy (self)
 TODO. More...
 
int transpose (self, obj_double source)
 TODO. More...
 
int wait_all_streams (self)
 TODO. More...
 
int wait_stream (self, int steam)
 TODO. More...
 

Properties

 context = property
 TODO. More...
 
 d_ptr = property
 TODO. More...
 
 device = property
 TODO. More...
 
 nbElem = property
 TODO. More...
 
 nb_streams = property
 TODO. More...
 
 o_data = property
 TODO. More...
 
 shape = property
 TODO. More...
 

Detailed Description

Definition at line 409 of file carmaWrap.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None carmaWrap.obj_double.__init__ (   self,
context  context,
numpy.ndarray[numpy.float64]  h_data 
)

TODO.

   TODO

Definition at line 416 of file carmaWrap.py.

Here is the caller graph for this function:

◆ __init__() [2/2]

None carmaWrap.obj_double.__init__ (   self,
context  context,
obj_double  d_data 
)

Definition at line 418 of file carmaWrap.py.

Here is the call graph for this function:

Member Function Documentation

◆ __repr__()

str carmaWrap.obj_double.__repr__ (   self)

Definition at line 419 of file carmaWrap.py.

◆ add_stream() [1/2]

int carmaWrap.obj_double.add_stream (   self)

TODO.

   TODO

Definition at line 426 of file carmaWrap.py.

Here is the caller graph for this function:

◆ add_stream() [2/2]

int carmaWrap.obj_double.add_stream (   self,
int  np 
)

Definition at line 428 of file carmaWrap.py.

Here is the call graph for this function:

◆ aimax()

int carmaWrap.obj_double.aimax (   self,
int   incx = 1 
)

TODO.

Definition at line 432 of file carmaWrap.py.

◆ aimin()

int carmaWrap.obj_double.aimin (   self,
int   incx = 1 
)

TODO.

Definition at line 436 of file carmaWrap.py.

◆ asum()

float carmaWrap.obj_double.asum (   self,
int   incx = 1 
)

TODO.

Definition at line 440 of file carmaWrap.py.

◆ axpy()

None carmaWrap.obj_double.axpy (   self,
float  alpha,
obj_double  source,
int   incx = 1,
int   incy = 1,
int   offset = 0 
)

TODO.

Definition at line 444 of file carmaWrap.py.

◆ clip()

None carmaWrap.obj_double.clip (   self,
float  data_min,
float  data_max 
)

TODO.

Definition at line 448 of file carmaWrap.py.

◆ copy()

None carmaWrap.obj_double.copy (   self,
obj_double  arg0,
int  arg1,
int  arg2 
)

TODO.

Definition at line 452 of file carmaWrap.py.

◆ copy_from()

None carmaWrap.obj_double.copy_from (   self,
obj_double  data,
int   nb_elem = -1 
)

TODO.

Definition at line 456 of file carmaWrap.py.

◆ copy_into()

None carmaWrap.obj_double.copy_into (   self,
obj_double  dest,
int   nb_elem = -1 
)

TODO.

Definition at line 460 of file carmaWrap.py.

◆ del_stream() [1/2]

int carmaWrap.obj_double.del_stream (   self)

TODO.

   TODO

Definition at line 467 of file carmaWrap.py.

Here is the caller graph for this function:

◆ del_stream() [2/2]

int carmaWrap.obj_double.del_stream (   self,
int  np 
)

Definition at line 469 of file carmaWrap.py.

Here is the call graph for this function:

◆ destroy_prng()

int carmaWrap.obj_double.destroy_prng (   self)

Definition at line 470 of file carmaWrap.py.

◆ destroy_prng_host()

int carmaWrap.obj_double.destroy_prng_host (   self)

Definition at line 471 of file carmaWrap.py.

◆ device2host()

None carmaWrap.obj_double.device2host (   self,
numpy.ndarray[numpy.float64]  data 
)

TODO.

Definition at line 475 of file carmaWrap.py.

◆ dgmm()

obj_double carmaWrap.obj_double.dgmm (   self,
obj_double  vectX,
float   alpha = 1,
str   side = 'r',
obj_double   matC = None,
int   incx = 1 
)

this method performs one of the matrix‐marix operations matC = diag(vectX)*matA if side='l'

Definition at line 479 of file carmaWrap.py.

◆ dot()

float carmaWrap.obj_double.dot (   self,
obj_double  source,
int   incx = 1,
int   incy = 1 
)

TODO.

Definition at line 483 of file carmaWrap.py.

◆ fft()

None carmaWrap.obj_double.fft (   self,
obj_double   dest = None,
int   direction = 1 
)

Definition at line 484 of file carmaWrap.py.

◆ geam()

obj_double carmaWrap.obj_double.geam (   self,
obj_double  matB,
str   opA = 'N',
str   opB = 'N',
float   alpha = 1,
obj_double   matC = None,
float   beta = 0 
)

this method performs the symmetric rank- k update

Definition at line 488 of file carmaWrap.py.

◆ gemm()

obj_double carmaWrap.obj_double.gemm (   self,
obj_double  matB,
str   op_a = 'N',
str   op_b = 'N',
float   alpha = 1,
obj_double   matC = None,
float   beta = 0 
)

this method performs one of the matrix‐marix operations matC = alpha * op_a(matA) * op_b(matB) + beta * matC

Definition at line 492 of file carmaWrap.py.

◆ gemv()

obj_double carmaWrap.obj_double.gemv (   self,
obj_double  vectx,
float   alpha = 1,
str   op = 'N',
obj_double   vecty = None,
float   beta = 0 
)

this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty

Definition at line 496 of file carmaWrap.py.

◆ ger()

obj_double carmaWrap.obj_double.ger (   self,
obj_double  vecty,
obj_double   mat = None,
float   alpha = 1 
)

this method performs the symmetric rank 1 operation A = alpha * x * y T + A

Definition at line 500 of file carmaWrap.py.

◆ host2device()

None carmaWrap.obj_double.host2device (   self,
numpy.ndarray[numpy.float64]  data 
)

TODO.

Definition at line 504 of file carmaWrap.py.

◆ init_prng() [1/2]

int carmaWrap.obj_double.init_prng (   self)

Definition at line 506 of file carmaWrap.py.

Here is the caller graph for this function:

◆ init_prng() [2/2]

int carmaWrap.obj_double.init_prng (   self,
int  arg0 
)

Definition at line 508 of file carmaWrap.py.

Here is the call graph for this function:

◆ init_prng_host()

int carmaWrap.obj_double.init_prng_host (   self,
int  arg0 
)

Definition at line 509 of file carmaWrap.py.

◆ init_reduceCub()

None carmaWrap.obj_double.init_reduceCub (   self)

TODO.

Definition at line 513 of file carmaWrap.py.

◆ is_rng_init()

bool carmaWrap.obj_double.is_rng_init (   self)

Definition at line 514 of file carmaWrap.py.

◆ magma_gemv()

obj_double carmaWrap.obj_double.magma_gemv (   self,
obj_double  vectx,
float   alpha = 1,
str   op = 'N',
obj_double   vecty = None,
float   beta = 0 
)

this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty

Definition at line 518 of file carmaWrap.py.

◆ nrm2()

float carmaWrap.obj_double.nrm2 (   self,
int   incx = 1 
)

TODO.

Definition at line 522 of file carmaWrap.py.

◆ prng() [1/5]

int carmaWrap.obj_double.prng (   self,
float  arg0,
str  arg1,
float  arg2 
)

Definition at line 526 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [2/5]

int carmaWrap.obj_double.prng (   self,
float  arg0,
str  arg1,
float  arg2,
float  arg3 
)

Definition at line 524 of file carmaWrap.py.

Here is the caller graph for this function:

◆ prng() [3/5]

int carmaWrap.obj_double.prng (   self,
str  arg0 
)

Definition at line 532 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [4/5]

int carmaWrap.obj_double.prng (   self,
str  arg0,
float  arg1 
)

Definition at line 530 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [5/5]

int carmaWrap.obj_double.prng (   self,
str  arg0,
float  arg1,
float  arg2 
)

Definition at line 528 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_host() [1/3]

int carmaWrap.obj_double.prng_host (   self,
str  arg0 
)

Definition at line 534 of file carmaWrap.py.

Here is the caller graph for this function:

◆ prng_host() [2/3]

int carmaWrap.obj_double.prng_host (   self,
str  arg0,
float  arg1 
)

Definition at line 536 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_host() [3/3]

int carmaWrap.obj_double.prng_host (   self,
str  arg0,
float  arg1,
float  arg2 
)

Definition at line 538 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_montagn()

int carmaWrap.obj_double.prng_montagn (   self,
float  arg0 
)

Definition at line 539 of file carmaWrap.py.

◆ random()

None carmaWrap.obj_double.random (   self,
int   seed = 1234,
str   j = 'U' 
)

Definition at line 540 of file carmaWrap.py.

◆ random_host()

None carmaWrap.obj_double.random_host (   self,
int   seed = 1234,
str   j = 'U' 
)

Definition at line 541 of file carmaWrap.py.

◆ reduceCub()

None carmaWrap.obj_double.reduceCub (   self)

TODO.

Definition at line 545 of file carmaWrap.py.

◆ reset()

int carmaWrap.obj_double.reset (   self)

TODO.

Definition at line 549 of file carmaWrap.py.

◆ rot()

None carmaWrap.obj_double.rot (   self,
obj_double  arg0,
int  arg1,
int  arg2,
float  arg3,
float  arg4 
)

TODO.

Definition at line 553 of file carmaWrap.py.

◆ scale()

None carmaWrap.obj_double.scale (   self,
float  scale,
int   incx = 1 
)

TODO.

Definition at line 557 of file carmaWrap.py.

◆ sum()

float carmaWrap.obj_double.sum (   self)

TODO.

Definition at line 561 of file carmaWrap.py.

◆ swap()

None carmaWrap.obj_double.swap (   self,
obj_double  source,
int   incx = 1,
int   incy = 1 
)

TODO.

Definition at line 565 of file carmaWrap.py.

◆ swap_ptr()

None carmaWrap.obj_double.swap_ptr (   self,
obj_double  ptr 
)

TODO.

Definition at line 569 of file carmaWrap.py.

◆ symm()

obj_double carmaWrap.obj_double.symm (   self,
obj_double  matB,
float   alpha = 1,
obj_double   matC = None,
float   beta = 0,
str   side = 'l',
str   uplo = 'u' 
)

this method performs one of the matrix‐marix operations matC = alpha * matA * matB + beta * C

Definition at line 573 of file carmaWrap.py.

◆ symv()

obj_double carmaWrap.obj_double.symv (   self,
obj_double  vectx,
float   alpha = 1,
str   uplo = 'l',
obj_double   vecty = None,
float   beta = 0 
)

this method performs one of the matrix‐vector operations vecty = alpha * mat * vectx + beta * vecty

Definition at line 577 of file carmaWrap.py.

◆ syrk()

obj_double carmaWrap.obj_double.syrk (   self,
str   fill = 'U',
str   op = 'N',
float   alpha = 1,
obj_double   matC = None,
float   beta = 0 
)

this method performs the symmetric rank- k update

Definition at line 581 of file carmaWrap.py.

◆ syrkx()

obj_double carmaWrap.obj_double.syrkx (   self,
obj_double  matB,
str   fill = 'U',
str   op = 'N',
float   alpha = 1,
obj_double   matC = None,
float   beta = 0 
)

this method performs the symmetric rank- k update

Definition at line 585 of file carmaWrap.py.

◆ to_cupy()

object carmaWrap.obj_double.to_cupy (   self)

TODO.

Definition at line 589 of file carmaWrap.py.

◆ transpose()

int carmaWrap.obj_double.transpose (   self,
obj_double  source 
)

TODO.

Definition at line 593 of file carmaWrap.py.

◆ wait_all_streams()

int carmaWrap.obj_double.wait_all_streams (   self)

TODO.

Definition at line 597 of file carmaWrap.py.

◆ wait_stream()

int carmaWrap.obj_double.wait_stream (   self,
int  steam 
)

TODO.

Definition at line 601 of file carmaWrap.py.

Property Documentation

◆ context

carmaWrap.obj_double.context = property
static

TODO.

   @n type of :  context

Definition at line 608 of file carmaWrap.py.

◆ d_ptr

carmaWrap.obj_double.d_ptr = property
static

TODO.

   @n type of :  int

Definition at line 617 of file carmaWrap.py.

◆ device

carmaWrap.obj_double.device = property
static

TODO.

   @n type of :  int

Definition at line 626 of file carmaWrap.py.

◆ nb_streams

carmaWrap.obj_double.nb_streams = property
static

TODO.

   @n type of :  int

Definition at line 644 of file carmaWrap.py.

◆ nbElem

carmaWrap.obj_double.nbElem = property
static

TODO.

   @n type of :  int

Definition at line 635 of file carmaWrap.py.

◆ o_data

carmaWrap.obj_double.o_data = property
static

TODO.

   @n type of :  float

Definition at line 653 of file carmaWrap.py.

◆ shape

carmaWrap.obj_double.shape = property
static

TODO.

   @n type of :  numpy.ndarray[numpy.int64]

Definition at line 662 of file carmaWrap.py.


The documentation for this class was generated from the following file: