mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Added missing EIGEN_DEVICE_FUNC qualifiers
This commit is contained in:
parent
4a7df114c8
commit
c36bc2d445
@ -76,7 +76,7 @@ struct any_unroller<Derived, Dynamic, Rows>
|
|||||||
* \sa any(), Cwise::operator<()
|
* \sa any(), Cwise::operator<()
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline bool DenseBase<Derived>::all() const
|
EIGEN_DEVICE_FUNC inline bool DenseBase<Derived>::all() const
|
||||||
{
|
{
|
||||||
typedef internal::evaluator<Derived> Evaluator;
|
typedef internal::evaluator<Derived> Evaluator;
|
||||||
enum {
|
enum {
|
||||||
@ -100,7 +100,7 @@ inline bool DenseBase<Derived>::all() const
|
|||||||
* \sa all()
|
* \sa all()
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline bool DenseBase<Derived>::any() const
|
EIGEN_DEVICE_FUNC inline bool DenseBase<Derived>::any() const
|
||||||
{
|
{
|
||||||
typedef internal::evaluator<Derived> Evaluator;
|
typedef internal::evaluator<Derived> Evaluator;
|
||||||
enum {
|
enum {
|
||||||
@ -124,7 +124,7 @@ inline bool DenseBase<Derived>::any() const
|
|||||||
* \sa all(), any()
|
* \sa all(), any()
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline Eigen::Index DenseBase<Derived>::count() const
|
EIGEN_DEVICE_FUNC inline Eigen::Index DenseBase<Derived>::count() const
|
||||||
{
|
{
|
||||||
return derived().template cast<bool>().template cast<Index>().sum();
|
return derived().template cast<bool>().template cast<Index>().sum();
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace Eigen {
|
|||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
template<typename DiagonalDerived>
|
template<typename DiagonalDerived>
|
||||||
inline const Product<Derived, DiagonalDerived, LazyProduct>
|
EIGEN_DEVICE_FUNC inline const Product<Derived, DiagonalDerived, LazyProduct>
|
||||||
MatrixBase<Derived>::operator*(const DiagonalBase<DiagonalDerived> &a_diagonal) const
|
MatrixBase<Derived>::operator*(const DiagonalBase<DiagonalDerived> &a_diagonal) const
|
||||||
{
|
{
|
||||||
return Product<Derived, DiagonalDerived, LazyProduct>(derived(),a_diagonal.derived());
|
return Product<Derived, DiagonalDerived, LazyProduct>(derived(),a_diagonal.derived());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user