Skip to content

Commit ad7624e

Browse files
authored
Merge pull request #70 from termoshtt/random_hermite
Drop c_order flag from generate::random_hermite
2 parents 7529766 + 2f52e7d commit ad7624e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/generate.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@ where
3535
}
3636

3737
/// Random Hermite matrix
38-
pub fn random_hermite<A, S>(n: usize, c_order: bool) -> ArrayBase<S, Ix2>
38+
pub fn random_hermite<A, S>(n: usize) -> ArrayBase<S, Ix2>
3939
where
4040
A: RandNormal + Conjugate + Add<Output = A>,
4141
S: DataOwned<Elem = A> + DataMut,
4242
{
43-
let mut a = if c_order {
44-
random((n, n))
45-
} else {
46-
random((n, n).f())
47-
};
43+
let mut a = random((n, n));
4844
for i in 0..n {
4945
a[(i, i)] = a[(i, i)] + Conjugate::conj(a[(i, i)]);
5046
for j in (i + 1)..n {

0 commit comments

Comments
 (0)