Skip to content

Commit 5498897

Browse files
committed
Deprecate SingleTensor and DoubleTensor
I think for now it's better to be explicit and then we can revisit the need for this in the long term.
1 parent f575d75 commit 5498897

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ despite these frequent breaking changes.
1010
Released: TBD
1111
* Added `RandomState::shuffle`
1212
* Re-exports more functions to global namespace
13+
* Deprecated `SingleTensor` and `DoubleTensor` (they will be removed)
1314

1415
## 0.1.4
1516
Released: 2016-09-22

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub mod io;
1919

2020
// Lift commonly used functions into the numeric namespace
2121
pub use tensor::{Tensor, AxisIndex, Ellipsis, StridedSlice, Index, Full, NewAxis};
22-
pub use tensor::{SingleTensor, DoubleTensor};
2322

2423
pub use math::{log, ln, log10, log2, sin, cos, tan, asin, acos, atan, exp_m1, exp, exp2,
2524
ln_1p, sinh, cosh, tanh, asinh, acosh, atanh, atan2, sqrt,

src/tensor/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ impl<T: TensorTrait> Iterator for TensorIterator<T> {
9393
// Common type-specific tensors
9494

9595
/// Type alias for `Tensor<f64>`
96+
#[deprecated(since="0.1.5", note="please use Tensor<f64> instead")]
9697
pub type DoubleTensor = Tensor<f64>;
9798

9899
/// Type alias for `Tensor<f32>`
100+
#[deprecated(since="0.1.5", note="please use Tensor<f32> instead")]
99101
pub type SingleTensor = Tensor<f32>;
100102

101103
/// Used for advanced slicing of a `Tensor`.

0 commit comments

Comments
 (0)