Link to home
Start Free TrialLog in
Avatar of hermesc
hermesc

asked on

matrix class

looking for a matrix class address

Avatar of Axter
Axter
Flag of United States of America image

What do you mean by class address?
// Here's a 2 dynamic matrix class

template < class T>
class dynamic_2d_array
{
public:
      dynamic_2d_array(int row, int col):m_row(row),m_col(col), m_data((row!=0&&col!=0)?new T[row*col]:NULL){}
      ~dynamic_2d_array(){if(m_data) delete []m_data;}
      inline T* operator[](int i) {return (m_data + (m_col*i));}
      inline T const*const operator[](int i) const {return (m_data + (m_col*i));}
private:
      const int m_row;
      const int m_col;
      T* m_data;
};
Avatar of hermesc
hermesc

ASKER

web address :=)

i need a matrix class
Also check out the following links for matrix class:

Matrix class implemented using valarrays:
http://www.hep.ucl.ac.uk/atlas/atlfast/Doxygen/5.1.0/AtlfastUtils-00-00-10/Matrix_8h-source.html

blitz++:
http://www.oonumerics.org/blitz/ 

newmat:
http://www.robertnz.net/nm_intro.htm

Matrix Template Library (MTL):
http://www.osl.iu.edu/research/mtl/

boost libray multi-array class:
http://www.boost.org/libs/multi_array/doc/user.html
>>web address :=)
>>i need a matrix class

Do you just need a class that can hold web address?

If so, you can use vector<string> object to hold a matrix of web address.

std::vector<std::string>  MyWebAddressMatrix;

//Add address via following method:
MyWebAddressMatrix.push_back("https://www.experts-exchange.com");

//Access item in array via following method.

cout << MyWebAddressMatrix[0] << endl;

If that's not what you need, please provide much more details.

Spell out exactly what you need.
Tell us what is your requirement, and how you intend to use this matrix, so that we can have a better understanding of what you're looking for.
Avatar of hermesc

ASKER

I need a website a web adress ( world wide web ) which there is a class ( or it may be a FTP!!!!! )!!!! ( a class which its purpuse is matrix! )
( matrix : not the matrix which keanu plays the matrix which we use in maths )

I hope it is clear now
Avatar of hermesc

ASKER

I need a website a web adress ( world wide web ) which there is a class ( or it may be a FTP!!!!! )!!!! ( a class which its purpuse is matrix! )
( matrix : not the matrix which keanu plays the matrix which we use in maths )

I hope it is clear now

this class should be able to these operations

*,+,-, inverse , other basic matrix operations not the complex orthogonal or nonlinear ones ( or whatever you may think which is advanced )
>>I hope it is clear now

I'm sorry, but you're still missing information.

When you say it's purpuse is matrix, what is the matrix suppose to do, and what is it suppose to store?

>>I need a website a web adress ( world wide web ) which there is a class

Which there is what class?
What is the class suppose to do?  What exactly is it's function.

Explain the what and how.
It might help if you give an example.
ASKER CERTIFIED SOLUTION
Avatar of Axter
Axter
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hermesc

ASKER

thanks for your valuable helps

axter