![]() |
|
#include <PlainObjectBase.h>
Classes | |
struct | StridedAlignedMapType |
struct | StridedConstAlignedMapType |
struct | StridedConstMapType |
struct | StridedMapType |
Public Types | |
enum | { Options = internal::traits<Derived>::Options } |
enum | { NeedsToAlign = (SizeAtCompileTime != Dynamic) && (internal::traits<Derived>::Alignment > 0) } |
enum | { IsPlainObjectBase = 1 } |
typedef internal::dense_xpr_base< Derived >::type | Base |
typedef internal::traits< Derived >::StorageKind | StorageKind |
typedef internal::traits< Derived >::Scalar | Scalar |
typedef internal::packet_traits< Scalar >::type | PacketScalar |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef Derived | DenseType |
typedef Eigen::Map< Derived, Unaligned > | MapType |
typedef const Eigen::Map< const Derived, Unaligned > | ConstMapType |
typedef Eigen::Map< Derived, AlignedMax > | AlignedMapType |
typedef const Eigen::Map< const Derived, AlignedMax > | ConstAlignedMapType |
Static Public Member Functions | |
Map | |
These are convenience functions returning Map objects. The Map() static functions return unaligned Map objects, while the AlignedMap() functions return aligned Map objects and thus should be called only with 16-byte-aligned data pointers. Here is an example using strides: Matrix4i A;
A << 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16;
std::cout << Matrix2i::Map(&A(1, 1), Stride<8, 2>()) << std::endl;
Output:
| |
static ConstMapType | Map (const Scalar *data) |
static MapType | Map (Scalar *data) |
static ConstMapType | Map (const Scalar *data, Index size) |
static MapType | Map (Scalar *data, Index size) |
static ConstMapType | Map (const Scalar *data, Index rows, Index cols) |
static MapType | Map (Scalar *data, Index rows, Index cols) |
static ConstAlignedMapType | MapAligned (const Scalar *data) |
static AlignedMapType | MapAligned (Scalar *data) |
static ConstAlignedMapType | MapAligned (const Scalar *data, Index size) |
static AlignedMapType | MapAligned (Scalar *data, Index size) |
static ConstAlignedMapType | MapAligned (const Scalar *data, Index rows, Index cols) |
static AlignedMapType | MapAligned (Scalar *data, Index rows, Index cols) |
template<int Outer, int Inner> | |
static StridedConstMapType< Stride< Outer, Inner > >::type | Map (const Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedMapType< Stride< Outer, Inner > >::type | Map (Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstMapType< Stride< Outer, Inner > >::type | Map (const Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedMapType< Stride< Outer, Inner > >::type | Map (Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstMapType< Stride< Outer, Inner > >::type | Map (const Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedMapType< Stride< Outer, Inner > >::type | Map (Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (const Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (Scalar *data, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (const Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (Scalar *data, Index size, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedConstAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (const Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
template<int Outer, int Inner> | |
static StridedAlignedMapType< Stride< Outer, Inner > >::type | MapAligned (Scalar *data, Index rows, Index cols, const Stride< Outer, Inner > &stride) |
Protected Member Functions | |
EIGEN_DEVICE_FUNC constexpr EIGEN_STRONG_INLINE | PlainObjectBase ()=default |
EIGEN_DEVICE_FUNC constexpr EIGEN_STRONG_INLINE | PlainObjectBase (PlainObjectBase &&)=default |
Move constructor. More... | |
constexpr EIGEN_DEVICE_FUNC PlainObjectBase & | operator= (PlainObjectBase &&other) EIGEN_NOEXCEPT |
Move assignment operator. More... | |
EIGEN_DEVICE_FUNC constexpr EIGEN_STRONG_INLINE | PlainObjectBase (const PlainObjectBase &)=default |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (Index size, Index rows, Index cols) |
template<typename... ArgTypes> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const Scalar &a0, const Scalar &a1, const Scalar &a2, const Scalar &a3, const ArgTypes &... args) |
Construct a row of column vector with fixed size from an arbitrary number of coefficients. More... | |
constexpr EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const std::initializer_list< std::initializer_list< Scalar >> &list) |
Constructs a Matrix or Array and initializes it by elements given by an initializer list of initializer lists. More... | |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const DenseBase< OtherDerived > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const EigenBase< OtherDerived > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | PlainObjectBase (const ReturnByValue< OtherDerived > &other) |
Copy constructor with in-place evaluation. More... | |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _resize_to_match (const EigenBase< OtherDerived > &other) |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC constexpr EIGEN_STRONG_INLINE Derived & | _set (const DenseBase< OtherDerived > &other) |
Copies the value of the expression other into *this with automatic resizing. More... | |
template<typename OtherDerived > | |
EIGEN_DEVICE_FUNC constexpr EIGEN_STRONG_INLINE Derived & | _set_noalias (const DenseBase< OtherDerived > &other) |
template<typename T0 , typename T1 > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init2 (Index rows, Index cols, std::enable_if_t< Base::SizeAtCompileTime !=2, T0 > *=0) |
template<typename T0 , typename T1 > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init2 (const T0 &val0, const T1 &val1, std::enable_if_t< Base::SizeAtCompileTime==2, T0 > *=0) |
template<typename T0 , typename T1 > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init2 (const Index &val0, const Index &val1, std::enable_if_t<(!internal::is_same< Index, Scalar >::value) &&(internal::is_same< T0, Index >::value) &&(internal::is_same< T1, Index >::value) &&Base::SizeAtCompileTime==2, T1 > *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (Index size, std::enable_if_t<(Base::SizeAtCompileTime !=1||!internal::is_convertible< T, Scalar >::value) &&((!internal::is_same< typename internal::traits< Derived >::XprKind, ArrayXpr >::value||Base::SizeAtCompileTime==Dynamic)), T > *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Scalar &val0, std::enable_if_t< Base::SizeAtCompileTime==1 &&internal::is_convertible< T, Scalar >::value, T > *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Index &val0, std::enable_if_t<(!internal::is_same< Index, Scalar >::value) &&(internal::is_same< Index, T >::value) &&Base::SizeAtCompileTime==1 &&internal::is_convertible< T, Scalar >::value, T * > *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Scalar *data) |
template<typename T , typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const DenseBase< OtherDerived > &other) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Derived &other) |
template<typename T , typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const EigenBase< OtherDerived > &other) |
template<typename T , typename OtherDerived > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const ReturnByValue< OtherDerived > &other) |
template<typename T , typename OtherDerived , int ColsAtCompileTime> | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const RotationBase< OtherDerived, ColsAtCompileTime > &r) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Scalar &val0, std::enable_if_t< Base::SizeAtCompileTime !=Dynamic &&Base::SizeAtCompileTime !=1 &&internal::is_convertible< T, Scalar >::value &&internal::is_same< typename internal::traits< Derived >::XprKind, ArrayXpr >::value, T > *=0) |
template<typename T > | |
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | _init1 (const Index &val0, std::enable_if_t<(!internal::is_same< Index, Scalar >::value) &&(internal::is_same< Index, T >::value) &&Base::SizeAtCompileTime !=Dynamic &&Base::SizeAtCompileTime !=1 &&internal::is_convertible< T, Scalar >::value &&internal::is_same< typename internal::traits< Derived >::XprKind, ArrayXpr >::value, T * > *=0) |
Protected Attributes | |
DenseStorage< Scalar, Base::MaxSizeAtCompileTime, Base::RowsAtCompileTime, Base::ColsAtCompileTime, Options > | m_storage |
Friends | |
template<typename MatrixTypeA , typename MatrixTypeB , bool SwapPointers> | |
struct | internal::matrix_swap_impl |
template<typename PlainObjectType , int MapOptions, typename StrideType > | |
class | Eigen::Map |
class | Eigen::Map< Derived, Unaligned > |
class | Eigen::Map< const Derived, Unaligned > |
typedef Eigen::Map<Derived, AlignedMax> Eigen::PlainObjectBase< Derived >::AlignedMapType |
typedef internal::dense_xpr_base<Derived>::type Eigen::PlainObjectBase< Derived >::Base |
typedef const Eigen::Map<const Derived, AlignedMax> Eigen::PlainObjectBase< Derived >::ConstAlignedMapType |
typedef const Eigen::Map<const Derived, Unaligned> Eigen::PlainObjectBase< Derived >::ConstMapType |
typedef Derived Eigen::PlainObjectBase< Derived >::DenseType |
typedef Eigen::Map<Derived, Unaligned> Eigen::PlainObjectBase< Derived >::MapType |
typedef internal::packet_traits<Scalar>::type Eigen::PlainObjectBase< Derived >::PacketScalar |
typedef NumTraits<Scalar>::Real Eigen::PlainObjectBase< Derived >::RealScalar |
typedef internal::traits<Derived>::Scalar Eigen::PlainObjectBase< Derived >::Scalar |
typedef internal::traits<Derived>::StorageKind Eigen::PlainObjectBase< Derived >::StorageKind |
anonymous enum |
Enumerator | |
---|---|
NeedsToAlign |
|
constexprprotecteddefault |
|
constexprprotecteddefault |
Move constructor.
|
constexprprotecteddefault |
Copy constructor
|
inlineprotected |
|
inlineprotected |
Construct a row of column vector with fixed size from an arbitrary number of coefficients.
\only_for_vectors
This constructor is for 1D array or vectors with more than 4 coefficients.
*this
. References compute_granudrum_aor::args, Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE, i, Eigen::PlainObjectBase< Derived >::m_storage, and plotDoE::x.
|
inlineexplicitconstexprprotected |
Constructs a Matrix or Array and initializes it by elements given by an initializer list of initializer lists.
References Eigen::PlainObjectBase< Derived >::coeffRef(), Eigen::Dynamic, e(), eigen_assert, Eigen::PlainObjectBase< Derived >::resize(), row(), and Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::size().
|
inlineprotected |
References Eigen::PlainObjectBase< Derived >::_set_noalias(), and Eigen::PlainObjectBase< Derived >::resizeLike().
|
inlineprotected |
References Eigen::EigenBase< Derived >::derived(), and Eigen::PlainObjectBase< Derived >::resizeLike().
|
inlineprotected |
Copy constructor with in-place evaluation.
References Eigen::ReturnByValue< Derived >::cols(), Eigen::ReturnByValue< Derived >::evalTo(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::ReturnByValue< Derived >::rows().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
References setConstant().
|
inlineprotected |
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE, and Eigen::PlainObjectBase< Derived >::m_storage.
|
inlineprotected |
|
inlineprotected |
References UniformPSDSelfTest::r.
|
inlineprotected |
References setConstant().
|
inlineprotected |
|
inlineprotected |
References Eigen::PlainObjectBase< Derived >::_set_noalias().
|
inlineprotected |
References Eigen::PlainObjectBase< Derived >::EIGEN_STATIC_ASSERT(), EIGEN_UNUSED_VARIABLE, Eigen::PlainObjectBase< Derived >::resize(), and size.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
References AND, Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::EIGEN_STATIC_ASSERT(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::PlainObjectBase< Derived >::rows().
|
inlineprotected |
Resizes *this in preparation for assigning other to it. Takes care of doing all the checking that's needed.
Note that copying a row-vector into a vector (and conversely) is allowed. The resizing, if any, is then done in the appropriate way so that row-vectors remain row-vectors and vectors remain vectors.
References Eigen::EigenBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::cols(), eigen_assert, EIGEN_ONLY_USED_FOR_DEBUG, Eigen::PlainObjectBase< Derived >::resizeLike(), Eigen::EigenBase< Derived >::rows(), Eigen::PlainObjectBase< Derived >::rows(), size, and Eigen::EigenBase< Derived >::size().
Referenced by Eigen::PlainObjectBase< Derived >::lazyAssign(), and Eigen::PlainObjectBase< Derived >::operator=().
|
inlineconstexprprotected |
Copies the value of the expression other into *this
with automatic resizing.
*this might be resized to match the dimensions of other. If *this was a null matrix (not already initialized), it will be initialized.
Note that copying a row-vector into a vector (and conversely) is allowed. The resizing, if any, is then done in the appropriate way so that row-vectors remain row-vectors and vectors remain vectors.
References Eigen::internal::call_assignment().
Referenced by Eigen::Array< Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ >::operator=(), Eigen::Matrix< Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ >::operator=(), and Eigen::PlainObjectBase< Derived >::operator=().
|
inlineconstexprprotected |
Like _set() but additionally makes the assumption that no aliasing effect can happen (which is the case when creating a new matrix) so one can enforce lazy evaluation.
References Eigen::internal::call_assignment_no_alias().
Referenced by Eigen::PlainObjectBase< Derived >::_init1(), and Eigen::PlainObjectBase< Derived >::PlainObjectBase().
|
inline |
|
inlineconstexpr |
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const for details.
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.
|
inlineconstexpr |
This is an overloaded version of DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index,Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,ReadOnlyAccessors>::coeff(Index) const for details.
Referenced by __attribute__(), Eigen::FullPivHouseholderQR< MatrixType_, PermutationIndex_ >::_solve_impl(), Eigen::FullPivHouseholderQR< MatrixType_, PermutationIndex_ >::_solve_impl_transposed(), check_indexed_view(), Eigen::SelfAdjointEigenSolver< MatrixType_ >::compute(), Eigen::GeneralizedEigenSolver< MatrixType_ >::compute(), Eigen::JacobiSVD< MatrixType_, Options_ >::compute_impl(), Eigen::FullPivHouseholderQR< MatrixType_, PermutationIndex_ >::computeInPlace(), Eigen::ComplexSchur< MatrixType_ >::computeShift(), Eigen::RealSchur< MatrixType_ >::computeShift(), Eigen::ComplexEigenSolver< MatrixType_ >::doComputeEigenvectors(), Eigen::internal::kernel_retval< FullPivLU< MatrixType_, PermutationIndex_ > >::evalTo(), Eigen::internal::image_retval< FullPivLU< MatrixType_, PermutationIndex_ > >::evalTo(), Eigen::RealSchur< MatrixType_ >::initFrancisQRStep(), Eigen::Hyperplane< Scalar_, AmbientDim_, Options_ >::intersection(), Eigen::internal::matrix_sqrt_quasi_triangular_1x2_off_diagonal_block(), Eigen::internal::matrix_sqrt_quasi_triangular_2x1_off_diagonal_block(), Eigen::internal::matrix_sqrt_quasi_triangular_solve_auxiliary_equation(), Eigen::Hyperplane< Scalar_, AmbientDim_, Options_ >::offset(), Eigen::ComplexSchur< MatrixType_ >::reduceToTriangularForm(), ref_prod(), Eigen::internal::sparse_solve_triangular_selector< Lhs, Rhs, Mode, Lower, RowMajor >::run(), Eigen::internal::sparse_solve_triangular_selector< Lhs, Rhs, Mode, Upper, RowMajor >::run(), Eigen::internal::svd_precondition_2x2_block_to_be_real< MatrixType, Options, true >::run(), sparse_block(), sparse_vector(), Eigen::RealQZ< MatrixType_ >::step(), Eigen::ComplexSchur< MatrixType_ >::subdiagonalEntryIsNeglegible(), and test_dynamic_bool().
|
inlineconstexpr |
This is an overloaded version of DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index) const for details.
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.
|
inlineconstexpr |
This is the const version of coeffRef(Index) which is thus synonym of coeff(Index). It is provided for convenience.
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.
|
inlineconstexpr |
This is an overloaded version of DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index,Index) const provided to by-pass the creation of an evaluator of the expression, thus saving compilation efforts.
See DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index,Index) const for details.
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::cols(), Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::rows().
Referenced by Eigen::PlainObjectBase< Derived >::PlainObjectBase().
|
inlineconstexpr |
This is the const version of coeffRef(Index,Index) which is thus synonym of coeff(Index,Index). It is provided for convenience.
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::cols(), Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::rows().
|
inline |
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::cols(), and Eigen::PlainObjectBase< Derived >::m_storage.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), Eigen::HessenbergDecomposition< MatrixType_ >::_compute(), Eigen::PlainObjectBase< Derived >::_init2(), Eigen::PlainObjectBase< Derived >::_resize_to_match(), bench(), binary_op_test(), check_generateRandomMatrixSvs(), check_indexed_view(), check_sparse_inverse(), check_sparse_solving(), check_sparse_solving_real_cases(), check_sparse_spd_solving(), check_sparse_square_solving(), check_tutorial_examples(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), Eigen::Transform< Scalar_, Dim_, Mode_, Options_ >::cols(), Eigen::GeneralizedEigenSolver< MatrixType_ >::compute(), Eigen::ArpackGeneralizedSelfAdjointEigenSolver< MatrixType, MatrixSolver, BisSPD >::compute(), Eigen::GeneralizedSelfAdjointEigenSolver< MatrixType_ >::compute(), compute_norm_equation(), Eigen::PlainObjectBase< Derived >::conservativeResize(), Eigen::copy_using_evaluator(), DenseLM< Scalar >::df(), Eigen::internal::dogleg(), equalsIdentity(), Eigen::MetisOrdering< StorageIndex >::get_symmetrized_graph(), initSparse(), initSPD(), main(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::internal::matrix_exp_pade13(), Eigen::internal::matrix_exp_pade3(), Eigen::internal::matrix_exp_pade5(), Eigen::internal::matrix_exp_pade7(), Eigen::internal::matrix_exp_pade9(), Eigen::internal::matrix_function_solve_triangular_sylvester(), Eigen::MatrixPower< MatrixType >::MatrixPower(), Eigen::AutoDiffJacobian< Functor >::operator()(), Eigen::MetisOrdering< StorageIndex >::operator()(), Eigen::internal::permutation_matrix_product< ExpressionType, Side, Transposed, SparseShape >::permute_inner(), Eigen::internal::permutation_matrix_product< ExpressionType, Side, Transposed, SparseShape >::permute_outer(), real_qz(), Eigen::ComplexSchur< MatrixType_ >::reduceToTriangularForm(), ref_prod(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::Transform< Scalar_, Dim_, Mode_, Options_ >::rows(), Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run(), sparse_basic(), sparse_solvers(), Eigen::DenseBase< Derived >::swap(), test_dynamic_bool(), test_nnls_known_solution(), test_nnls_random_problem(), test_non_spd(), test_sparseqr_scalar(), test_stl_iterators(), gdb.printers.EigenMatrixPrinter::to_string(), gdb.printers.EigenSparseMatrixPrinter::to_string(), Eigen::internal::tridiagonalization_inplace(), trsolve(), Eigen::internal::upperbidiagonalization_blocked_helper(), and Eigen::internal::upperbidiagonalization_inplace_blocked().
|
inline |
Resizes the matrix to rows x cols while leaving old values untouched.
The method is intended for matrices of dynamic size. If you only want to change the number of rows and/or of columns, you can use conservativeResize(NoChange_t, Index) or conservativeResize(Index, NoChange_t).
Matrices are resized relative to the top-left element. In case values need to be appended to the matrix they will be uninitialized.
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::rows(), and Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run().
Referenced by Eigen::PlainObjectBase< Derived >::conservativeResize(), sparse_basic(), sparse_vector(), and svd_min_norm().
|
inline |
Resizes the matrix to rows x cols while leaving old values untouched.
As opposed to conservativeResize(Index rows, Index cols), this version leaves the number of columns unchanged.
In case the matrix is growing, new rows will be uninitialized.
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::conservativeResize(), and Eigen::PlainObjectBase< Derived >::rows().
|
inline |
Resizes the vector to size while retaining old values.
\only_for_vectors. This method does not work for partially dynamic matrices when the static dimension is anything other than 1. For example it will not work with Matrix<double, 2, Dynamic>.
When values are appended, they will be uninitialized.
References Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run(), and size.
|
inline |
Resizes the matrix to rows x cols while leaving old values untouched.
As opposed to conservativeResize(Index rows, Index cols), this version leaves the number of rows unchanged.
In case the matrix is growing, new columns will be uninitialized.
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::conservativeResize(), and Eigen::PlainObjectBase< Derived >::rows().
|
inline |
Resizes the matrix to rows x cols of other
, while leaving old values untouched.
The method is intended for matrices of dynamic size. If you only want to change the number of rows and/or of columns, you can use conservativeResize(NoChange_t, Index) or conservativeResize(Index, NoChange_t).
Matrices are resized relative to the top-left element. In case values need to be appended to the matrix they will copied from other
.
References Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run().
|
inlineconstexpr |
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.
Referenced by gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenQuaternionPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), gdb.printers.EigenSparseMatrixPrinter::to_string(), and gdb.printers.EigenQuaternionPrinter::to_string().
|
inlineconstexpr |
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), and Eigen::PlainObjectBase< Derived >::m_storage.
Referenced by Eigen::PardisoImpl< Derived >::_solve_impl(), Eigen::UmfPackLU< MatrixType_ >::_solve_impl(), Eigen::UmfPackLU< MatrixType_ >::analyzePattern_impl(), Eigen::AccelerateImpl< MatrixType_, UpLo_, Solver_, EnforceSquare_ >::buildAccelSparseMatrix(), check_indexed_view(), check_product(), check_tutorial_examples(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenQuaternionPrinter::children(), Eigen::PastixBase< Derived >::clean(), Eigen::GeneralizedEigenSolver< MatrixType_ >::compute(), Eigen::internal::lapacke_helpers::BDCSVD_LAPACKE< MatrixType_, Options >::compute_impl_lapacke(), Eigen::internal::UpperBidiagonalization< MatrixType_ >::computeUnblocked(), Eigen::Transform< Scalar_, Dim_, Mode_, Options_ >::data(), EIGEN_DECLARE_TEST(), Eigen::KroneckerProductSparse< Lhs, Rhs >::evalTo(), Eigen::SparseQR< MatrixType_, OrderingType_ >::factorize(), Eigen::UmfPackLU< MatrixType_ >::factorize_impl(), householder_update(), Eigen::UmfPackLU< MatrixType_ >::init(), main(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::MapAligned(), matrix(), Eigen::MetisOrdering< StorageIndex >::operator()(), Eigen::COLAMDOrdering< StorageIndex >::operator()(), Eigen::internal::tribb_kernel< LhsScalar, RhsScalar, Index, mr, nr, ConjLhs, ConjRhs, ResInnerStride, UpLo >::operator()(), Eigen::internal::unary_evaluator< CwiseUnaryOp< core_cast_op< SrcType, DstType >, ArgType >, IndexBased >::packet(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::panel_bmod(), Eigen::PardisoImpl< Derived >::pardisoRelease(), Eigen::UmfPackLU< MatrixType_ >::printUmfpackControl(), Eigen::UmfPackLU< MatrixType_ >::printUmfpackInfo(), Eigen::UmfPackLU< MatrixType_ >::printUmfpackStatus(), Eigen::internal::simpl_chol_helper< Scalar, StorageIndex >::run(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, true, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, ResInnerStride, Version >::run(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, false, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, ResInnerStride, Version >::run(), rvalue_copyassign(), Eigen::internal::set_from_triplets(), Eigen::internal::MappedSuperNodalMatrix< Scalar_, StorageIndex_ >::setInfos(), Eigen::RealQZ< MatrixType_ >::step(), test_async_sharded_by_inner_dim_contraction(), test_async_sharded_by_inner_dim_contraction_with_output_kernel(), test_complex2d(), test_contraction_corner_cases(), test_contractions(), test_large_contraction(), test_large_contraction_with_output_kernel(), test_multithread_contraction(), test_multithread_contraction_with_output_kernel(), test_sharded_by_inner_dim_contraction(), test_sharded_by_inner_dim_contraction_with_output_kernel(), test_small_blocking_factors(), test_stl_iterators(), gdb.printers.EigenMatrixPrinter::to_string(), gdb.printers.EigenSparseMatrixPrinter::to_string(), and gdb.printers.EigenQuaternionPrinter::to_string().
|
inline |
|
inline |
References Eigen::PlainObjectBase< Derived >::_resize_to_match().
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data().
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and compute_granudrum_aor::type.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and size.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), size, and compute_granudrum_aor::type.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data().
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and compute_granudrum_aor::type.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and size.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), size, and compute_granudrum_aor::type.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data().
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and compute_granudrum_aor::type.
|
inlinestatic |
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), Eigen::PlainObjectBase< Derived >::rows(), and compute_granudrum_aor::type.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and size.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), size, and compute_granudrum_aor::type.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data().
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and compute_granudrum_aor::type.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), and size.
|
inlinestatic |
References Eigen::PlainObjectBase< Derived >::data(), size, and compute_granudrum_aor::type.
|
inline |
Copies the generic expression other into *this.
The expression must provide a (templated) evalTo(Derived& dst) const function which does the actual job. In practice, this allows any user to write its own special matrix without having to modify MatrixBase
References Eigen::PlainObjectBase< Derived >::_resize_to_match(), and Eigen::EigenBase< Derived >::derived().
|
inlineconstexpr |
This is a special case of the templated operator=. Its purpose is to prevent a default operator= from hiding the templated operator=.
References Eigen::PlainObjectBase< Derived >::_set().
Referenced by Eigen::Array< Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ >::operator=(), and Eigen::Matrix< Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ >::operator=().
|
inline |
|
inlineconstexprprotected |
Move assignment operator.
References Eigen::PlainObjectBase< Derived >::m_storage.
|
inline |
|
inline |
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::cols(), Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, and Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::rows().
Referenced by Eigen::internal::BlockedInPlaceTranspose(), Eigen::internal::ptranspose(), and Eigen::internal::inplace_transpose_selector< MatrixType, true, true >::run().
|
inlineconstexpr |
Resizes *this
to a rows x cols matrix.
This method is intended for dynamic-size matrices, although it is legal to call it on any matrix as long as fixed dimensions are left unchanged. If you only want to change the number of rows and/or of columns, you can use resize(NoChange_t, Index), resize(Index, NoChange_t).
If the current number of coefficients of *this
exactly matches the product rows * cols, then no memory allocation is performed and the current values are left unchanged. In all other cases, including shrinking, the data is reallocated and all previous values are lost.
Example:
Output:
References Eigen::internal::check_implication(), Eigen::PlainObjectBase< Derived >::cols(), Eigen::Dynamic, eigen_assert, EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED, Eigen::PlainObjectBase< Derived >::m_storage, Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::resize(), Eigen::PlainObjectBase< Derived >::rows(), run(), and size.
Referenced by Eigen::HessenbergDecomposition< MatrixType_ >::_compute(), Eigen::PlainObjectBase< Derived >::_init1(), Eigen::PlainObjectBase< Derived >::_init2(), Eigen::UmfPackLU< MatrixType_ >::_solve_impl(), Eigen::JacobiSVD< MatrixType_, Options_ >::allocate(), Eigen::SparseLU< MatrixType_, OrderingType_ >::analyzePattern(), check_sparse_inverse(), check_sparse_spd_solving(), Eigen::internal::chkder(), Eigen::LDLT< MatrixType_, UpLo_ >::compute(), Eigen::SelfAdjointEigenSolver< MatrixType_ >::compute(), Eigen::HessenbergDecomposition< MatrixType_ >::compute(), Eigen::Tridiagonalization< MatrixType_ >::compute(), Eigen::GeneralizedEigenSolver< MatrixType_ >::compute(), Eigen::PolynomialSolver< Scalar_, Deg_ >::compute(), Eigen::FullPivHouseholderQR< MatrixType_, PermutationIndex_ >::computeInPlace(), Eigen::BDCSVD< MatrixType_, Options_ >::computeSVDofM(), Eigen::internal::FullPivHouseholderQRMatrixQReturnType< MatrixType, PermutationIndex >::evalTo(), Eigen::IncompleteCholesky< Scalar, UpLo_, OrderingType_ >::factorize(), Eigen::DiagonalPreconditioner< Scalar_ >::factorize(), Eigen::LeastSquareDiagonalPreconditioner< Scalar_ >::factorize(), generate_sparse_leastsquare_problem(), generate_sparse_nonhermitian_problem(), generate_sparse_rectangular_problem(), generate_sparse_spd_problem(), generate_sparse_square_problem(), generate_sparse_square_symmetric_problem(), Eigen::MetisOrdering< StorageIndex >::get_symmetrized_graph(), Eigen::HessenbergDecomposition< MatrixType_ >::HessenbergDecomposition(), Eigen::SuperLUBase< MatrixType_, Derived >::initFactorization(), oomph::LowStorageRungeKutta< ORDER >::LowStorageRungeKutta(), main(), Eigen::AutoDiffJacobian< Functor >::operator()(), Eigen::PlainObjectBase< Derived >::operator=(), Eigen::PlainObjectBase< Derived >::PlainObjectBase(), Eigen::LDLT< MatrixType_, UpLo_ >::rankUpdate(), Eigen::MatrixMarketIterator< Scalar >::refX(), replicate(), Eigen::PlainObjectBase< Derived >::resizeLike(), Eigen::MatrixMarketIterator< Scalar >::rhs(), Eigen::internal::simpl_chol_helper< Scalar, StorageIndex >::run(), Eigen::internal::householder_qr_inplace_blocked< MatrixQR, HCoeffs, MatrixQRScalar, InnerStrideIsOne >::run(), Eigen::PolynomialSolverBase< Scalar_, Deg_ >::setPolynomial(), sparse_solvers(), trsolve(), and Eigen::internal::upperbidiagonalization_inplace_unblocked().
|
inlineconstexpr |
Resizes the matrix, changing only the number of rows. For the parameter of type NoChange_t, just pass the special value NoChange
as in the example below.
Example:
Output:
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::PlainObjectBase< Derived >::rows().
Referenced by Eigen::PlainObjectBase< Derived >::resize().
|
inlineconstexpr |
Resizes *this
to a vector of length size
\only_for_vectors. This method does not work for partially dynamic matrices when the static dimension is anything other than 1. For example it will not work with Matrix<double, 2, Dynamic>.
Example:
Output:
References Eigen::Dynamic, eigen_assert, EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED, EIGEN_STATIC_ASSERT_VECTOR_ONLY, Eigen::PlainObjectBase< Derived >::m_storage, Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::resize(), and size.
|
inlineconstexpr |
Resizes the matrix, changing only the number of columns. For the parameter of type NoChange_t, just pass the special value NoChange
as in the example below.
Example:
Output:
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::resize(), and Eigen::PlainObjectBase< Derived >::rows().
Referenced by Eigen::PlainObjectBase< Derived >::resize().
|
inline |
Resizes *this
to have the same dimensions as other. Takes care of doing all the checking that's needed.
Note that copying a row-vector into a vector (and conversely) is allowed. The resizing, if any, is then done in the appropriate way so that row-vectors remain row-vectors and vectors remain vectors.
References Eigen::EigenBase< Derived >::derived(), eigen_assert, Eigen::PlainObjectBase< Derived >::resize(), and run().
Referenced by Eigen::PlainObjectBase< Derived >::_resize_to_match(), Eigen::copy_using_evaluator(), and Eigen::PlainObjectBase< Derived >::PlainObjectBase().
|
inline |
References Eigen::PlainObjectBase< Derived >::m_storage, and Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::rows().
Referenced by gdb.printers._MatrixEntryIterator::__next__(), Eigen::HessenbergDecomposition< MatrixType_ >::_compute(), Eigen::PlainObjectBase< Derived >::_init2(), Eigen::PlainObjectBase< Derived >::_resize_to_match(), bench(), binary_op_test(), check_generateRandomMatrixSvs(), check_indexed_view(), check_sparse_inverse(), check_sparse_leastsquare_solving(), check_sparse_solving(), check_sparse_spd_solving(), check_sparse_square_solving(), check_tutorial_examples(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), Eigen::internal::MatrixFunctionAtomic< MatrixType >::compute(), Eigen::internal::MatrixLogarithmAtomic< MatrixType >::compute(), Eigen::GeneralizedEigenSolver< MatrixType_ >::compute(), Eigen::ArpackGeneralizedSelfAdjointEigenSolver< MatrixType, MatrixSolver, BisSPD >::compute(), Eigen::GeneralizedSelfAdjointEigenSolver< MatrixType_ >::compute(), compute_norm_equation(), Eigen::PlainObjectBase< Derived >::conservativeResize(), Eigen::copy_using_evaluator(), DenseLM< Scalar >::df(), equalsIdentity(), Eigen::MetisOrdering< StorageIndex >::get_symmetrized_graph(), initSparse(), initSPD(), main(), Eigen::PlainObjectBase< Derived >::Map(), Eigen::PlainObjectBase< Derived >::MapAligned(), Eigen::internal::matrix_exp_pade13(), Eigen::internal::matrix_exp_pade3(), Eigen::internal::matrix_exp_pade5(), Eigen::internal::matrix_exp_pade7(), Eigen::internal::matrix_exp_pade9(), Eigen::internal::matrix_function_compute_mu(), Eigen::internal::matrix_function_solve_triangular_sylvester(), Eigen::MatrixPower< MatrixType >::MatrixPower(), Eigen::AutoDiffJacobian< Functor >::operator()(), Eigen::internal::companion< Scalar_, Deg_ >::operator()(), Eigen::internal::permutation_matrix_product< ExpressionType, Side, Transposed, SparseShape >::permute_inner(), Eigen::internal::permutation_matrix_product< ExpressionType, Side, Transposed, SparseShape >::permute_outer(), Eigen::ComplexSchur< MatrixType_ >::reduceToTriangularForm(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run(), sparse_basic(), sparse_vector(), Eigen::BDCSVD< MatrixType_, Options_ >::structured_update(), Eigen::DenseBase< Derived >::swap(), test_accelerate_ldlt(), test_accelerate_llt(), test_accelerate_qr(), test_nnls_random_problem(), test_non_spd(), test_sparseqr_scalar(), test_spqr_scalar(), test_stl_iterators(), testMapRef(), gdb.printers.EigenMatrixPrinter::to_string(), gdb.printers.EigenSparseMatrixPrinter::to_string(), Eigen::internal::tridiagonalization_inplace(), trsolve(), Eigen::internal::upperbidiagonalization_blocked_helper(), and Eigen::internal::upperbidiagonalization_inplace_blocked().
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | Index | rows, |
Index | cols, | ||
const Scalar & | val | ||
) |
Resizes to the given size, and sets all coefficients in this expression to the given value val.
rows | the new number of rows |
cols | the new number of columns |
val | the value to which all coefficients are set |
Example:
Output:
References cols, resize(), rows, setConstant(), and calibrate::val.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | Index | rows, |
NoChange_t | , | ||
const Scalar & | val | ||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to the given value val. For the parameter of type NoChange_t, just pass the special value NoChange
.
References cols, rows, setConstant(), and calibrate::val.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | Index | size, |
const Scalar & | val | ||
) |
Resizes to the given size, and sets all coefficients in this expression to the given value val.
\only_for_vectors
Example:
Output:
References resize(), setConstant(), size, and calibrate::val.
Referenced by Eigen::GeneralizedEigenSolver< MatrixType_ >::compute(), Eigen::RealSchur< MatrixType_ >::computeShift(), Eigen::SparseQR< MatrixType_, OrderingType_ >::factorize(), Eigen::SparseLU< MatrixType_, OrderingType_ >::factorize(), Eigen::MetisOrdering< StorageIndex >::get_symmetrized_graph(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::heap_relax_snode(), main(), Eigen::Array< Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ >::operator=(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::relax_snode(), and Eigen::AlignedBox< Scalar_, AmbientDim_ >::setEmpty().
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setConstant | ( | NoChange_t | , |
Index | cols, | ||
const Scalar & | val | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to the given value val. For the parameter of type NoChange_t, just pass the special value NoChange
.
References cols, rows, setConstant(), and calibrate::val.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | Index | rows, |
Index | cols | ||
) |
Resizes to the given size, and sets all coefficients in this expression to one.
rows | the new number of rows |
cols | the new number of columns |
Example:
Output:
References cols, resize(), rows, and setConstant().
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | Index | rows, |
NoChange_t | |||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to one. For the parameter of type NoChange_t, just pass the special value NoChange
.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | Index | newSize | ) |
Resizes to the given newSize, and sets all coefficients in this expression to one.
\only_for_vectors
Example:
Output:
References resize(), and setConstant().
Referenced by check_indexed_view(), Eigen::SelfAdjointEigenSolver< MatrixType_ >::compute(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, true, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, ResInnerStride, Version >::run(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, false, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, ResInnerStride, Version >::run(), and Eigen::internal::companion< Scalar_, Deg_ >::setPolynomial().
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setOnes | ( | NoChange_t | , |
Index | cols | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to one. For the parameter of type NoChange_t, just pass the special value NoChange
.
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | Index | rows, |
Index | cols | ||
) |
Resizes to the given size, and sets all coefficients in this expression to random values.
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
\not_reentrant
rows | the new number of rows |
cols | the new number of columns |
Example:
Output:
References cols, resize(), rows, and setRandom().
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | Index | rows, |
NoChange_t | |||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to random values. For the parameter of type NoChange_t, just pass the special value NoChange
.
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
\not_reentrant
References cols, rows, and setRandom().
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | Index | newSize | ) |
Resizes to the given newSize, and sets all coefficients in this expression to random values.
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
\only_for_vectors \not_reentrant
Example:
Output:
References resize(), and setRandom().
Referenced by bench(), bug_1311(), check_sparse_square_determinant(), EIGEN_DECLARE_TEST(), homogeneous(), inplace(), inverse_for_fixed_size(), main(), map_class_matrix(), openglsupport_test_loop(), packetmath_notcomplex(), product(), product1x1(), product_large_regressions(), product_small_regressions(), reshape4x4(), Eigen::MatrixMarketIterator< Scalar >::rhs(), sparse_basic(), test_aliasing(), test_blocks(), test_dynamic_bool(), test_lazy_single(), test_linear_but_not_vectorizable(), test_scalar_sugar_add_mul(), test_scalar_sugar_sub_div(), test_stl_iterators(), test_unaryview_solve(), triangular_square(), trsolve(), and unaligned_objects().
EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setRandom | ( | NoChange_t | , |
Index | cols | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to random values. For the parameter of type NoChange_t, just pass the special value NoChange
.
Numbers are uniformly spread through their whole definition range for integer types, and in the [-1:1] range for floating point scalar types.
\not_reentrant
References cols, rows, and setRandom().
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | Index | rows, |
Index | cols | ||
) |
Resizes to the given size, and sets all coefficients in this expression to zero.
rows | the new number of rows |
cols | the new number of columns |
Example:
Output:
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | Index | rows, |
NoChange_t | |||
) |
Resizes to the given size, changing only the number of rows, and sets all coefficients in this expression to zero. For the parameter of type NoChange_t, just pass the special value NoChange
.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | Index | newSize | ) |
Resizes to the given size, and sets all coefficients in this expression to zero.
\only_for_vectors
Example:
Output:
References resize(), and setZero().
Referenced by Eigen::internal::chkder(), cholesky(), Eigen::GeneralizedEigenSolver< MatrixType_ >::compute(), RandomImpl< Eigen::SparseMatrix< Scalar, Options, DenseIndex > >::Create(), RandomImpl< Eigen::SparseVector< Scalar, Options, DenseIndex > >::Create(), Eigen::DGMRES< MatrixType_, Preconditioner_ >::dgmresComputeDeflationData(), Eigen::DGMRES< MatrixType_, Preconditioner_ >::dgmresCycle(), eiToDense(), NurbsSurface::evaluateDerivatives(), Eigen::SparseQR< MatrixType_, OrderingType_ >::factorize(), Eigen::SparseLU< MatrixType_, OrderingType_ >::factorize(), Eigen::LeastSquareDiagonalPreconditioner< Scalar_ >::factorize(), Eigen::internal::fdjac1(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::heap_relax_snode(), Eigen::internal::lmpar2(), Eigen::internal::lmqrsolv(), main(), Eigen::internal::matrix_function_compute_cluster_size(), Eigen::internal::tribb_kernel< LhsScalar, RhsScalar, Index, mr, nr, ConjLhs, ConjRhs, ResInnerStride, UpLo >::operator()(), Eigen::Transform< Scalar_, Dim_, Mode_, Options_ >::operator=(), Eigen::PardisoImpl< Derived >::PardisoImpl(), product_sweep(), Eigen::internal::qrsolv(), real_qz(), Eigen::internal::SparseLUImpl< Scalar, StorageIndex >::relax_snode(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, true, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, ResInnerStride, Version >::run(), Eigen::internal::product_triangular_matrix_matrix< Scalar, Index, Mode, false, LhsStorageOrder, ConjugateLhs, RhsStorageOrder, ConjugateRhs, ColMajor, ResInnerStride, Version >::run(), Eigen::internal::MappedSuperNodalMatrix< Scalar_, StorageIndex_ >::solveInPlace(), Eigen::internal::MappedSuperNodalMatrix< Scalar_, StorageIndex_ >::solveTransposedInPlace(), sparse_basic(), sparse_block(), sparse_vector(), svd_min_norm(), test_complex_sqrt(), test_stl_iterators(), and testPascal().
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & Eigen::PlainObjectBase< Derived >::setZero | ( | NoChange_t | , |
Index | cols | ||
) |
Resizes to the given size, changing only the number of columns, and sets all coefficients in this expression to zero. For the parameter of type NoChange_t, just pass the special value NoChange
.
|
inline |
Override DenseBase::swap() since for dynamic-sized matrices of same type it is enough to swap the data pointers.
References Eigen::Dynamic, and Eigen::run().
Referenced by Eigen::JacobiSVD< MatrixType_, Options_ >::compute_impl(), Eigen::KdBVH< Scalar_, Dim_, _Object >::init(), permutationmatrices(), and Eigen::ComplexEigenSolver< MatrixType_ >::sortEigenvalues().
|
inline |
const version forwarded to DenseBase::swap
References swap().
|
inline |
|
inline |
References Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::cols(), Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::data(), Eigen::PlainObjectBase< Derived >::m_storage, Eigen::RowMajorBit, Eigen::internal::DenseStorage_impl< T, Size, Rows, Cols, Options >::rows(), and calibrate::val.
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Referenced by Eigen::PlainObjectBase< Derived >::_init1(), Eigen::PlainObjectBase< Derived >::_init2(), Eigen::PlainObjectBase< Derived >::coeff(), Eigen::PlainObjectBase< Derived >::coeffRef(), Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), Eigen::PlainObjectBase< Derived >::operator=(), Eigen::PlainObjectBase< Derived >::packet(), Eigen::PlainObjectBase< Derived >::PlainObjectBase(), Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::rows(), and Eigen::PlainObjectBase< Derived >::writePacket().