comparison liboctave/numeric/sparse-qr.cc @ 21215:04866fac690a

use template keyword to handle dependent template names * sparse-qr.cc (sparse_qr<SPARSE_T>::tall_solve): Use template keyword to treat tall_solve as a dependent template name. (sparse_qr<SPARSE_T>::wide_solve): Likewise, for wide_solve.
author Ben Abbott <bpabbott@mac.comg>
date Sun, 07 Feb 2016 02:21:37 -0500
parents 945695cafd2b
children 40de9f8f23a6
comparison
equal deleted inserted replaced
21214:7be1f58f9dd7 21215:04866fac690a
2188 template <typename SPARSE_T> 2188 template <typename SPARSE_T>
2189 template <typename RHS_T, typename RET_T> 2189 template <typename RHS_T, typename RET_T>
2190 RET_T 2190 RET_T
2191 sparse_qr<SPARSE_T>::tall_solve (const RHS_T& b, octave_idx_type& info) const 2191 sparse_qr<SPARSE_T>::tall_solve (const RHS_T& b, octave_idx_type& info) const
2192 { 2192 {
2193 return rep->tall_solve<RHS_T, RET_T> (b, info); 2193 return rep->template tall_solve<RHS_T, RET_T> (b, info);
2194 } 2194 }
2195 2195
2196 template <typename SPARSE_T> 2196 template <typename SPARSE_T>
2197 template <typename RHS_T, typename RET_T> 2197 template <typename RHS_T, typename RET_T>
2198 RET_T 2198 RET_T
2199 sparse_qr<SPARSE_T>::wide_solve (const RHS_T& b, octave_idx_type& info) const 2199 sparse_qr<SPARSE_T>::wide_solve (const RHS_T& b, octave_idx_type& info) const
2200 { 2200 {
2201 return rep->wide_solve<RHS_T, RET_T> (b, info); 2201 return rep->template wide_solve<RHS_T, RET_T> (b, info);
2202 } 2202 }
2203 2203
2204 Matrix 2204 Matrix
2205 qrsolve (const SparseMatrix& a, const MArray<double>& b, 2205 qrsolve (const SparseMatrix& a, const MArray<double>& b,
2206 octave_idx_type& info) 2206 octave_idx_type& info)