Skip to content

Commit

Permalink
Merge pull request #70 from termoshtt/random_hermite
Browse files Browse the repository at this point in the history
Drop c_order flag from generate::random_hermite
  • Loading branch information
termoshtt committed Aug 22, 2017
2 parents 7529766 + 2f52e7d commit ad7624e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ where
}

/// Random Hermite matrix
pub fn random_hermite<A, S>(n: usize, c_order: bool) -> ArrayBase<S, Ix2>
pub fn random_hermite<A, S>(n: usize) -> ArrayBase<S, Ix2>
where
A: RandNormal + Conjugate + Add<Output = A>,
S: DataOwned<Elem = A> + DataMut,
{
let mut a = if c_order {
random((n, n))
} else {
random((n, n).f())
};
let mut a = random((n, n));
for i in 0..n {
a[(i, i)] = a[(i, i)] + Conjugate::conj(a[(i, i)]);
for j in (i + 1)..n {
Expand Down

0 comments on commit ad7624e

Please sign in to comment.