Skip to content

Commit

Permalink
fixed project
Browse files Browse the repository at this point in the history
  • Loading branch information
liborty committed May 3, 2024
1 parent bd1833e commit 8f216a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rstats"
version = "2.1.1"
version = "2.1.2"
authors = ["Libor Spacek"]
edition = "2021"
description = "Statistics, Information Measures, Data Analysis, Linear Algebra, Clifford Algebra, Machine Learning, Geometric Median, Matrix Decompositions, PCA, Mahalanobis Distance, Hulls, Multithreading.."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Methods which take an additional generic vector argument, such as a vector of we

## Appendix: Recent Releases

* **Version 2.1.1** - Added function `project` to project a `TriangMat` to a lower dimensional space of selected dimensions. Removed `rows` which was a duplicate of `dim`.
* **Version 2.1.2** - Added function `project` to project a `TriangMat` to a lower dimensional space of selected dimensions. Removed `rows` which was a duplicate of `dim`.

* **Version 2.1.0** - Changed the type of `mid` argument to covariance methods from U -> f64, making the normal expectation for the type of precise geometric medians explicit. Accordingly, moved `covar` and `serial_covar` from trait `VecVecg` to `VecVec`. This might potentially require changing some `use` declarations in your code.

Expand Down
2 changes: 1 addition & 1 deletion src/triangmat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl TriangMat {
for &row_idx in index {
let row = self.row(row_idx);
for &column_idx in index {
if column_idx > row.len() { break; };
if column_idx >= row.len() { break; };
res.push(row[column_idx]);
};
};
Expand Down

0 comments on commit 8f216a6

Please sign in to comment.