Skip to content

Commit

Permalink
renamed new_sorted to new_from_unsorted
Browse files Browse the repository at this point in the history
  • Loading branch information
mulimoen committed Jan 25, 2021
1 parent 06a5c06 commit 6e3888e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/sorting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn create_csmat_from_unsorted(bench: &mut Bencher) {
let mut rng = rand::rngs::SmallRng::seed_from_u64(42);
indices.shuffle(&mut rng);
let values = values.clone();
let _v = CsVec::new_sorted(N, indices, values).unwrap();
let _v = CsVec::new_from_unsorted(N, indices, values).unwrap();
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/sparse/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ where
/// Creates a sparse vector
///
/// Will sort indices and data if necessary
pub fn new_sorted(
pub fn new_from_unsorted(
n: usize,
indices: IStorage,
data: DStorage,
Expand Down

0 comments on commit 6e3888e

Please sign in to comment.