forked from StudioInfinity/dyna3
Do symmetric_kernel
in projection coordinates
Instead of finding the kernel in the standard coordinates and then expressing it in the projection coordinates, work in the projection coordinates from the beginning by applying a change of basis to the input matrix.
This commit is contained in:
parent
01261aed91
commit
21cefa9f8a
3 changed files with 25 additions and 25 deletions
|
@ -59,7 +59,7 @@ fn main() {
|
|||
println!("Loss: {}\n", history.scaled_loss.last().unwrap());
|
||||
|
||||
// find the kaleidocycle's twist motion
|
||||
let up = DVector::from_column_slice(&[0.0, 0.0, 1.0, 0.0, 0.0]);
|
||||
let up = DVector::from_column_slice(&[0.0, 0.0, 1.0, 0.0]);
|
||||
let down = -&up;
|
||||
let twist_motion: DMatrix<_> = (0..N_POINTS).step_by(4).flat_map(
|
||||
|n| [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue