#include <Eigen/Sparse>
#include <vector>
#include <QImage>
Eigen::VectorXd&
b,
const Eigen::VectorXd& boundary)
{
int n =
int(boundary.size());
if(
i==-1 ||
i==
n)
b(
id) -=
w * boundary(
j);
else if(
j==-1 ||
j==
n)
b(
id) -=
w * boundary(
i);
else coeffs.push_back(
T(
id,id1,
w));
}
void buildProblem(std::vector<T>& coefficients, Eigen::VectorXd&
b,
int n)
{
Eigen::ArrayXd boundary = Eigen::ArrayXd::LinSpaced(
n, 0,
M_PI).sin().pow(2);
{
{
}
}
}
{
QImage img(
bits.data(),
n,
n,QImage::Format_Indexed8);
img.setColorCount(256);
for(
int i=0;
i<256;
i++) img.setColor(
i,qRgb(
i,
i,
i));
}
void insertCoefficient(int id, int i, int j, double w, std::vector< T > &coeffs, Eigen::VectorXd &b, const Eigen::VectorXd &boundary)
void buildProblem(std::vector< T > &coefficients, Eigen::VectorXd &b, int n)
Map< const Array< unsigned char, sizeof(T), 1 > > bits(const T &x)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
General-purpose arrays with easy API for coefficient-wise operations.
Eigen::Triplet< double > T
Eigen::SparseMatrix< double > SpMat
void saveAsBitmap(const Eigen::VectorXd &x, int n, const char *filename)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:56