original_docstring: Makes random symmetric matrix from eigen values.
docstring: Makes random symmetric matrix from eigen values.
docstring_tokens: Makes random symmetric matrix from eigen values .
code: def make_p(lambda_):
      """Makes random symmetric matrix from eigen values."""
      N = len(lambda_)
      lambda_ = np.diag(lambda_)
      Q = _sample_orthogonal_matrix(N)
      P = np.matmul(np.matmul(Q, lambda_), Q.T)
      return P
code_tokens: def make_p ( lambda_ ) : N = len ( lambda_ ) lambda_ = np . diag ( lambda_ ) Q = _sample_orthogonal_matrix ( N ) P = np . matmul ( np . matmul ( Q , lambda_ ) , Q . T ) return P
short_docstring: Makes random symmetric matrix from eigen values.
short_docstring_tokens: Makes random symmetric matrix from eigen values .
comment: """Makes random symmetric matrix from eigen values."""