Skip to content

Commit

Permalink
switch to N
Browse files Browse the repository at this point in the history
  • Loading branch information
PFLeget committed Oct 9, 2024
1 parent 7ca59ce commit 715556e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basic_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ auto _solve_direct_cpp_impl(

// Allocate intermediate arrays that will be reused in the following loops
Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> ATA_small(A_shape[1],A_shape[1]);
Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> K_cross(N, N);
Eigen::Matrix<T, N, N> K_cross(N, N);
Eigen::Vector<T, Eigen::Dynamic> ATb_small(A_shape[1]);

// loop over each Star
Expand All @@ -66,7 +66,7 @@ auto _solve_direct_cpp_impl(

// calculate the outer product of the K parameters so that it can be re-used in the
// following loops
Eigen::Map<const Eigen::Vector<T, Eigen::Dynamic>> K_vec(K_data, N);
Eigen::Map<const Eigen::Vector<T, N>> K_vec(K_data, N);
K_cross = K_vec *K_vec.transpose();

Eigen::Map<const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>> A_map(A_data, A_shape_zero, A_shape_one);
Expand Down

0 comments on commit 715556e

Please sign in to comment.