553 Topics

Member Avatar for
Member Avatar for mrmgh
Member Avatar for everlast

[code=cplusplus] #include <iostream> #include <iomanip> using namespace std; class Matrix { public: Matrix (int =0, int =0); ~Matrix (); Matrix (const Matrix&); void operator = (const Matrix&); Matrix operator + (const Matrix&); Matrix operator * (const Matrix&); Matrix operator - (const Matrix&); int* getMember(int =0, int =0) const; //returns pointer …

Member Avatar for everlast
0
164
Member Avatar for jimmy bones

hey hi to everyone im new in the site bout i thin its cool but the reason i am writing is that i have a home work in java and i have no idea how to do it can someone help me??????? a matrix in wich a number moves some …

Member Avatar for Member #46692
0
276
Member Avatar for sweetangel_aiza

how can i solve this 2 problems?!can you please help me?! Another matrix algebra operation is determining the matrix which is the product of two matrices. This is more challenging extension of the previous problem. The rule governing matrix multiplication is that two can matrices can be multiplied if the …

Member Avatar for Ancient Dragon
0
140
Member Avatar for temyreal

Hello all, i have a little problem printing the upper symmetry of the multiplication as shown in the attachment (in C). can anyone help?

Member Avatar for temyreal
0
101
Member Avatar for rizrash

HEY FRIENDS THIS IS MY EFFROT I'VE MADE A PROGRAM THAT'LL ADD OR SUBTRACT 2 AND THREE DIMENSIONAL MATRICES !! PLEASE SEND YOUR REVIEWS ABOUT THIS PROGRAM AND SUGGESTION ON WHAT IMPORVEMENTS CAN BE MADE IN IT !! AND ALSO I NEED TO KNOW CAN THIS PROGRAM BE MADE BY …

Member Avatar for Jishnu
0
200
Member Avatar for talalsaeed

Is any body nows any source code for latent semantic analysis with SVD for text documents

Member Avatar for jasimp
0
16
Member Avatar for Niravso
Member Avatar for benjusam
Member Avatar for zandiago
-1
120
Member Avatar for adypan06

can somebody please help me out in writing matrix 10*10 matrix program. thanks in advance

Member Avatar for adypan06
0
63
Member Avatar for crsurfer

hey guys my first post! lol, im kinda deseperate, i have to handout a work on wednesday, its about a simulation of a multiplication in a truth table, this multiplicator must multiply 2 entrances of 2 bits each one and the result must be 4 bits and i need: 1- …

Member Avatar for crsurfer
0
131
Member Avatar for jbstin

Please help me to write a programme to add two matrices. The matrices should be o 3*4 and must have necessary commend lines so that i can catch it correctly. anyone help me pls?

Member Avatar for WaltP
0
132
Member Avatar for holy_boy

I have been trying to write a code for Conways Game of life, the thing is I need to generate a matrix of char filled with the elements * or o(o marks a dead cell,*marks an alive one). The Rules: For a cell that is alive: Each cell with one …

Member Avatar for WaltP
0
295
Member Avatar for locy

how do i write the following functions:can somebody help me with this programm? [code] int lengthOfString(char *string); [/code] the longer the text that is given,the longer the text caculation [code] int letsFactorise(int charCount); [/code] the length of the texts in order of prime number,if no prime numbers then give Error-code …

Member Avatar for Aia
0
86
Member Avatar for phylon

Does knows any library that produces the inverse of a given matrix ? Or is there any C example available ?

Member Avatar for Duoas
0
74
Member Avatar for iCez

Here it goes, we were told to make a Multiplication thingy that the user can [B]Input[/B] something like [I]5x5[/I] and then the [B]output[/B] will be the [I]answer[/I]. We were not taught on how to do it yet so I don't have any idea. I'm just hoping that someone can teach …

Member Avatar for Ezzaral
0
113
Member Avatar for Duki

Hey everyone, I have an assignment to work on and it's a bit confusing. Here's the problem: [quote]Using dynamic arrays, implement a polynomial calss with polynomial additions, subtraction, and multiplication. Discussion: A variable in a polynomial does nothing but act as a placeholder for the coefficients. Hence, the only interesting …

Member Avatar for Member #46692
0
184
Member Avatar for iCez

uhmmm.. we have this project, we were told to make an [B]output[/B].. [B]"A multiplication table" [/B]I know that you guys don't don't give help if we don't give it a try. It's just that I don't know how to make one or even to start it. Can I just ask …

Member Avatar for louise07
0
105
Member Avatar for aldrinsms
Member Avatar for Salem
0
106
Member Avatar for riham

how can calculate the memory address of lower triangular array such this one : 20 7 5 60 8 0 10 0 0 0 0 0 ineed just the formula 2calculate just the upper traingular and cancel the zero i tried 2use svd ( singal value decomposition) but i really …

Member Avatar for Member #46692
0
156
Member Avatar for anzdyy

Write a complete C program to perform Matrix operations such as Addition, Subtraction, Multiplication and Transpose according to the user’s choice. The program should display the following menu to the user for them to select one of the five options listed. ------------------ MAIN MENU ------------------ 1. MATRIX ADDITION 2. MATRIX …

Member Avatar for Salem
0
120
Member Avatar for shoby

[code=c] void transpose_matrices(int a[][2],int result[][2]) { int i,j,temp; for (i = 0; i < 2; i++) { for (j = i+1; j < 2; j++) { temp = a[i][j]; a[i][j] = a[j][i]; a[j][i] = temp; } } } [/code] it would be very helpful if someone guide with this transpose …

Member Avatar for Aia
0
235
Member Avatar for Killer_Typo

Since i am going to have to learn Smalltalk well enough to convert it to .NET ( or so i have been told ) i decided to convert some of the C++ tutorials to Smalltalk. Namely this one: Write a program which performs addition, subtraction, multiplication of matrices. The dimensions …

Member Avatar for Killer_Typo
0
223
Member Avatar for anzdyy

Write a complete C program to perform Matrix operations such as Addition, Subtraction, Multiplication and Transpose according to the user’s choice. The program should display the following menu to the user for them to select one of the five options listed. ------------------ MAIN MENU ------------------ 1. MATRIX ADDITION 2. MATRIX …

Member Avatar for Salem
0
116
Member Avatar for mark busenitz

wanted something fast for writing a rendering engine so i wasted way to much time writing metatrix, then started having illusions of getting a job with it and now i'm closest to bum status i've ever been. maybe somebody can learn or actually use it, and if i get some …

0
185
Member Avatar for gaggu82
Member Avatar for khalidxa

Hi guys, I am working on a two dimensional array to represent a matrix. [CODE]int matrix[i][j];[/CODE] I need to swap all the values of matrix[1][1] to matrix[1][2] . I am not sure how to do the swap, I did try to use for loop and matrix[1][j+1] , but it did …

Member Avatar for pradeepk
0
119
Member Avatar for Escom

Let's determine a t square matrix's column, which elements' sum, above the main diagonal, is the biggest! Any idea how i should start this in c++?

Member Avatar for Lerner
0
120
Member Avatar for jnabeel

[code=c] #include<stdio.h> #include<conio.h> #include<iostream.h> void main(void) { clrscr(); int nr,nc,i,j,s; int mat1[10][10],mat2[10][10],mat3[10][10]; cout<<"Enter The Number Of Rows"; cin>>nr; cout<<"Enter The Number Of Column"; cin>>nc; for(i=0;i<nr;i++) { for(j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat1[i][j]; } } cout<<"matrix 2"; for( i=0;i<nr;i++) { for( j=0;j<nc;j++) { cout<<"No. of rows"<<(i+1)<<"No. of column"<<(j+1)<<endl; cin>>mat2[i][j]; …

Member Avatar for jnabeel
0
139
Member Avatar for solomon grundy

I need to Construct a program that inputs the entries of two matrices and multiplies them. Construct the program so that it gives an error message if they cannot be multiplied. What I have done so far I need to Construct a program that inputs the entries of two matrices …

Member Avatar for WaltP
0
124
Member Avatar for solomon grundy

Is this code compiling [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#008000]//Define the Matrix3X3 type.[/COLOR] [COLOR=#0000ff]typedef[/COLOR][COLOR=#0000ff]struct[/COLOR] { [COLOR=#0000ff]float[/COLOR] index[3][3]; } Matrix3X3; [COLOR=#008000]//Function prototypes (functions are defined below main())[/COLOR] [COLOR=#0000ff]void[/COLOR][COLOR=#000000] printMatrix( Matrix3X3 a );[/COLOR] Matrix3X3 inputMatrix(); Matrix3X3 addMatrices( Matrix3X3 a, Matrix3X3 b ); Matrix3X3 subtractMatrices( Matrix3X3 a, Matrix3X3 b ); Matrix3X3 scalarMultiply( Matrix3X3 …

Member Avatar for Nick Evan
0
100
Member Avatar for centrinostyle
Member Avatar for DavidB
0
105
Member Avatar for nasduck

Hello, there: I am trying to calculate to the inverse of matrix A. How to call function to main part? How to write the code for a matrix? Can someone help me modify the errors? Thank you very much! -------- [code=c] #include "matrix.h" Matrix solve(const Matrix& A, const Matrix& B){ …

Member Avatar for Member #46692
0
109
Member Avatar for Harshita_garg

Hi guys!!! This is my first post on daniweb & i hope i find a solution to my problem.I am developing a software that makes extensive use of Matrices.i have used dynamic memory allocation for matrices.Now this program makes lots of iterations.It works upto certain iterations say 56 after which …

Member Avatar for andor
0
132
Member Avatar for hui

[code]#include <iostream.h> #include <fstream.h> main(int argc, char *argv[]) { //definition of the variables. int mtx1[20][20], mtx2[20][20], mtx3[20][20]; int n, i, j, k; //exit if the number of arguments is not 2. if(argc != 3) { cerr << "Usage: mm <filename1> <filename2>\n"; return 1; } //open the input file 1. exit …

Member Avatar for Salem
0
154
Member Avatar for gampalu

Do you know where can I find a Class to operate with matrixes with a fast algorithm? (the class should also have the inverse method) thanks in advance

Member Avatar for Ancient Dragon
0
76
Member Avatar for hano

hi iface aproblem in c program i want to write aprogram to read R={(1,2),(2,1),(3,3),......} then covert it to matrix0/1 please help me quickly

Member Avatar for Member #46692
0
99
Member Avatar for earley mallones

nway guys i have a problem about how to create a two dimensional array using matrix so guys do you have idea how to work it?please help me.....

Member Avatar for happygeek
0
49
Member Avatar for akadri

Does anyone have an idea about implementing two dimensional arrays in Python?? I want to write two programs: (1) a program for matrix multiplication (2) a program for displaying Pascal's triangle. Both these programs require two dimensional array..? Or is there any other way to solve this.. Thanks in anticipation.. …

Member Avatar for jrcagle
0
150
Member Avatar for nlsna17

[CODE]# include<iostream.h> void main() const int m=3; const int n=4; const int p=5; int A[m][n]; int B[n][p]; { cout<<"3x4 matrix"; for(m=0; m<3; m++) { for(n=0; n<4; n++) cin>>A[m][n]; cout<<A[m][n]<<"\t"; } cout<<"\n"; cout<<"4x5 matrix"; for(n=0; n<3; n++) { for(p=0; p<5; p++) cin>>B[n][p]; cout<<B[n][p]<<"\t"; } cout<<"\n"; int d, c=0; for(m=0; m<3; m++) …

Member Avatar for dilip.mathews
0
205
Member Avatar for iamboredguy

I have a code in which I want to swap an element in a matrix with another. User inputs the row, column no of the elements to be swapped. But the code doesn't seem to work. Can somebody help? PS: The swapping starts in the snigleplayer() function. [CODE]#include <stdio.h> #include …

Member Avatar for iamboredguy
0
182
Member Avatar for DashM

Hi, i'm trying to write a function that enlarges a given two dimensional array horizontaly and Verticaly by different numbers. So far i have got this code. Bu it doesnt really work at the moment. Please help. Code: void BitMap::enlarge(int horiz, int vert) { bool temp[MaxSize][MaxSize]; temp[0][0]=true; int m, k; …

Member Avatar for AstroNox
0
109
Member Avatar for taha umar

[U][B]Problem Statement: Write a program that adds two matrices A and B of order 2X4 and store the result in third matrix C and C is stored in a file “result.txt

Member Avatar for Ancient Dragon
0
76
Member Avatar for sahil_logic

i copied the code as is discussed by my professor and written in my course book but i am not getting the correct output. my logic is very clear but not getting the right output, its a bunch of positive n negative values. pls check . the code is compiling …

Member Avatar for SpS
0
133
Member Avatar for desidude

guys i am trying to write 3x3 matrix . i am posting the main,.h and .cpp file,main and .h file is given and i have to write .cpp file. can sombody look at it and suggest me solution appricated guys IntMatrix3_h [CODE]#ifndef INTMATRIX3_H #define INTMATRIX3_H #include<iostream> #include<cmath> using namespace std; …

Member Avatar for desidude
0
183
Member Avatar for tat2dlady

I have a problem where I read in a 2D matrix and divide the matrix into 2 parts, where the sums of each part are equal. Each part must contain contiguous integers that can be networked together by following paths from one intger containing cell to another via shared sides. …

Member Avatar for tat2dlady
0
177
Member Avatar for tat2dlady

I have a problem that I am not sure how to even come up with a solution. So, I was wondering if anyone would have any input to the problem at hand. I have to divide a matrix that is defined by an input file into 2 distinct regions so …

Member Avatar for murschech
0
184
Member Avatar for mortonl

I have been trying to write this program since 9:00 am. and I am exhausted now. Could someone give a some direction??????? I am to write a program for a two dimensional (5 rols and 5 cols) and then write a procedure to rotate it 90 degrees. I wrote the …

Member Avatar for easy-helper
0
117
Member Avatar for slavic1

Hi, I'm a new member who is fairly new to C++ and need a little help getting some bugs out of an assigned matrix project. I am running VC++ 6.0 and have no compiler errors. Also, I have managed to run the program successfully for small matrices. My probelm occurs …

Member Avatar for Narue
-1
163
Member Avatar for abitlost

Hey guys! I got a bit of a problem and need some help! I wanna solve (as in Ax = B) up to a 6x6 matrix using C (not C++ coz I'm using Linux and vi to code). I'm having HUGE problems with the Gauss reduction and using Cramer's rule …

Member Avatar for Narue
0
119

The End.