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 6123325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:00:10+00:00 2026-05-23T16:00:10+00:00

I am trying to declare and use XNA Vectors for Matrix Multiplication, Summation, etc.

  • 0

I am trying to declare and use XNA Vectors for Matrix Multiplication, Summation, etc. in C#.

Those will be used for Image processing to make it faster than regular SetPixel and GetPixel. However, I am always failing to find a working example and I tried many examples online but it seems I am missing something.

Any help and sample code?

Thanks!

  • 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-23T16:00:11+00:00Added an answer on May 23, 2026 at 4:00 pm

    If you are worried about Performance then you can revert to coding in unsafe context.

    By marking a type, type member, or statement block with the unsafe keyword, you’re permitted to use pointer types and perform C++ style pointer operations on memory within that scope, and to be able to do this within the managed execution framework. Unsafe code can run faster than a corresponding safe implementation.

    Here is a nice, short example that comes from the book C# 4.0 in a Nutshell:

    unsafe void BlueFilter (int[,] bitmap)
      {
        int length = bitmap.Length;
        fixed (int* b=bitmap)
        {
            int* p=b;
            for (int i=0, i<length; i++)
            *p++ &= 0xFF;
        }
       }
    

    (Source)


    Apart from that you should also take a look at this SO Question

    Why is matrix multiplication in .NET so slow?

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

Sidebar

Related Questions

I am trying to declare some integer values (used for controlling checkboxes that I
I was trying to overload classes to strings in perl. For example: use MooseX::Declare;
I am trying to use namespaces to declare an api. My routes.rb contains: devise_scope
I'm trying to use this tutorial to make plots with Gnuplot in C++. However
I'm trying to declare an interface that contains a method which will return a
I am trying to declare and use a class B inside of a class
I'm trying to use Entity Framework - Repository Pattern. (Asp.net C#, EF4) I make
I am trying to use different components in my controller; I declare the use
I'm trying to use preprocessor tricks to declare a magic variable. Something like this:
At the moment I am trying to use an integer to declare whether or

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.