Three-valued
A three-valued matrix is a matrix whose entries are independently
sampled from \(\{-1,0,1\}\).with probabilities \(\{p/2,1-p,p/2\}\).
C++ API
-
void
ThreeValued(Matrix<T> &A, Int m, Int n, double p = 2. / 3.)
-
void
ThreeValued(AbstractDistMatrix<T> &A, Int m, Int n, double p = 2. / 3.)
-
void
ThreeValued(AbstractBlockDistMatrix<T> &A, Int m, Int n, double p = 2. / 3.)
C API
-
ElError
ElThreeValued_i(ElMatrix_i A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValued_s(ElMatrix_s A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValued_d(ElMatrix_d A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValued_c(ElMatrix_c A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValued_z(ElMatrix_z A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValuedDist_i(ElDistMatrix_i A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValuedDist_s(ElDistMatrix_s A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValuedDist_d(ElDistMatrix_d A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValuedDist_c(ElDistMatrix_c A, ElInt m, ElInt n, double p)
-
ElError
ElThreeValuedDist_z(ElDistMatrix_z A, ElInt m, ElInt n, double p)
Python API
-
ThreeValued(A, m, n, p)