Hi,
I was using magmablas_zlaset_identity to create an identity matrix on GPU. I can't find it in MAGMA 1.5.0. Can you suggest an alternative that is present in the newest version?
Thanks,
Harshad
zlaset_identity
Re: zlaset_identity
We updated the laset interface to match LAPACK's laset, with offdiag (alpha) and diag (beta).
In real arithmetic the constants can be inline:
This is a lot more flexible. You can set the full matrix or only the upper or lower triangle, set to any multiple of the identity, etc. See documentation:
http://icl.cs.utk.edu/projectsfiles/mag ... a6072a47ed
-mark
Code: Select all
c_zero = MAGMA_Z_ZERO;
c_one = MAGMA_Z_ONE;
magmabas_zlaset( MagmaFull, m, n, c_zero, c_one, dA, ldda ); // set to identity
Code: Select all
magmabas_dlaset( MagmaFull, m, n, 0, 1, dA, ldda ); // set to identity
http://icl.cs.utk.edu/projectsfiles/mag ... a6072a47ed
-mark