th-rust 0.1.0

ThRust is a software framework for thermodynamic and probabilistic computing.
Documentation
1
2
3
4
5
6
7
8
9
10
use na::DMatrix;

use crate::pbit::GridPbit;

pub trait Gate {
	fn pbits(&self) -> &Vec<GridPbit>;
	fn shape(&self) -> (usize, usize);
	fn weight(&self)-> &DMatrix<i32>;
	fn bias(&self) -> &Vec<i32>;
}