mixingcut 0.1.2

A program to solve the MAXCUT SDP Relaxation.
Documentation
1
2
3
4
5
6
7
8
use ndarray::Array2;
use ndarray_linalg::norm::normalize;
use ndarray_linalg::NormalizeAxis;

pub(crate) fn project(V: Array2<f64>) -> Array2<f64> {
    // project V into the possible space
    normalize(V, NormalizeAxis::Row).0
}