Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 919653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:34:54+00:00 2026-05-15T18:34:54+00:00

I have an image processing algorithm which makes of matrices, I have my own

  • 0

I have an image processing algorithm which makes of matrices, I have my own matrix operation codes (Multiplication, Inverse…) with me. But the processor I use is ARM Cortex-A8 processor, which has NEON co-processor for vectorization, as matrix operations are ideal cases for SIMD operations, I asked the compiler (-mfpu=neon -mfloat-abi=softfp) to generate NEON instructions for my code, but the compiler fails to do so and then I also attempted to write my own NEON intrinsics code for the Matrix operations, but I found it very hard to do so.

So, I thought of making use of Eigen library which promises vectorization of matrix operations. So I promptly downloaded the Eigen C++ library and tried using it as given in their tutorials but, unfortunately I get compilation errors when I run their example programs.

Anyone out there who has experience using Eigen, any examples will be really helpful? Kindly help me how to go about it.

Help!

Thanks


I have the Eigen folder at: /home/ubuntu/Documents/eigen I set this path in my Eclipse’s C++ project’s additional directories. Then I run the following program (Example)-

#include <Eigen/Core>

// import most common Eigen types
USING_PART_OF_NAMESPACE_EIGEN

int main(int, char *[])
{
  Matrix3f m3;
  m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;
  Matrix4f m4 = Matrix4f::Identity();
  Vector4i v4(1, 2, 3, 4);

  std::cout << "m3\n" << m3 << "\nm4:\n"
    << m4 << "\nv4:\n" << v4 << std::endl;
}

Errors I get –

Build of configuration Debug for project Test_Eigen ****

make all

Building file: ../main.cpp

Invoking: Sourcery G++ C++ Compiler

arm-none-linux-gnueabi-g++ -I/home/ubuntu/Documents/eigen -O0 -g3 -Wall -c -fmessage-length=0 -fcommon -MMD -MP -MF”main.d” -MT”main.d” -mcpu=cortex-a8 -marm -o”main.o”

“../main.cpp”

../main.cpp:6: error: expected constructor, destructor, or type conversion before ‘int’
make: *** [main.o] Error 1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:34:55+00:00Added an answer on May 15, 2026 at 6:34 pm

    The USING_PART_OF_NAMESPACE_EIGEN macro was removed in Eigen 3. Instead, simply use

    using namespace Eigen;
    

    Apparently, the tutorial is outdated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have some cool Image Processing algorithm. I have written it in OCaml.
I have to run an image processing algorithm on numerous images in a directory.
I have a small image processing application which does multiple things at once using
I have a little problem with my pixellation image processing algorithm. I load the
I am implementing an image processing algorithm in C++ using openCV, in which the
I have sample image processing code which applies a convolution filter over an image
I am implementing a certain image processing algorithm with CUDA and I have some
I have an image processing algorithm running on an ARM-Cortex-A8/Ubuntu 9.01 platform and I
I'm experienced C++ developer doing image processing, but I have a task to create
I have been trying to find decent Image Acquisition + Image Processing solution at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.