I ave been learning NumPy arrays/matrices in Python. As I worked, I found that I desired a more readable form of 3d matrices. So I figured that writing one would be a good goal and learning exercise. The goal was to create a function that would print 3d NumPy matrices …

by
BustACode
15
in Software Development
()
I am working on a multi-level marketing (matrix type) web application for a friend. I need assistance with a code snippet for generating a tree view of the downlines and the income calculations. The width is 3 and depth is 4. Thanks

by
connoisseur2010
in Web Development
()
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
()
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 Software Development
()
Problems 1: Spiral matrix - Advanced Source of the problem: ... Spiral matrix is formed by filling number 1 in 1st row 1st column, after that, filling with increasing number by clockwise, example: ... Write a program that inform the value of cell (x, y) of a square spiral matrix …

by
Gà_1
in Software Development
()
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,315
in Software Development
()
I wan to wirte in cout << ... to have the matrix in output in the same format that I wrote it in text file like this: 1 2 3 4 5 2 3 4 5 6 3 4 5 6 7 ...

by
rela
in Software Development
()
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 Software Development
()
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 Software Development
()
Hello, So I was testing my matrix class and the results look questionable and the inverted matrix isn't returning the vertex to it's original value (a seperate issue). Given a perspective projection at 45 degrees with a near of 1 and a far of 1000, the camera at the orgin …

by
Mr.UNOwen
in Software Development
()
Hello, guys, I encountered a big problem. There is a genereted matrix of buttons: What can I do when one of those buttons is pressed (i have the method ) to know what i and j has he? I want to make smoething like this

by
BogdanCov
in Software Development
()
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 Web Development
()
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 Software Development
()
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 Software Development
()
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 Software Development
()
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 Community Center
()
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 Software Development
()
Hello, So I'm aware that OpenGL is Column major and DirectX is Row major, but how does that translate into a basic 1D array? So given the below visual matrix, what would the first 3 in the array of each platform and which 3 would be the x,y and z …

by
Mr.UNOwen
in Software Development
()
I have an mxn matrix, that is stored in memory in an array: After I finish with this array, I then need to create very similar array to store a new mxn matrix--the same matrix as before, but with each column shifted to the right. Let's call it matB. Am …

by
Jsplinter
in Software Development
()
Hi, I'm a beginner with Java, can anyone tell me where my error is, I'm sure there's something I'm missing here with the array logic: main: my output: [-1, 0, 1] [-1, -3, -3] [2, 4, -1] [0, 0, 1] *The lost row of the matrix is not multiplied by …

by
ntaraaki
-1
in Software Development
()
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 Software Development
()
please help me i need a dynamic array that get the information as a matris and give me the vertex degrees (sum every row).and send it to another matrix.

by
arashe
in Software Development
()
I need to write a code that is gonna remove a whole row/column in a matrix(either static or dynamic matrix)

by
Stefan_2
in Software Development
()
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 Software Development
()
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 Software Development
()
I cant figure out how to check the array for AND and OR. please, help, i got stuck my code: import java.util.Scanner; public class BooleanProduct .... i lost it here...how can i store the value, because i need it than to compare it with OR ||

by
mellixa
in Software Development
()
this is my error: Exception in thread "main" java.lang.Error: Unresolved compilation problem:

by
mellixa
in Software Development
()
I have this code that outputs the tfidf for all words in each file in the directory. I'm trying to transfer this to a matrix where each row correspond to each file in the directory and each column to all words in the files and I have some difficulty in …

by
souad
in Software Development
()
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 Software Development
()