This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DOES NOT RETURN CORRECT RESULTS, | |
* current implementation violates the unity-sum constraint | |
* (sum of all memberships sometimes exceeds 1) and skips | |
* achromatic category memberships. */ | |
extern crate nalgebra; | |
use nalgebra::{U1, U3, Matrix, MatrixArray}; | |
use std::ops::{Mul, Div}; |