Go to the source code of this file.
◆ SpMat
◆ buildProblem()
void buildProblem |
( |
std::vector< T > & |
coefficients, |
|
|
Eigen::VectorXd & |
b, |
|
|
int |
n |
|
) |
| |
Definition at line 19 of file Tutorial_sparse_example_details.cpp.
23 for(
int j=0;
j<
n; ++
j)
25 for(
int i=0;
i<
n; ++
i)
void insertCoefficient(int id, int i, int j, double w, std::vector< T > &coeffs, Eigen::VectorXd &b, const Eigen::VectorXd &boundary)
General-purpose arrays with easy API for coefficient-wise operations.
static EIGEN_DEPRECATED const RandomAccessLinSpacedReturnType LinSpaced(Sequential_t, Index size, const Scalar &low, const Scalar &high)
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 11 of file Tutorial_sparse_example.cpp.
14 std::cerr <<
"Error: expected one and only one argument.\n";
22 std::vector<T> coefficients;
27 A.setFromTriplets(coefficients.begin(), coefficients.end());
void buildProblem(std::vector< T > &coefficients, Eigen::VectorXd &b, int n)
void saveAsBitmap(const Eigen::VectorXd &x, int n, const char *filename)
The matrix class, also used for vectors and row-vectors.
◆ saveAsBitmap()
void saveAsBitmap |
( |
const Eigen::VectorXd & |
x, |
|
|
int |
n, |
|
|
const char * |
filename |
|
) |
| |