Crates.io | tense |
lib.rs | tense |
version | 0.1.0 |
source | src |
created_at | 2019-12-07 23:09:29.325032 |
updated_at | 2019-12-07 23:09:29.325032 |
description | n-rank tensor calculus |
homepage | https://framagit.org/ZettaScript/rust-tense |
repository | https://framagit.org/ZettaScript/rust-tense |
max_upload_size | |
id | 187183 |
size | 43,570 |
This crate provides traits, struct, macro for n-rank tensor calculus. It can handle tensors such as scalars, vectors, matrices, etc.
assert_eq!(
tense!(tense!(0, 1, 4), tense!(42, 12, 7), tense!(10, 20, -100))
+ tense!(tense!(5, 2, 4), tense!(42, 12, 7), tense!(10, 20, -100))
+ tense!(tense!(1000)),
tense!(
tense!(1005, 1003, 1008),
tense!(1084, 1024, 1014),
tense!(1020, 1040, 800)
)
);