473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

fragmenting a matrix in a no of variablle matrices having variable no of rows

I have to devide a matrix in variable no of matrices with each having variable no of rows. Like I have to devide a matrix with dim.9X19 into say 4 matrices with row nos 1,6,6,6 respectively, and I have to use these matrices in furthur calculations.How can I proceed for this problem? Here array defining should also be dynamic and I am also facing problem in giving array[] names.I am using TC++ compiler.
If anyone has a moment to help me think out of the box, I would be most appreciative. Thanks all.
Jul 18 '07 #1
2 1271
weaknessforcats
9,208 Expert Mod 8TB
A 9x19 array as 171 elements. A 1x6x6x6 has 216 elements.

How are you going to divide the 9x19 into a 1x6x6x6???

I can help you if the arrays are the same size.
Jul 18 '07 #2
JosAH
11,448 Expert 8TB
A 9x19 array as 171 elements. A 1x6x6x6 has 216 elements.

How are you going to divide the 9x19 into a 1x6x6x6???

I can help you if the arrays are the same size.
I think the OP wanted to say 19 rows by 9 columns; chop up the original matrix
in 6x9, 6x9, 6x9 and 1x9 sized 'sub' matrixes. (all on top of each other).

IMHO a 'MatrixView' class given the original matrix (and its dimensions) could
do the job (just overload the operator[]).

kind regards,

Jos
Jul 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Tiza Naziri | last post by:
Hi, How to represent this matrix equation in C code: / a0 \ / 0 1 0 1 0 0 1 0 \/ b0 \ | a1 | | 0 0 1 0 1 0 0 1 || b1 | | a2 | | 1 0 0 1 0 1 0 0 || b2 | | a3 |=| 0 1 0 0 1 0 1 0 || b3 | | a4...
2
by: DarrenWeber | last post by:
Below is a module (matrix.py) with a class to implement some basic matrix operations on a 2D list. Some things puzzle me about the best way to do this (please don't refer to scipy, numpy and...
0
by: DarrenWeber | last post by:
# Copyright (C) 2007 Darren Lee Weber # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free...
5
by: adam.kleinbaum | last post by:
Hi there, I'm a novice C programmer working with a series of large (30,000 x 30,000) sparse matrices on a Linux system using the GCC compiler. To represent and store these matrices, I'd like to...
12
by: sugard | last post by:
I am a java beginner and I was given this task to do.. to create a class which given 2 matrices,and these bein of the correct dimensions, will produce a third matrix by multiplying both. There is the...
1
by: dcatunlucky | last post by:
Ok, I have an assignment to write a program that multiplies two matrices. The matrices dimensions will be user defined as well as the numbers (floating point values) inside of them. The program must...
10
by: Babak | last post by:
Hi, I've developed a C program which contains a large number of vectors and matrices operations. Throughout my code, I used the template from the Numerical Recipes book to define vectors and...
6
by: Harinezumi | last post by:
Hello, I created a template matrix class and some appropriate binary operators like: template <typename ContainedType> Matrix<ContainedType> operator+ (const Matrix<ContainedType>& lhs,...
1
by: sedaw | last post by:
suppose there is a matrix size colsXrows and i need to find number os sub matrices with the sum N . this is the code for search sub matrices just on cols and rows, (sub matrices size>1) ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.