46 Solved Topics
Remove Filter
|
|
**A newbie would appreciate if someone could give him a pseudocode or any kind of explanation for the part of the code where the actual algorithm for matrix determinant is written.** using System; namespace Determinant { class Program { public static double DET(int n, double[,] Mat) { double d = … |
|
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? … |
|
Hello, guys, I encountered a big problem. There is a genereted matrix of buttons: private void Single_Load(object sender, EventArgs e) { //code here for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { //a lot of working code here b[i, … |
|
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 … |
|
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 … |
|
I was wondering if there is any way to do a single mysql query to do a count of filled positions in a multi-level structure to an indefinite depth. That sounds a bit cryptic, but this is what I would like to do if it is at all possible. we … |
|
I need to write a code that is gonna remove a whole row/column in a matrix(either static or dynamic matrix) |
|
|
Hello folks, This nitty problem is haunting me today. Here is the code I have written, but am not getting the expected output. This is a program for printing matrix in spiral order. #include<stdio.h> #include<stdlib.h> int main() { int rows,cols,i,j; int tr=0,rc,br,lc=0; /* tr = top row index. rc = … |
hi all i use gecode solver to solve my model ; but i get this error Access Violation when reading of the location 0x0000001c and i don't konw how to fix it here is my code : #include <gecode/driver.hh> #include <gecode/int.hh> #include <gecode/minimodel.hh> #include <iostream> #include <vector> using namespace Gecode; … |
|
I saw this segment and I wasn't sure if I was excited or scared... but my feelings were urging more towards fear. I just do not know if it's a good idea to start microchipping people for better intelligence. Especially our children. Are we slowly turning ourselves in robots? As … |
|
Hi everyone I'd like to know how I can fill a matrix [n] [m] from a vector of size n * m Thank you very much every one |
|
Hi Guys, I am trying to teach myself templates in C++. My current assignment is to create a matrix class by using vector of vectors. I have got most of it done but my code is crashing when I try to overload the random access operator in my matrix class. … |
|
|
Hey Guys, I need your expertise. Please help me. In the following program, 2 matrices and given values and then displayed. The program works fine but I really can't understand how it works. #include <stdio.h> #include <stdlib.h> void getmat(int a[50][50],int n) { int i,j; for(i=0;i<n;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]); } void printmat(int … |
Please visit http://www.cuteework.com/members.php Login button not work. here is members.php file details. <?php session_start(); session_register("id_session"); session_register("password_session"); include "header.php"; include "config.php"; $a=""; $b=""; if ($_POST) { $a=trim($_POST["id"]); $b=trim($_POST["password"]); $a=str_replace("'","",$a); $b=str_replace("'","",$b); $a=str_replace("\"","",$a); $b=str_replace("\"","",$b); } if ($a=="" || $b=="") { if ($_SESSION["id_session"]=="" || $_SESSION["password_session"]=="") { ?> <form action=members.php method=post> <br><br><Center><table><tr><td colspan=2 align=center><h3>Members Login … |
|
I mainly need help with creating the 3 by 4 matrix (part 3 of the assignment) as i am confused as how i would create it. However this is the entire assignment: 1. Write a function that returns the sum of all the elements in a specified column in a … |
|
not sure if this is the right place to ask, but i need some help for my problem here. i want to find inverse, upper triangular and determinant for a matrix. but i'm not sure why it doesn't work like what i want. for now, i just want try to … |
|
I decided that before I would actually write the code for my planned inventory system in a game I am writing I would test it out in a small project first to make sure I know what needs to be done and if I needed to change anything. So I … |
|
Hi, i need to create a binary matrix (one which elements can only be 1 or 0) in openCV. The nearest that I was getting is creating a matrix which elements are 8-bit values using the CV_8UC1 dataType. There must be another dataType which specifies that the matrix elements are … |
|
I know it's a bad practice to post the same question on more than one help site (I posted it on Stackoverflow, but after some time your question loses its place on the "active" list and people stop reading it) but I'm really desperate here. So my question is: I … |
|
Hola code gurus, I’m wondering if there’s a way to use a string to access a specific item in a matrix of int[X]. I have a program which uses enums as iterators to reference a large amount of data. To select an item in the matrix, the user will enter … |
|
This is my matrix. I want to solve C,D and E <uploaded> Can anyone give me the sample codes to solve C, D and E in VB.Net? Answers are C=0.4857143, D=0.0000000 and E=-0.1428571 (manual calculation) Thanks! |
|
[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int … |
|
[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int … |
|
So I have a matrix class that must run on a unix/linux server. The main is a test file that is provided by the instructor. When I compile my code in visual studio it works fine except for test 8 because I can't figure out how to return a print … |
|
Here i have a working code, what i want to know is: When the user inputs elements to the array, i want it to be automatically aligned in form of an matrix. Instead of [ICODE] 1 2 3 4 5 6 etc....[/ICODE] But just as a matrix, like this [ICODE] … |
|
I have question about if my input matrix was | 1 2 3 4 | | 2 3 4 5 | | 3 4 5 6 | how I would get an output matrix | 0 0 0 0 0 0 | | 0 1 2 3 4 0 | … |
|
When i run this program it takes more values and prints less values.... this runs on Dev C++([url]www.bloodshed.net[/url]) [CODE]#include<iostream> using namespace std; #include<conio.h> int main() { int arr[5][5],i,j,k,l; cout<<"Enter matrix row wise"; for(i=0;i<=3;i++) { for(j=0;j<3;j++) { cin>>arr[i][j]; } } for(k=0;k<3;k++) { for(l=0;l<3;l++) { cout<<" "<<arr[k][l]; } printf("\n"); } getch(); } … |
|
hi everyoen i've a matrix array with some value, i want to shaw each of them in matrix type in my form, how can i do it? can i use DataGrid view for this? and if yes ... what is method.. |
|
Hi all, I have a programming assignment to store sparse matrices using a list<list <myclass> >. I have pretty much everything nailed down but I'm going wrong at some point, the output is incorrect. Instead of giving me 4 lines with the column position and value of non zero values … |
|
hello. I am quite new in python so i have a question. I have a csv file in which i have names of 30 cities and their coordinates(lat and long). i want to generate a distance matrix for these cities. How can i do this ? |
The End.