Read

I've been here before but I'm looking to find a single-pass method to input the LRS ... and get a basic 3x4 (at least) matrix in return: ... ^ matrix is NOT transposed (I'll never understand why we use column-major) anyone got anything on this?? ... also, please don't provide ...

by
Tcll
9
in Game Development
Replies

60

ViewsRead

Years ago I wrote a program in Fortran for a structural analysis class. At the time I had very little programming experience and mottled my way through the assignment. Fast forward to now and I'm attempting to teach myself Python 3. I figured I'd would try to convert the old ...

by
colby.christensen
in Python
Replies

29

ViewsRead

Reply

24

ViewsRead

Solved
OOP development problem

For my own use, I'd like to develop a small Vector and a Matrix class, independent of some big libraries that exist out there. My question is: Should Vector and Matrix stay two independent entities or should I derive a Vctor frm a Matrix or a Matrix from a Vector? ...

by
ddanbe
2,250
in Software Development
Replies

44

ViewsRead

Replies

34

ViewsRead

I have a 1000x24 matrix in a text file and i want to sum the adjoining columns of the whole matrix e.g. col1+col2, col2+col3, col3+col4,... col23+col24 and store these values in a separate text file. My code runs like this: ... for example if a matrix in file 1980.txt is ...

by
celina1234
in C
Reply

8

ViewsRead

I was doing the class tutorial to have matrix multiplication from two dimensional arrays: X (3x2) and Y (2x3). The problem is always array index out of bounds expection.

by
SpottyBlue
in Java
Replies

13

ViewsRead

Replies

60

ViewsRead

Hello all! Can someone help with this matrix? it needs to spiral inwards, from bottom right corner, clockwise... I found this code... and it runs nicely but I need to adapt it in some ways: - I should be able to provide number of rows and columns - the grid ...

by
azapovjednik
14
in JavaScript / DHTML / AJAX
Reply

14

ViewsRead

This Project is to implement some procedures doing the following: Represent any graph using these input parameters: â¢ A parameter to represent the graph by Adjacency Matrix, or Adjacency List. â¢ A parameter to indicate whether the graph is directed, or undirected. â¢ A parameter to indicate whether the graph ...

by
Cool_Omar
in C
Replies

6

ViewsRead

Code Snippet:
Optimizing Matrix Multiplication

Optimizing Matrix Multiplication One time consuming task is multiplying large matrices. In this post we'll look at ways to improve the speed of this process. We'll be using a square matrix, but with simple modifications the code can be adapted to any type of matrix. The straight forward way to ...

by
Momerath
1,327
in C#
Replies

40

ViewsRead

I have a base class called Matrix which has a function transpose. I also have a derived class Matrix2 which is inherited publicly from Matrix In my main code, I tried this. to do this But I get the following error What is wrong... What is the way to access ...

by
mcodesmart
-6
in C++
Replies

28

ViewsRead

This is really simple. Just take the last letter of the movie name in previous post & put another movie name starting with that letter. Eg.:- if i put "The Matrix -Reloaded" answer may be "Doom" so let's start. I put : The Matrix Revolution

by
anupam_smart
2
in Posting Games
Replies

839

ViewsRead

Solved
Prolog

Hi, I have an assignment. I need to write code in logic programming language SWI-Prolog. Its very hard and I am going to appreciate if you help me :D. This is the assigment: Print 2D array size of (width x height) in spiral order. More explanation and example: You have ...

by
wizard25
in Legacy Languages
Replies

39

ViewsRead

Replies

24

ViewsRead

Replies

13

ViewsRead

Reply

15

ViewsRead

Replies

17

ViewsRead

can any body please tell me that how to take input size of a matrix in 2 d array an then print the table of it.... sample output 1 2 3 4 5 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 ...

by
saif.shafqat.5
in C++
Replies

19

ViewsRead

Replies

44

ViewsRead

Replies

23

ViewsRead

Write a program that can do the following: addition of two matrices . subtraction of two matrices. multiplication of a matrix by a scalar. multiplication of a matrix by a matrix.

by
Mohamed_34
in C++
Reply

13

ViewsRead

Code Snippet:
Spiral Order Of Matrix

This Program prints the numbers in given array(Row-Major Order) in Spiral order. Ex: Order Is 3*4 Spiral Order Of Matrix is 11 12 13 14 18 22 26 25 24 23 19 15 16 17 21 20

by
Jaks_maths
in C
Replies

16

ViewsRead

Replies

11

ViewsRead

Replies

15

ViewsRead

Replies

13

ViewsRead

Hi! I have this code, classes with matrices, overloading operator etc (this is just one part, I reduced it from original). Im getting this error: error: passing 'const matrix' as 'this' argument of 'float& matrix::operator' discards qualifiers [-fpermissive]. (problem with rez[i]=M[i]+A[i];) Thanks for your help.

by
ivan3510
8
in C++
Reply

12

ViewsRead

Replies

22

ViewsRead

Replies

16

Views