Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
0 answers
80 views

16x16 integer matrix transpose using SSE2 intrinsics in C

I was inspired by this and this to make a C function that would take an array of 16 __m128i, treat it as a matrix of 16x16 ...
Steve Ward's user avatar
3 votes
3 answers
495 views

Matrix Multiplication & Addition

I created this small library to perform basic arithmetic on matrices. I have written the code, and it runs fine. Is there any unexpected behavior or memory leaks? Any room for improvement? ...
nabat's user avatar
  • 103
2 votes
1 answer
110 views

Transpose matrix in ANSI C

Is there a way to transpose a matrix in ANSI C way much better than this ANSI C code? Can I do transpose in a different and ...
euraad's user avatar
  • 183
3 votes
1 answer
601 views

Matrix-vector multiplication with block-column distribution and MPI_Reduce_scatter

I'm studying MPI and I'm trying to solve the exercise (number 3.5) taken from Pacheco's book Introduction to parallel programming. Essentially the exercise is: Write an MPI program that computes the ...
bobinthebox's user avatar
2 votes
1 answer
137 views

Matrix led 7x10 with arduino

Good afternoon, a few days ago I finished a personal project of a 7x10 led matrix programmed with the ATMEGA328p microcontroller. To control the matrix I use 2 74HC595 shift registers in cascade in ...
Lucio Mazzini's user avatar
4 votes
1 answer
435 views

Need for matrix multiplication speed

I need help to make matrix multiplication in C run as fast as possible. On my AMD Phenom(tm) II X6 1090T, my program multiplies two square singe precision 4096x4096 matrices in about 6.9 seconds. ...
Gaslight Deceive Subvert's user avatar
1 vote
1 answer
143 views

multiply matrices

I wrote a program that calculates the multiplication of two matrices (of compatible dimensions) where each element of the resulting matrix is ​​calculated by a separate thread. Each thread calculates ...
Mark's user avatar
  • 499
4 votes
2 answers
206 views

Two-dimensional arrays in C

The concrete purpose is transferring a string array to a matrix of coefficients and the solving it as a linear system of equations. I have a bit of trouble with two-dimensional arrays in C. I want to ...
Luqus's user avatar
  • 41
3 votes
3 answers
192 views

C string parser criticism

I have written a program to parse a string depending on the string the user provides. Any advise/criticism is appreciated. ...
CLox's user avatar
  • 419
0 votes
2 answers
444 views

Matrix Calculator program in C language. How to avoid redundancy [closed]

I am trying to make a program for matrix Calculator and have done this so far. I want to avoid iteration or replication of the statements in my code but I want to restrict using the pointers in this. ...
Jaskirat Singh's user avatar
1 vote
2 answers
275 views

Recursive Matrix Multiplication Algorithm

Can I improve on this any further. Is there a prettier way of passing the array sizes? ...
Ivor Denham-Dyson's user avatar
3 votes
1 answer
105 views

Print out symmetric matrix from compactly stored array

I have an array of the form (3x3 case as an example) $$A = [a_{11}, a_{12}, a_{22}, a_{13}, a_{23}, a_{33}] $$ corresponding to the symmetric matrix $$\begin{pmatrix} a_{11} & a_{12} & a_{13}\\...
P-A's user avatar
  • 153
3 votes
2 answers
171 views

C program that dynamically allocates and fills 2 matrices, verifies if the smaller one is a subset of the other, and checks a condition

Yesterday, I asked this question because I was asked to implement a software that used variably sized matrices with C89's limitation, so I had to practise dynamic pointer-to-pointer allocation. After ...
Samuele B.'s user avatar
3 votes
3 answers
348 views

Rotate square matrix clockwise by 90degrees

...
kesarling's user avatar
  • 352
5 votes
1 answer
90 views

Striping a matrix concentrically, anticlockwise

Given a matrix you shall stripe the matrix, such that every number that has equal distance to the matrix border will be filled into an array. For examples see code comments. ...
TVSuchty's user avatar
  • 605

15 30 50 per page
1
2 3 4 5