mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Fix linking issue
This commit is contained in:
parent
b47a7e5c3a
commit
8e247744a4
@ -480,7 +480,7 @@ struct MakeIndexing<T,typename internal::enable_if<internal::is_integral<T>::val
|
||||
};
|
||||
|
||||
// Replace symbolic last/end "keywords" by their true runtime value
|
||||
Index eval_expr_given_size(Index x, Index /* size */) { return x; }
|
||||
inline Index eval_expr_given_size(Index x, Index /* size */) { return x; }
|
||||
|
||||
template<int N>
|
||||
fix_t<N> eval_expr_given_size(fix_t<N> x, Index /*size*/) { return x; }
|
||||
@ -580,10 +580,10 @@ struct end_t {
|
||||
};
|
||||
static const end_t end;
|
||||
|
||||
Index eval_expr_given_size(last_t, Index size) { return size-1; }
|
||||
Index eval_expr_given_size(shifted_last x, Index size) { return size+x.offset-1; }
|
||||
Index eval_expr_given_size(end_t, Index size) { return size; }
|
||||
Index eval_expr_given_size(shifted_end x, Index size) { return size+x.offset; }
|
||||
inline Index eval_expr_given_size(last_t, Index size) { return size-1; }
|
||||
inline Index eval_expr_given_size(shifted_last x, Index size) { return size+x.offset-1; }
|
||||
inline Index eval_expr_given_size(end_t, Index size) { return size; }
|
||||
inline Index eval_expr_given_size(shifted_end x, Index size) { return size+x.offset; }
|
||||
|
||||
template<typename FirstType=Index,typename LastType=Index,typename IncrType=fix_t<1> >
|
||||
class ArithemeticSequenceProxyWithBounds
|
||||
|
@ -159,7 +159,7 @@ struct unary_evaluator<IndexedView<ArgType, RowIndices, ColIndices>, IndexBased>
|
||||
typedef IndexedView<ArgType, RowIndices, ColIndices> XprType;
|
||||
|
||||
enum {
|
||||
CoeffReadCost = evaluator<ArgType>::CoeffReadCost /* + cost of row/col index */,
|
||||
CoeffReadCost = evaluator<ArgType>::CoeffReadCost /* TODO + cost of row/col index */,
|
||||
|
||||
Flags = (evaluator<ArgType>::Flags & (HereditaryBits /*| LinearAccessBit | DirectAccessBit*/)),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user