mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 01:59:38 +08:00
compilation fix
This commit is contained in:
parent
0b32c5bdda
commit
147a63c4b5
@ -53,6 +53,17 @@ void blas_gemm(const MatrixXf& a, const MatrixXf& b, MatrixXf& c)
|
|||||||
c.data(),&ldc);
|
c.data(),&ldc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EIGEN_DONT_INLINE void blas_gemm(const MatrixXd& a, const MatrixXd& b, MatrixXd& c)
|
||||||
|
{
|
||||||
|
int M = c.rows(); int N = c.cols(); int K = a.cols();
|
||||||
|
int lda = a.rows(); int ldb = b.rows(); int ldc = c.rows();
|
||||||
|
|
||||||
|
dgemm_(¬rans,¬rans,&M,&N,&K,&done,
|
||||||
|
const_cast<double*>(a.data()),&lda,
|
||||||
|
const_cast<double*>(b.data()),&ldb,&done,
|
||||||
|
c.data(),&ldc);
|
||||||
|
}
|
||||||
|
|
||||||
void blas_gemm(const MatrixXcf& a, const MatrixXcf& b, MatrixXcf& c)
|
void blas_gemm(const MatrixXcf& a, const MatrixXcf& b, MatrixXcf& c)
|
||||||
{
|
{
|
||||||
int M = c.rows(); int N = c.cols(); int K = a.cols();
|
int M = c.rows(); int N = c.cols(); int K = a.cols();
|
||||||
@ -75,16 +86,7 @@ void blas_gemm(const MatrixXcd& a, const MatrixXcd& b, MatrixXcd& c)
|
|||||||
(double*)c.data(),&ldc);
|
(double*)c.data(),&ldc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void blas_gemm(const MatrixXd& a, const MatrixXd& b, MatrixXd& c)
|
|
||||||
{
|
|
||||||
int M = c.rows(); int N = c.cols(); int K = a.cols();
|
|
||||||
int lda = a.rows(); int ldb = b.rows(); int ldc = c.rows();
|
|
||||||
|
|
||||||
dgemm_(¬rans,¬rans,&M,&N,&K,&done,
|
|
||||||
const_cast<double*>(a.data()),&lda,
|
|
||||||
const_cast<double*>(b.data()),&ldb,&done,
|
|
||||||
c.data(),&ldc);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user