keyword
stringclasses
7 values
repo_name
stringlengths
8
98
file_path
stringlengths
4
244
file_extension
stringclasses
29 values
file_size
int64
0
84.1M
line_count
int64
0
1.6M
content
stringlengths
1
84.1M
language
stringclasses
14 values
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/double.cpp
.cpp
1,501
33
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2012 Chen-Pang He <jdh8@ms63.hinet.net> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of ...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/common.h
.h
4,361
164
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2015 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
Unknown
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/PackedTriangularMatrixVector.h
.h
3,165
80
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2012 Chen-Pang He <jdh8@ms63.hinet.net> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one...
Unknown
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/level2_cplx_impl.h
.h
12,223
361
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
Unknown
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/PackedSelfadjointProduct.h
.h
2,036
54
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2012 Chen-Pang He <jdh8@ms63.hinet.net> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one...
Unknown
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/dblat3.f
.f
104,262
2,874
*> \brief \b DBLAT3 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM DBLAT3 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the DOUBLE PRECISION ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/zblat3.f
.f
131,995
3,503
*> \brief \b ZBLAT3 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM ZBLAT3 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the COMPLEX*16 ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/cblat2.f
.f
116,657
3,280
*> \brief \b CBLAT2 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM CBLAT2 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the COMPLEX ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/dblat2.f
.f
112,335
3,177
*> \brief \b DBLAT2 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM DBLAT2 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the DOUBLE PRECISION ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/cblat3.f
.f
131,550
3,493
*> \brief \b CBLAT3 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM CBLAT3 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the COMPLEX ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/cblat1.f
.f
32,109
725
*> \brief \b CBLAT1 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM CBLAT1 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the COMPLEX Level ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/sblat1.f
.f
43,388
1,022
*> \brief \b SBLAT1 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM SBLAT1 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the REAL Level 1 B...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/runblastest.sh
.sh
1,016
46
#!/bin/bash black='\E[30m' red='\E[31m' green='\E[32m' yellow='\E[33m' blue='\E[34m' magenta='\E[35m' cyan='\E[36m' white='\E[37m' if [ -f $2 ]; then data=$2 if [ -f $1.summ ]; then rm $1.summ; fi if [ -f $1.snap ]; then rm $1.snap; fi else data=$1 fi if ! ./$1 < $data > /dev/null 2> .runtest.log ; then ec...
Shell
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/sblat3.f
.f
104,172
2,874
*> \brief \b SBLAT3 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM SBLAT3 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the REAL ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/zblat2.f
.f
117,003
3,288
*> \brief \b ZBLAT2 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM ZBLAT2 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the COMPLEX*16 ...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/zblat1.f
.f
32,114
725
*> \brief \b ZBLAT1 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM ZBLAT1 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the COMPLEX*16 Lev...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/sblat2.f
.f
112,251
3,177
*> \brief \b SBLAT2 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM SBLAT2 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the REAL Level 2 Blas...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/testing/dblat1.f
.f
44,819
1,066
*> \brief \b DBLAT1 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM DBLAT1 * * *> \par Purpose: * ============= *> *> \verbatim *> *> Test program for the DOUBLE PRECISI...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/fortran/complexdots.f
.f
979
44
COMPLEX FUNCTION CDOTC(N,CX,INCX,CY,INCY) INTEGER INCX,INCY,N COMPLEX CX(*),CY(*) COMPLEX RES EXTERNAL CDOTCW CALL CDOTCW(N,CX,INCX,CY,INCY,RES) CDOTC = RES RETURN END COMPLEX FUNCTION CDOTU(N,CX,INCX,CY,INCY) INTEGER INCX,INCY,N COMP...
Fortran
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/r_cnjg.c
.c
105
7
#include "datatypes.h" void r_cnjg(complex *r, complex *z) { r->r = z->r; r->i = -(z->i); }
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/drotm.c
.c
4,968
216
/* drotm.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/dspmv.c
.c
8,075
317
/* dspmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/ssbmv.c
.c
10,210
369
/* ssbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/sspmv.c
.c
8,051
317
/* sspmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/drotmg.c
.c
6,193
294
/* drotmg.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/dtbmv.c
.c
11,656
429
/* dtbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/datatypes.h
.h
657
25
/* This contains a limited subset of the typedefs exposed by f2c for use by the Eigen BLAS C-only implementation. */ #ifndef __EIGEN_DATATYPES_H__ #define __EIGEN_DATATYPES_H__ typedef int integer; typedef unsigned int uinteger; typedef float real; typedef double doublereal; typedef struct { real r, i; } complex; ...
Unknown
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/lsame.c
.c
2,976
118
/* lsame.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/ctbmv.c
.c
18,944
648
/* ctbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/ztbmv.c
.c
18,972
648
/* ztbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/stbmv.c
.c
11,642
429
/* stbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/complexdots.c
.c
2,310
85
/* This file has been modified to use the standard gfortran calling convention, rather than the f2c calling convention. It does not require -ff2c when compiled with gfortran. */ /* complexdots.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Window...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/dsbmv.c
.c
10,188
367
/* dsbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/d_cnjg.c
.c
117
7
#include "datatypes.h" void d_cnjg(doublecomplex *r, doublecomplex *z) { r->r = z->r; r->i = -(z->i); }
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/srotm.c
.c
4,902
217
/* srotm.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/chbmv.c
.c
15,108
488
/* chbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/zhbmv.c
.c
15,144
489
/* zhbmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/zhpmv.c
.c
13,060
439
/* zhpmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/srotmg.c
.c
6,056
296
/* srotmg.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/blas/f2c/chpmv.c
.c
13,026
439
/* chpmv.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
C
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/tutorial.cpp
.cpp
2,544
63
#include <Eigen/Array> int main(int argc, char *argv[]) { std::cout.precision(2); // demo static functions Eigen::Matrix3f m3 = Eigen::Matrix3f::Random(); Eigen::Matrix4f m4 = Eigen::Matrix4f::Identity(); std::cout << "*** Step 1 ***\nm3:\n" << m3 << "\nm4:\n" << m4 << std::endl; // demo non-static set....
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/special_examples/Tutorial_sparse_example.cpp
.cpp
1,183
39
#include <Eigen/Sparse> #include <vector> #include <iostream> typedef Eigen::SparseMatrix<double> SpMat; // declares a column-major sparse matrix type of double typedef Eigen::Triplet<double> T; void buildProblem(std::vector<T>& coefficients, Eigen::VectorXd& b, int n); void saveAsBitmap(const Eigen::VectorXd& x, int...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/special_examples/random_cpp11.cpp
.cpp
336
15
#include <Eigen/Core> #include <iostream> #include <random> using namespace Eigen; int main() { std::default_random_engine generator; std::poisson_distribution<int> distribution(4.1); auto poisson = [&] () {return distribution(generator);}; RowVectorXi v = RowVectorXi::NullaryExpr(10, poisson ); std::cout ...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/special_examples/Tutorial_sparse_example_details.cpp
.cpp
1,576
45
#include <Eigen/Sparse> #include <vector> #include <QImage> typedef Eigen::SparseMatrix<double> SpMat; // declares a column-major sparse matrix type of double typedef Eigen::Triplet<double> T; void insertCoefficient(int id, int i, int j, double w, std::vector<T>& coeffs, Eigen::VectorXd& b, con...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/GeneralizedEigenSolver.cpp
.cpp
456
8
GeneralizedEigenSolver<MatrixXf> ges; MatrixXf A = MatrixXf::Random(4,4); MatrixXf B = MatrixXf::Random(4,4); ges.compute(A, B); cout << "The (complex) numerators of the generalzied eigenvalues are: " << ges.alphas().transpose() << endl; cout << "The (real) denominatore of the generalzied eigenvalues are: " << ges.beta...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/PartialRedux_norm.cpp
.cpp
169
4
Matrix3d m = Matrix3d::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Cwise_tanh.cpp
.cpp
64
3
ArrayXd v = ArrayXd::LinSpaced(5,0,1); cout << tanh(v) << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/LLT_example.cpp
.cpp
519
13
MatrixXd A(3,3); A << 4,-1,2, -1,6,0, 2,0,5; cout << "The matrix A is" << endl << A << endl; LLT<MatrixXd> lltOfA(A); // compute the Cholesky decomposition of A MatrixXd L = lltOfA.matrixL(); // retrieve factor L in the decomposition // The previous two lines can also be written as "L = A.llt().matrixL()" cout << "T...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_reverse.cpp
.cpp
407
9
MatrixXi m = MatrixXi::Random(3,4); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is the reverse of m:" << endl << m.reverse() << endl; cout << "Here is the coefficient (1,0) in the reverse of m:" << endl << m.reverse()(1,0) << endl; cout << "Let us overwrite this coefficient with the value 4...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_cwiseAbs2.cpp
.cpp
81
5
MatrixXd m(2,3); m << 2, -4, 6, -5, 1, 0; cout << m.cwiseAbs2() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/tut_arithmetic_transpose_conjugate.cpp
.cpp
277
13
MatrixXcf a = MatrixXcf::Random(2,2); cout << "Here is the matrix a\n" << a << endl; cout << "Here is the matrix a^T\n" << a.transpose() << endl; cout << "Here is the conjugate of a\n" << a.conjugate() << endl; cout << "Here is the matrix a^*\n" << a.adjoint() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_block_int_int_int_int.cpp
.cpp
250
6
Matrix4i m = Matrix4i::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is m.block(1, 1, 2, 2):" << endl << m.block(1, 1, 2, 2) << endl; m.block(1, 1, 2, 2).setZero(); cout << "Now the matrix m is:" << endl << m << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/FullPivHouseholderQR_solve.cpp
.cpp
325
9
Matrix3f m = Matrix3f::Random(); Matrix3f y = Matrix3f::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is the matrix y:" << endl << y << endl; Matrix3f x; x = m.fullPivHouseholderQr().solve(y); assert(y.isApprox(m*x)); cout << "Here is a solution x to the equation mx=y:" << endl << x << e...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_template_int_int_topRightCorner.cpp
.cpp
268
7
Matrix4i m = Matrix4i::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is m.topRightCorner<2,2>():" << endl; cout << m.topRightCorner<2,2>() << endl; m.topRightCorner<2,2>().setZero(); cout << "Now the matrix m is:" << endl << m << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/RealSchur_RealSchur_MatrixType.cpp
.cpp
429
11
MatrixXd A = MatrixXd::Random(6,6); cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl; RealSchur<MatrixXd> schur(A); cout << "The orthogonal matrix U is:" << endl << schur.matrixU() << endl; cout << "The quasi-triangular matrix T is:" << endl << schur.matrixT() << endl << endl; MatrixXd U = schur...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/DenseBase_LinSpaced_seq.cpp
.cpp
139
3
cout << VectorXi::LinSpaced(Sequential,4,7,10).transpose() << endl; cout << VectorXd::LinSpaced(Sequential,5,0.0,1.0).transpose() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/DirectionWise_hnormalized.cpp
.cpp
411
7
typedef Matrix<double,4,Dynamic> Matrix4Xd; Matrix4Xd M = Matrix4Xd::Random(4,5); Projective3d P(Matrix4d::Random()); cout << "The matrix M is:" << endl << M << endl << endl; cout << "M.colwise().hnormalized():" << endl << M.colwise().hnormalized() << endl << endl; cout << "P*M:" << endl << P*M << endl << endl; cout <<...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Cwise_inverse.cpp
.cpp
47
3
Array3d v(2,3,4); cout << v.inverse() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_template_int_end.cpp
.cpp
230
6
RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; cout << "Here is v.tail(2):" << endl << v.tail<2>() << endl; v.tail<2>().setZero(); cout << "Now the vector v is:" << endl << v << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/DirectionWise_replicate.cpp
.cpp
186
5
MatrixXi m = MatrixXi::Random(2,3); cout << "Here is the matrix m:" << endl << m << endl; cout << "m.colwise().replicate<3>() = ..." << endl; cout << m.colwise().replicate<3>() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/HessenbergDecomposition_packedMatrix.cpp
.cpp
482
10
Matrix4d A = Matrix4d::Random(4,4); cout << "Here is a random 4x4 matrix:" << endl << A << endl; HessenbergDecomposition<Matrix4d> hessOfA(A); Matrix4d pm = hessOfA.packedMatrix(); cout << "The packed matrix M is:" << endl << pm << endl; cout << "The upper Hessenberg part corresponds to the matrix H, which is:" <...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_zero.cpp
.cpp
71
3
cout << Matrix2d::Zero() << endl; cout << RowVector4i::Zero() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_template_int_segment.cpp
.cpp
244
6
RowVector4i v = RowVector4i::Random(); cout << "Here is the vector v:" << endl << v << endl; cout << "Here is v.segment<2>(1):" << endl << v.segment<2>(1) << endl; v.segment<2>(2).setZero(); cout << "Now the vector v is:" << endl << v << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_computeInverseAndDetWithCheck.cpp
.cpp
410
14
Matrix3d m = Matrix3d::Random(); cout << "Here is the matrix m:" << endl << m << endl; Matrix3d inverse; bool invertible; double determinant; m.computeInverseAndDetWithCheck(inverse,determinant,invertible); cout << "Its determinant is " << determinant << endl; if(invertible) { cout << "It is invertible, and its inver...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Map_outer_stride.cpp
.cpp
138
4
int array[12]; for(int i = 0; i < 12; ++i) array[i] = i; cout << Map<MatrixXi, 0, OuterStride<> >(array, 3, 3, OuterStride<>(4)) << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_template_int_bottomRows.cpp
.cpp
248
7
Array44i a = Array44i::Random(); cout << "Here is the array a:" << endl << a << endl; cout << "Here is a.bottomRows<2>():" << endl; cout << a.bottomRows<2>() << endl; a.bottomRows<2>().setZero(); cout << "Now the array a is:" << endl << a << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_template_int_int_bottomRightCorner_int_int.cpp
.cpp
304
7
Matrix4i m = Matrix4i::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is m.bottomRightCorner<2,Dynamic>(2,2):" << endl; cout << m.bottomRightCorner<2,Dynamic>(2,2) << endl; m.bottomRightCorner<2,Dynamic>(2,2).setZero(); cout << "Now the matrix m is:" << endl << m << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_ones_int_int.cpp
.cpp
37
2
cout << MatrixXi::Ones(2,3) << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tridiagonalization_compute.cpp
.cpp
392
10
Tridiagonalization<MatrixXf> tri; MatrixXf X = MatrixXf::Random(4,4); MatrixXf A = X + X.transpose(); tri.compute(A); cout << "The matrix T in the tridiagonal decomposition of A is: " << endl; cout << tri.matrixT() << endl; tri.compute(2*A); // re-use tri to compute eigenvalues of 2A cout << "The matrix T in the tridia...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Cwise_boolean_not.cpp
.cpp
105
6
Array3d v(1,2,3); v(1) *= 0.0/0.0; v(2) /= 0.0; cout << v << endl << endl; cout << !isfinite(v) << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/ComplexEigenSolver_eigenvectors.cpp
.cpp
194
5
MatrixXcf ones = MatrixXcf::Ones(3,3); ComplexEigenSolver<MatrixXcf> ces(ones); cout << "The first eigenvector of the 3x3 matrix of ones is:" << endl << ces.eigenvectors().col(1) << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tutorial_solve_matrix_inverse.cpp
.cpp
146
7
Matrix3f A; Vector3f b; A << 1,2,3, 4,5,6, 7,8,10; b << 3, 3, 4; Vector3f x = A.inverse() * b; cout << "The solution is:" << endl << x << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Triangular_solve.cpp
.cpp
520
12
Matrix3d m = Matrix3d::Zero(); m.triangularView<Eigen::Upper>().setOnes(); cout << "Here is the matrix m:\n" << m << endl; Matrix3d n = Matrix3d::Ones(); n.triangularView<Eigen::Lower>() *= 2; cout << "Here is the matrix n:\n" << n << endl; cout << "And now here is m.inverse()*n, taking advantage of the fact that" ...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_operatorNorm.cpp
.cpp
132
4
MatrixXd ones = MatrixXd::Ones(3,3); cout << "The operator norm of the 3x3 matrix of ones is " << ones.operatorNorm() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/AngleAxis_mimic_euler.cpp
.cpp
210
6
Matrix3f m; m = AngleAxisf(0.25*M_PI, Vector3f::UnitX()) * AngleAxisf(0.5*M_PI, Vector3f::UnitY()) * AngleAxisf(0.33*M_PI, Vector3f::UnitZ()); cout << m << endl << "is unitary: " << m.isUnitary() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tutorial_AdvancedInitialization_LinSpaced.cpp
.cpp
272
8
ArrayXXf table(10, 4); table.col(0) = ArrayXf::LinSpaced(10, 0, 90); table.col(1) = M_PI / 180 * table.col(0); table.col(2) = table.col(1).sin(); table.col(3) = table.col(1).cos(); std::cout << " Degrees Radians Sine Cosine\n"; std::cout << table << std::endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Matrix_setConstant_int_int.cpp
.cpp
55
4
MatrixXf m; m.setConstant(3, 3, 5); cout << m << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_applyOnTheLeft.cpp
.cpp
207
8
Matrix3f A = Matrix3f::Random(3,3), B; B << 0,1,0, 0,0,1, 1,0,0; cout << "At start, A = " << endl << A << endl; A.applyOnTheLeft(B); cout << "After applyOnTheLeft, A = " << endl << A << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_cwiseInverse.cpp
.cpp
87
5
MatrixXd m(2,3); m << 2, 0.5, 1, 3, 0.25, 1; cout << m.cwiseInverse() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_setOnes.cpp
.cpp
72
4
Matrix4i m = Matrix4i::Random(); m.row(1).setOnes(); cout << m << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Cwise_acos.cpp
.cpp
55
3
Array3d v(0, sqrt(2.)/2, 1); cout << v.acos() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/DenseBase_LinSpacedInt.cpp
.cpp
420
9
cout << "Even spacing inputs:" << endl; cout << VectorXi::LinSpaced(8,1,4).transpose() << endl; cout << VectorXi::LinSpaced(8,1,8).transpose() << endl; cout << VectorXi::LinSpaced(8,1,15).transpose() << endl; cout << "Uneven spacing inputs:" << endl; cout << VectorXi::LinSpaced(8,1,7).transpose() << endl; cout << Vecto...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Cwise_pow.cpp
.cpp
53
3
Array3d v(8,27,64); cout << v.pow(0.333333) << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_isIdentity.cpp
.cpp
235
6
Matrix3d m = Matrix3d::Identity(); m(0,2) = 1e-4; cout << "Here's the matrix m:" << endl << m << endl; cout << "m.isIdentity() returns: " << m.isIdentity() << endl; cout << "m.isIdentity(1e-3) returns: " << m.isIdentity(1e-3) << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tutorial_solve_triangular_inplace.cpp
.cpp
159
7
Matrix3f A; Vector3f b; A << 1,2,3, 0,5,6, 0,0,10; b << 3, 3, 4; A.triangularView<Upper>().solveInPlace(b); cout << "The solution is:" << endl << b << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/class_FullPivLU.cpp
.cpp
732
17
typedef Matrix<double, 5, 3> Matrix5x3; typedef Matrix<double, 5, 5> Matrix5x5; Matrix5x3 m = Matrix5x3::Random(); cout << "Here is the matrix m:" << endl << m << endl; Eigen::FullPivLU<Matrix5x3> lu(m); cout << "Here is, up to permutations, its LU decomposition matrix:" << endl << lu.matrixLU() << endl; cout << "...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Cwise_abs2.cpp
.cpp
46
3
Array3d v(1,-2,-3); cout << v.abs2() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tutorial_Map_using.cpp
.cpp
896
22
typedef Matrix<float,1,Dynamic> MatrixType; typedef Map<MatrixType> MapType; typedef Map<const MatrixType> MapTypeConst; // a read-only map const int n_dims = 5; MatrixType m1(n_dims), m2(n_dims); m1.setRandom(); m2.setRandom(); float *p = &m2(0); // get the address storing the data for m2 MapType m2map(p,m2.size...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tridiagonalization_packedMatrix.cpp
.cpp
394
9
Matrix4d X = Matrix4d::Random(4,4); Matrix4d A = X + X.transpose(); cout << "Here is a random symmetric 4x4 matrix:" << endl << A << endl; Tridiagonalization<Matrix4d> triOfA(A); Matrix4d pm = triOfA.packedMatrix(); cout << "The packed matrix M is:" << endl << pm << endl; cout << "The diagonal and subdiagonal correspon...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Matrix_setIdentity_int_int.cpp
.cpp
52
4
MatrixXf m; m.setIdentity(3, 3); cout << m << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tutorial_AdvancedInitialization_CommaTemporary.cpp
.cpp
168
5
MatrixXf mat = MatrixXf::Random(2, 3); std::cout << mat << std::endl << std::endl; mat = (MatrixXf(2,2) << 0, 1, 1, 0).finished() * mat; std::cout << mat << std::endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/FullPivLU_kernel.cpp
.cpp
317
8
MatrixXf m = MatrixXf::Random(3,5); cout << "Here is the matrix m:" << endl << m << endl; MatrixXf ker = m.fullPivLu().kernel(); cout << "Here is a matrix whose columns form a basis of the kernel of m:" << endl << ker << endl; cout << "By definition of the kernel, m*ker is zero:" << endl << m*ker << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Tutorial_solve_singular.cpp
.cpp
256
10
Matrix3f A; Vector3f b; A << 1,2,3, 4,5,6, 7,8,9; b << 3, 3, 4; cout << "Here is the matrix A:" << endl << A << endl; cout << "Here is the vector b:" << endl << b << endl; Vector3f x; x = A.lu().solve(b); cout << "The solution is:" << endl << x << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_array_const.cpp
.cpp
234
5
Vector3d v(-1,2,-3); cout << "the absolute values:" << endl << v.array().abs() << endl; cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl; cout << "sum of the squares: " << v.array().square().sum() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/SparseMatrix_coeffs.cpp
.cpp
411
10
SparseMatrix<double> A(3,3); A.insert(1,2) = 0; A.insert(0,1) = 1; A.insert(2,0) = 2; A.makeCompressed(); cout << "The matrix A is:" << endl << MatrixXd(A) << endl; cout << "it has " << A.nonZeros() << " stored non zero coefficients that are: " << A.coeffs().transpose() << endl; A.coeffs() += 10; cout << "After adding ...
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/TopicAliasing_mult4.cpp
.cpp
101
5
MatrixXf A(2,2), B(3,2); B << 2, 0, 0, 3, 1, 1; A << 2, 0, 0, -2; A = (B * A).cwiseAbs(); cout << A;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/Cwise_minus_equal.cpp
.cpp
45
4
Array3d v(1,2,3); v -= 5; cout << v << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/SelfAdjointEigenSolver_eigenvalues.cpp
.cpp
180
5
MatrixXd ones = MatrixXd::Ones(3,3); SelfAdjointEigenSolver<MatrixXd> es(ones); cout << "The eigenvalues of the 3x3 matrix of ones are:" << endl << es.eigenvalues() << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_leftCols_int.cpp
.cpp
236
7
Array44i a = Array44i::Random(); cout << "Here is the array a:" << endl << a << endl; cout << "Here is a.leftCols(2):" << endl; cout << a.leftCols(2) << endl; a.leftCols(2).setZero(); cout << "Now the array a is:" << endl << a << endl;
C++
2D
JaeHyunLee94/mpm2d
external/eigen-3.3.9/doc/snippets/MatrixBase_topRightCorner_int_int.cpp
.cpp
265
7
Matrix4i m = Matrix4i::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is m.topRightCorner(2, 2):" << endl; cout << m.topRightCorner(2, 2) << endl; m.topRightCorner(2, 2).setZero(); cout << "Now the matrix m is:" << endl << m << endl;
C++