mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 18:03:13 +08:00
fix market IO
This commit is contained in:
parent
0ee9dede55
commit
116dbf2c28
@ -17,8 +17,8 @@ namespace Eigen {
|
|||||||
|
|
||||||
namespace internal
|
namespace internal
|
||||||
{
|
{
|
||||||
template <typename Scalar>
|
template <typename Scalar,typename IndexType>
|
||||||
inline bool GetMarketLine (std::stringstream& line, Index& M, Index& N, Index& i, Index& j, Scalar& value)
|
inline bool GetMarketLine (std::stringstream& line, IndexType& M, IndexType& N, IndexType& i, IndexType& j, Scalar& value)
|
||||||
{
|
{
|
||||||
line >> i >> j >> value;
|
line >> i >> j >> value;
|
||||||
i--;
|
i--;
|
||||||
@ -30,8 +30,8 @@ namespace internal
|
|||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
template <typename Scalar>
|
template <typename Scalar,typename IndexType>
|
||||||
inline bool GetMarketLine (std::stringstream& line, Index& M, Index& N, Index& i, Index& j, std::complex<Scalar>& value)
|
inline bool GetMarketLine (std::stringstream& line, IndexType& M, IndexType& N, IndexType& i, IndexType& j, std::complex<Scalar>& value)
|
||||||
{
|
{
|
||||||
Scalar valR, valI;
|
Scalar valR, valI;
|
||||||
line >> i >> j >> valR >> valI;
|
line >> i >> j >> valR >> valI;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user