tense

Crates.iotense
lib.rstense
version0.1.0
sourcesrc
created_at2019-12-07 23:09:29.325032
updated_at2019-12-07 23:09:29.325032
descriptionn-rank tensor calculus
homepagehttps://framagit.org/ZettaScript/rust-tense
repositoryhttps://framagit.org/ZettaScript/rust-tense
max_upload_size
id187183
size43,570
ZettaScript (ZettaScript)

documentation

https://zettascript.org/projects/rust-tense/doc/tense

README

Tense

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)
	)
);
Commit count: 0

cargo fmt