16 releases

Uses new Rust 2021

0.5.9 Mar 28, 2022
0.5.8 Mar 19, 2022
0.5.5 Feb 28, 2022
0.5.1 Jan 30, 2022
0.3.5 Jun 23, 2020

#133 in Machine learning

Download history 32/week @ 2022-08-05 15/week @ 2022-08-12 7/week @ 2022-08-19 24/week @ 2022-08-26 15/week @ 2022-09-02 30/week @ 2022-09-09 8/week @ 2022-09-16 17/week @ 2022-09-23 20/week @ 2022-09-30 16/week @ 2022-10-07 3/week @ 2022-10-14 13/week @ 2022-10-21 17/week @ 2022-10-28 51/week @ 2022-11-04 26/week @ 2022-11-11 25/week @ 2022-11-18

125 downloads per month
Used in 3 crates (2 directly)

MIT license

320KB
7K SLoC

A typeless tensor library

crates.io version License

Introduction

A typeless tensor library

Features

  • A type less tensor.
  • A set of ops for it.

Usage

Example

Dependence

install gfortran when openblas-src = "0.9" is used.


lib.rs:

A simple tensor implementation

Introduction

This is a type less tensor library with the option to use built-in operators or third-party acceleration library. Some API for tensor to implement are listed in [tensor_trait]. [typed_tensor] is an enum to cover the tensor type information for [tensor].

Currently, there are over 80 methods for [tensor].

Install

cargo install tensor-rs

Example

The following example shows a dip to using the package.

 use tensor_rs::tensor_impl::gen_tensor::*;
 let m1 = GenTensor::<f64>::new_raw(&vec![0.; 3*5*2], &vec![3,5,2]);
 assert_eq!(m1.stride(), vec![10,2,1]);

Licese

Dependencies

~1–11MB
~152K SLoC