16 releases

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

#367 in Machine learning

Download history 10/week @ 2024-02-23 12/week @ 2024-03-01 9/week @ 2024-03-08 14/week @ 2024-03-15 7/week @ 2024-03-22 23/week @ 2024-03-29 9/week @ 2024-04-05

54 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