mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #86 : use internal:: namespace instead of ei_ prefix
This commit is contained in:
@@ -45,7 +45,7 @@ template<> struct iters_before_test<double> { enum { ret = 16 }; };
|
||||
|
||||
template<typename Real> void MandelbrotThread::render(int img_width, int img_height)
|
||||
{
|
||||
enum { packetSize = Eigen::ei_packet_traits<Real>::size }; // number of reals in a Packet
|
||||
enum { packetSize = Eigen::internal::packet_traits<Real>::size }; // number of reals in a Packet
|
||||
typedef Eigen::Array<Real, packetSize, 1> Packet; // wrap a Packet as a vector
|
||||
|
||||
enum { iters_before_test = iters_before_test<Real>::ret };
|
||||
@@ -163,8 +163,8 @@ void MandelbrotWidget::paintEvent(QPaintEvent *)
|
||||
<< elapsed << " ms, "
|
||||
<< speed << " iters/s (max " << max_speed << ")" << std::endl;
|
||||
int packetSize = threads[0]->single_precision
|
||||
? int(Eigen::ei_packet_traits<float>::size)
|
||||
: int(Eigen::ei_packet_traits<double>::size);
|
||||
? int(Eigen::internal::packet_traits<float>::size)
|
||||
: int(Eigen::internal::packet_traits<double>::size);
|
||||
setWindowTitle(QString("resolution ")+QString::number(xradius*2/width(), 'e', 2)
|
||||
+QString(", %1 iterations per pixel, ").arg(threads[0]->max_iter)
|
||||
+(threads[0]->single_precision ? QString("single ") : QString("double "))
|
||||
|
||||
@@ -67,7 +67,7 @@ class GpuHelper
|
||||
|
||||
template<typename Scalar, typename Derived>
|
||||
void loadMatrix(
|
||||
const Eigen::CwiseNullaryOp<Eigen::ei_scalar_identity_op<Scalar>,Derived>&,
|
||||
const Eigen::CwiseNullaryOp<Eigen::internal::scalar_identity_op<Scalar>,Derived>&,
|
||||
GLenum matrixTarget);
|
||||
|
||||
/** Make the matrix \a matrixTarget the current OpenGL matrix target.
|
||||
@@ -86,7 +86,7 @@ class GpuHelper
|
||||
|
||||
template<typename Scalar, typename Derived>
|
||||
void pushMatrix(
|
||||
const Eigen::CwiseNullaryOp<Eigen::ei_scalar_identity_op<Scalar>,Derived>&,
|
||||
const Eigen::CwiseNullaryOp<Eigen::internal::scalar_identity_op<Scalar>,Derived>&,
|
||||
GLenum matrixTarget);
|
||||
|
||||
/** Push and clone the OpenGL matrix \a matrixTarget
|
||||
@@ -161,7 +161,7 @@ void GpuHelper::multMatrix(const Matrix<Scalar,4,4, _Flags, 4,4>& mat, GLenum ma
|
||||
|
||||
template<typename Scalar, typename Derived>
|
||||
void GpuHelper::loadMatrix(
|
||||
const Eigen::CwiseNullaryOp<Eigen::ei_scalar_identity_op<Scalar>,Derived>&,
|
||||
const Eigen::CwiseNullaryOp<Eigen::internal::scalar_identity_op<Scalar>,Derived>&,
|
||||
GLenum matrixTarget)
|
||||
{
|
||||
setMatrixTarget(matrixTarget);
|
||||
@@ -190,7 +190,7 @@ inline void GpuHelper::pushMatrix(const Matrix<Scalar,4,4, _Flags, 4,4>& mat, GL
|
||||
|
||||
template<typename Scalar, typename Derived>
|
||||
void GpuHelper::pushMatrix(
|
||||
const Eigen::CwiseNullaryOp<Eigen::ei_scalar_identity_op<Scalar>,Derived>&,
|
||||
const Eigen::CwiseNullaryOp<Eigen::internal::scalar_identity_op<Scalar>,Derived>&,
|
||||
GLenum matrixTarget)
|
||||
{
|
||||
pushMatrix(matrixTarget);
|
||||
|
||||
@@ -249,7 +249,7 @@ void RenderingWidget::drawScene()
|
||||
gpu.drawVector(Vector3f::Zero(), length*Vector3f::UnitZ(), Color(0,0,1,1));
|
||||
|
||||
// draw the fractal object
|
||||
float sqrt3 = ei_sqrt(3.);
|
||||
float sqrt3 = internal::sqrt(3.);
|
||||
glLightfv(GL_LIGHT0, GL_AMBIENT, Vector4f(0.5,0.5,0.5,1).data());
|
||||
glLightfv(GL_LIGHT0, GL_DIFFUSE, Vector4f(0.5,1,0.5,1).data());
|
||||
glLightfv(GL_LIGHT0, GL_SPECULAR, Vector4f(1,1,1,1).data());
|
||||
|
||||
@@ -38,7 +38,7 @@ void Trackball::track(const Vector2i& point2D)
|
||||
{
|
||||
Vector3f axis = mLastPoint3D.cross(newPoint3D).normalized();
|
||||
float cos_angle = mLastPoint3D.dot(newPoint3D);
|
||||
if ( ei_abs(cos_angle) < 1.0 )
|
||||
if ( internal::abs(cos_angle) < 1.0 )
|
||||
{
|
||||
float angle = 2. * acos(cos_angle);
|
||||
if (mMode==Around)
|
||||
|
||||
Reference in New Issue
Block a user