Bluebit Software Support Forum / Technical Support and Help / Matrix ActiveX Component InstantForum.NET v4.1.4Bluebit Software Support Forumhttp://www.bluebit.gr/forum/support@bluebit.grTue, 02 Sep 2014 05:04:13 GMT20How to embed activex components?http://www.bluebit.gr/forum/Topic792-1-1.aspxHow to embed activex components?Mon, 14 Jan 2013 05:08:49 GMTDakuVB: Invalid procedure callhttp://www.bluebit.gr/forum/Topic42-1-1.aspxHi,strange things happened. Why is this code failing? Should be piece of case (basic math)... It seem that after calculation of eigenvalues, matrix d1 gets corrupted or something> a_m_centered.CorrelationMatrix.Eigen e1, , d1> Debug.Print d1(1, 1) ^ -0.5 'Invalid procedure call or argumentHere is the matrix>? d1.GetString >| -0.539 -0.281 0.296 0.736 0.000 |>| -0.327 -0.574 0.414 -0.626 0.000 |>| -0.523 0.431 -0.090 -0.182 0.707 |>| 0.523 -0.431 0.090 0.182 0.707 |>| 0.237 0.468 0.851 0.010 0.000 |Thu, 10 Feb 2005 16:18:45 GMTTeOlCholesky factorization, 2DDrawing Conflicthttp://www.bluebit.gr/forum/Topic558-1-1.aspxHello, I am trying the trial active X version. <br><br>In VB.NET 2008, you cannot simply use the syntax <br><br>Dim M as Matrix<br><br>Since there is a Matrix component of the System.2DDrawing Class<br><br>The only thing that works is:<br><br> Dim M As Bluebit.MatrixLibrary.Matrix<br> M.Cols = N<br> M.Rows = N<br> <br>In addition, "M.Size 5,5" or "M.Cholesky L2" or anything close to this does not work. <br><br>Overall, your example code for Cholesky does not work in VB.NET 2008<br><br>Thu, 25 Jun 2009 01:28:12 GMTlep1Using Matrix ActiveX Component with PowerBuilderhttp://www.bluebit.gr/forum/Topic515-1-1.aspxDoes anyone has worked with PowerBuilder? ... I am trying to use this component with PB10 but I did not have success in it.</P><P>I installed the MACX in WindowsXP, and tryed to declare :</P><P>OLEObject Matrix</P><P>Matrix = create OLEObject</P><P>in the first and main window for a very simple project, and I got an error:</P><P>Information C0146:The identifyier matrix conflicts with an existing global variable with this name</P><P>Any help will be very appreciated.Sun, 23 Nov 2008 17:52:11 GMTrobertarg72matrix square roothttp://www.bluebit.gr/forum/Topic492-1-1.aspxI need to know how can I calculate A from B=A' A ? </P><P>note: A is not a square matrix.</P><P>Dim(B)=18*18 and Dim(A)=4*18<BR>Thu, 14 Aug 2008 11:33:30 GMTfarnazSVD decompositionhttp://www.bluebit.gr/forum/Topic445-1-1.aspxI have run the following code fragment twice ( variables declaration has been omitted from the code fragment):</P><P>first time with a matrix size of 1950,20 ( exactly as in the code fragment).</P><P>second time with matrix dimensions of 20, 1950 </P><P>the execution time recorded:</P><P> 3.121094 for the first run<BR> 0.03125 for the second run ( 100 times faster !!! )</P><P>=========code===========</P><P> A.Size 1950, 20 ' A.Size 20, 1950 <BR> A.FillRandom<BR> Dim t As Single<BR> t = Timer<BR> A.SVD U, S, V<BR> Debug.Print Timer() - t<BR>==========end of code=====Wed, 21 Nov 2007 06:04:03 GMThooperasymmetric execution timehttp://www.bluebit.gr/forum/Topic448-1-1.aspxplaying around with the matrix operations revealed that:</P><P>1. for SVD decomposition of a matrix and its transpose is very different</P><P>2. the same phenomenon for matrox multiplication. the next code fragment will show that one is executing 5.5 time faster than the other</P><P> Call A.Size(1000, 300)<BR> Call B.Size(300, 20)<BR> Call A.FillRandom<BR> Call B.FillRandom<BR> t = Timer()<BR> Set C = A.Times(B)<BR> Debug.Print Timer() - t<BR> <BR> Call A.Size(20, 300)<BR> Call B.Size(300, 1000)<BR> Call A.FillRandom<BR> Call B.FillRandom<BR> t = Timer()<BR> Set C = A.Times(B)<BR> Debug.Print Timer() - t<BR></P><P>may be that i am missing something. </P><P>Any idea why?</P><P><EM>---hoop says: playing with numbers might be dangerous---</EM></P><P><EM></EM> Wed, 21 Nov 2007 08:18:05 GMThooperRegistering program in C++http://www.bluebit.gr/forum/Topic443-1-1.aspxI have a valid registration name and key, but I am not getting a valid version back.</P><P>I have declared a IMatrix * in my program "View" class. On creation of the class I create the IMatrix object, then register the program using the name and key sent with the program.</P><P>When I actually use the matrix dll, I write the version to a file and its just a bunch of unprintable characters.</P><P>A response would be appreciated.</P><P>MarmotFri, 05 Oct 2007 13:38:01 GMTMarmotUsing Bluebit with C++http://www.bluebit.gr/forum/Topic438-1-1.aspxHi,<P>I am trying to use your product to find the best fit parabola for data we have collected in a C++ .NET 2003 Unmanaged code program.</P><P>Below is my code:</P><FONT size=2><P></FONT><FONT size=2> </P><P>::CoInitialize(NULL);</P><P>hr = ::CoCreateInstance(</FONT><FONT color=#0000ff size=2>__uuidof</FONT><FONT size=2>(Matrix), NULL, CLSCTX_INPROC, </FONT><FONT color=#0000ff size=2>__uuidof</FONT><FONT size=2>(IMatrix), (</FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2>**)&pLftMatrix);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(FAILED(hr))</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> result;</P><P>hr = ::CoCreateInstance(</FONT><FONT color=#0000ff size=2>__uuidof</FONT><FONT size=2>(Matrix), NULL, CLSCTX_INPROC, </FONT><FONT color=#0000ff size=2>__uuidof</FONT><FONT size=2>(IMatrix), (</FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2>**)&pRtMatrix);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(FAILED(hr))</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> result;</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//Set the Left Matrix size</P></FONT><FONT size=2><P>pLftMatrix->Size(nDataPts + 1, 3);</P><P></FONT><FONT color=#008000 size=2>//Set the Right Matrix size</P></FONT><FONT size=2><P>pRtMatrix->Size(nDataPts + 1, 1);</P><P></FONT><FONT color=#008000 size=2>//Fill the matrices with data</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (i = 0; i <= nDataPts; i++)</P><P>{</P><P>pLftMatrix->Item[i][0] = 1;</P><P>pLftMatrix->Item[i][1] = zPos[i];</P><P>pLftMatrix->Item[i][2] = zPos[i] * zPos[i];</P><P>pRtMatrix->Item[i][0] = thickness[i];</P><P>}</P><P>pTLftMatrix = pLftMatrix->Transpose();</P><P>/*My program dies here. The call pTLftMatrix->Cols causes an exception. What am I doing wrong? Also How can I capture the exceptions. I have a catch for : <FONT color=#0000ff size=2></P><P>catch</FONT><FONT size=2><FONT color=#000000> (_com_error& e) </FONT></FONT><FONT size=2><FONT color=#000000>But it doesn't catch it.</FONT></FONT></P><P><FONT size=2><FONT color=#000000>Below is the rest of my code.*/</FONT></P></FONT><P>errMsg.Format("TLeftMatrix Cols = %s", pTLftMatrix->Cols);</P><P>errMsg.Format("LeftMatrix Rows = %s", pLftMatrix->Rows);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pTLftMatrix->Cols == pLftMatrix->Rows)</P><P>{</P><P>tempPtr = pTLftMatrix->Times(&pLftMatrix);</P><P>p3X3LftMatrix = tempPtr->Clone();</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pTLftMatrix->Cols == pRtMatrix->Rows)</P><P>{</P><P>tempPtr = pTLftMatrix->Times(&pRtMatrix);</P><P>p3X1RtMatrix = tempPtr->Clone();</P><P>}</P><P>pSolveMatrix = p3X3LftMatrix->SolveGauss(&p3X1RtMatrix);</P><P>result.thickness = pSolveMatrix->Item[0][0] - (pSolveMatrix->Item[1][0] * pSolveMatrix->Item[1][0] / 4 * pSolveMatrix->Item[2][0]);</P><P>result.zPos = -pSolveMatrix->Item[1][0] / 2 * pSolveMatrix->Item[2][0];</P><P>result.density = 0;</P><P>result.Successful = </FONT><FONT color=#0000ff size=2>true</FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pLftMatrix)</P><P>pLftMatrix->Release();</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(pRtMatrix)</P><P>pRtMatrix->Release();</P><P>Do you have more examples for using the ActiveX component with C++?</P><P>Thanks</P><P>Diane</P><P></FONT><FONT color=#008000 size=2></FONT> </P><P><FONT color=#008000 size=2></FONT> </P><P><FONT color=#008000 size=2> </P></FONT><FONT size=2></FONT>Mon, 01 Oct 2007 20:55:21 GMTMarmotUsing LU in .NET and ActiveXhttp://www.bluebit.gr/forum/Topic428-1-1.aspxTo start with, I'm totally new to this.<P>One of my <SPAN style="FONT-SIZE: 10pt; COLOR: #4b6e9d; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Tahoma; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">colleagues </SPAN>made code in .NET using the LU class.</P><FONT size=2><P>[code]LU lu = new LU(mtx_l);<BR>if (lu.IsSingular) return false;<BR>Matrix res_u = lu.Solve(mtx_u);[/code]</P><P>I'm now trying to convert this to C++ using the ActiveX version. I don't see the LU class, but only ad a method to Matrix.</P><P>Can anyone help me with an example on how to use the LU method in ActiveX?</P><P>-cpede</FONT><FONT size=2></P></FONT>Tue, 28 Aug 2007 02:49:41 GMTcpedeAscii to Matrixhttp://www.bluebit.gr/forum/Topic88-1-1.aspxHow to convert Ascii to Matrix?Ascii file0.100 0.200 0.32 0.40.12 0.0 0.32 0.50.6 0.14 0.2 0.3to MatrixMatrix.size 4,3|0.100 0.200 0.320 0.400||0.120 0.000 0.320 0.500||0.600 0.140 0.200 0.300|thank youMon, 06 Mar 2006 21:04:43 GMTTewinInconsistent results from ReOrderRows - URGENThttp://www.bluebit.gr/forum/Topic145-1-1.aspxI have been having problems with re-ordering the columns of a matrix. To try help things, i have made a simple example using the reOrderRows method (based on the example in the help file distributed with the ActiveX DLL). The code i have used is shown below:<BR><BR><FONT color=navy>[code]Private Sub Command1_Click()<BR>Dim A As New Matrix, B As Matrix<BR>Dim perm(5) As Integer<BR>Dim PI As Variant<BR>'Set A = New Matrix<BR>'A.Size 6, 6<BR>'A.FillRandom<BR><BR>Set B = New Matrix<BR>B.Size 6, 1<BR>'B.FillRandom<BR>B(0, 0) = 5<BR>B(1, 0) = 3<BR>B(2, 0) = 9<BR>B(3, 0) = 7<BR>B(4, 0) = 10<BR>B(5, 0) = 9<BR><BR>'Debug.Print "A = "<BR>'Debug.Print A.GetString<BR><BR>Debug.Print "B = "<BR>Debug.Print B.GetString<BR><BR><BR>perm(0) = 4<BR>perm(1) = 5<BR>perm(2) = 3<BR>perm(3) = 1<BR>perm(4) = 6<BR>perm(5) = 2<BR><BR>PI = perm()<BR>B.ReorderRows PI<BR><BR>Debug.Print "B reordered"<BR>Debug.Print B.GetString<BR>End Sub[/code]</FONT><BR>I thought i would make the help file example easier by not using the sort rows method and also by having a constant matrix for B each time. The permutation index stored in perm() is also constant each time. After copying this to the variant PI and then calling the ReorderRows method, i would expect the same output for the reordered B matrix as in the example in the help file.<BR><BR>However, i do not get the same output each time. The rows are not reordered. Also the value of the first row of the reordered matrix changes with different executions of the above code. This is nearly identical to the problem that i have when i try to reorder columns in my program.<BR><BR>The output from different executions of the above code is shown below:<BR><BR><FONT color=navy>[code]B = <BR>| 5.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR><BR>B reordered<BR>| 9.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR>------------------------<BR>B = <BR>| 5.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR><BR>B reordered<BR>| 5.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR>------------------------<BR>B = <BR>| 5.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR><BR>B reordered<BR>| 5.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR>------------------------<BR>B = <BR>| 5.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR><BR>B reordered<BR>| 7.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |[/code]</FONT><BR><BR>The results that i expect (which are the same results from the help example) are shown below:<BR><BR><FONT color=navy>[code]<BR>B = <BR>| 5.000 |<BR>| 3.000 |<BR>| 9.000 |<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR><BR>B reordered<BR>| 7.000 |<BR>| 10.000 |<BR>| 9.000 |<BR>| 5.000 |<BR>| 9.000 |<BR>| 3.000 |[/code]</FONT><BR><BR>Can you please help me with what is going wrong as i am completely stuck?Wed, 29 Nov 2006 06:31:15 GMTziconRegarding SVD..http://www.bluebit.gr/forum/Topic135-1-1.aspxhi, i wish to know that how can i use this Matrix ActiveX Component to calculate the SVD of a matrix? after i made a reference to it, i don't know how to use it in my code. i will be appreciate if you can explain to me as i'm just started to learn VB...Thank youMon, 20 Nov 2006 23:43:45 GMTWingDrop a matrix columnhttp://www.bluebit.gr/forum/Topic143-1-1.aspxWhat is the best way to drop columns in a matrix?This carries on from my previous question about variance. I have a matrix M and i want to delete any column in it that has a variance of 0. I have got the check for zero variance working but i'm unsure as the best way to get rid of columns.My current way of thinking is to move all the columns of M that have zero variance to the far right of the matrix and then to use the submatrix method to take only the left-most columns that i want.I am not sure this is the best way to do things though as it seems a bit time consuming creating a permIndex to move every single column to a new place.Mon, 27 Nov 2006 08:28:33 GMTziconcolumn variancehttp://www.bluebit.gr/forum/Topic138-1-1.aspxwhat is the best way to get the variance of a column in a matrix?Fri, 24 Nov 2006 04:26:26 GMTziconEigendecomposition and reconstructionhttp://www.bluebit.gr/forum/Topic118-1-1.aspxI am a newbie to Matrix mathematics but I am familiar with VB and ActiveX. I just know what I want to do, but not sure how to do it.I need to read a data file (I would prefer a plain ASCII text file) containing about 4,000 data points recorded at 1-minute intervals (just a single column of data), do Eigendecomposition and reconstruction processing on this data and write results (without the noise component) to an output file. I need to repeat this automatically every 10 seconds. I tried AutoSignal software on my data and it produced a good signal with settings of (I don't know what these mean):Eigen Method: CovM FBOrder:40Signal Space:2AutoSignal is a little expensive and it can't do this automatically so I need to write a VB program to do this.Questions: Can Blue bit's ActiveX do this? What should the parameters be? Any typical VB code? Thank you,Wed, 23 Aug 2006 14:16:49 GMTwarren631Eigen Recompositionhttp://www.bluebit.gr/forum/Topic116-1-1.aspxI've got a square matrix, about 500x500 that is non positive definite. Trying to fix this, I perform the following steps:1) perform eigenvalue decomposition2) a form of ridge regularization - bring all real eigenvalues below a certain threshold up to that threshold3) recompose matrix via real_eig_vecs*new_eig_vals*real_eig_vecs'4) perform eigenvalue decomposition on new matrixNow, even though the original matrix had no complex eigenvalues or eigenvectors, the new matrix has quite a few (on the order of 1e-15). It seems to me that this should not happen, given that the inputs to the recomposition were entirely real. Besides that,the fact that the complex parts of the eigenvalues are so small indicates to me a potential rounding type issue.Am I incorrect, and is this behavior acceptable, or is it truly anomolous? I appreciate any guidance anyone can provide.Sat, 19 Aug 2006 15:16:52 GMTandrewhoweSVD Speedhttp://www.bluebit.gr/forum/Topic109-1-1.aspxHow fast in the SVD routine on a large 1500 x 1500 matrix? This matrix is very sparse. And what kind of speed improvment would oneget using QR instead of SVD?Wed, 14 Jun 2006 16:12:03 GMTJGDVS 2005 C++ - how to use "Eigen" ??http://www.bluebit.gr/forum/Topic108-1-1.aspxhii`m using Visual studio 2005 C++and i have problem with using Eigen :(what code should I write to get eigenvalues and eigenvectors from matrix A?here is my code:Matrix * A = new MatrixClass();Matrix * B = new MatrixClass();Matrix * C = new MatrixClass();Matrix * D = new MatrixClass();Matrix * E = new MatrixClass();Matrix * F = new MatrixClass(); A->Size(3,3);B->Size(3,1);C->Size(3,1);D->Size(3,3);E->Size(3,3);F->Size(3,3);A->set_Item(0,0,1);A->set_Item(0,1,2);A->set_Item(0,2,3);A->set_Item(1,0,4);A->set_Item(1,1,5);A->set_Item(1,2,6);A->set_Item(2,0,7);A->set_Item(2,1,8);A->set_Item(2,2,9);Console::WriteLine("My matrix:");Console::WriteLine(A->GetString(3,"<br>"));Console::Read();how use EIGEN ???becouse when I use:"A->Eigen(__gc (*B), __gc*(C), __gc *(D), __gc *(E));"compiler shows me error :(Thu, 08 Jun 2006 16:30:48 GMTmlekoSortinghttp://www.bluebit.gr/forum/Topic101-1-1.aspxWhat type of sorting algorithm is used for the sortrows method?Thu, 18 May 2006 13:56:07 GMTadrianbbActiveX Component with FOXPROhttp://www.bluebit.gr/forum/Topic92-1-1.aspxHas anyone had any experience using this control with MS FoxPro? I have downloaded the trial version to test it out before i buy the advanced version. The excel example works but the help file says to select the activeX control from References on the Tools menu. In FoxPro there is no references option on the tools menu.In the FoxPro options there is a 'Controls' tab where the activeX controls can be selected. I have tried to add the control to this list but it does not appear after being added.Can anyone please give me some advice on how i go about using this control from with FoxPro?Thanks,James.Tue, 21 Mar 2006 02:22:02 GMTziconGetstringhttp://www.bluebit.gr/forum/Topic89-1-1.aspxhiI use method "matrix.getstring"it show| 0.2 0.3 0.1 || 0.1 0.5 0.6 || 0.5 0.1 0.2 |How it can show without " | "0.2 0.3 0.10.1 0.5 0.60.5 0.1 0.2thank youTue, 07 Mar 2006 09:15:24 GMTTewinWrapping methods of MaXC togetherhttp://www.bluebit.gr/forum/Topic54-1-1.aspxHello, I have been wondering if there is a way to wrap together, or nest, several methods of MaXC together, to simplify some work I'm doing. As an example, let's say I have three matrices: matrix W1 is a row vector with 4 elements, matrix A is a 4 x 4 square matrix, and matrix W2 is a column vector with 4 elements. I want to premultiply A by W1 and postmultiply it by W2, with the result then being a single number (call it RESULT). What I tried first was something like: [code]Set RESULT = W1.Times(A.Times(W2))[/code]This did not work. I found that I had to first create an intermediate result for the portion of the above represented by A.Times(W2), with: [code]Set temp_matrix = A.Times(W2)[/code] and then do something like: [code]Set RESULT = W1.Times(temp_matrix)[/code] This means that I also had to dimension, instantiate, and size the matrix "temp_matrix", which is three additional lines of code that it would be nice not to have to worry about. Is there some way to nest the functions together?Thanks! Tue, 05 Apr 2005 12:04:24 GMTanonymousMatrix Square Roothttp://www.bluebit.gr/forum/Topic41-1-1.aspxDear Trifon,I have got square of a matrix and I want to calculate the matrix. In other words I need to know how can I calculate A while I have A * A ?thanks.Mon, 17 Jan 2005 13:54:55 GMTrezaghaemmaAccuracy in CMatrix.Inversehttp://www.bluebit.gr/forum/Topic39-1-1.aspxHi All,I have a problem in working out the inverse of a CMatrix when its determinant is very small (less than 1e-200). I copied the result of GetString() method into Matlab, and finally got the inverse and determinant of my Matrix there. Matlab responded properly whereas CMatrix3.1 had shown me this message: "Matrix cannot be inverted". I am guessing the problem lies in accuracy of 'Double' variable of Visual Basic 6.0, the language I am writing my code with. Anybody has a better idea? And if you guess so, may you tell me how to solve this problem?Thanx in advance,Reza.Sun, 09 Jan 2005 10:25:33 GMTrezaghaemmapopulating whole rows and columnshttp://www.bluebit.gr/forum/Topic37-1-1.aspxIn MATLAB one can populate whole columns or rows using the conventionB = A(:,1) or B = A(1,:)which extracts a row or a column from A. AlsoB = A(1:2,1:2) extracts a 2x2 matrix from A.Are you planning to put something like this in the ActiveX component? Doing "for" loops to populate a matrix is a nuisance...Wed, 05 Jan 2005 00:38:27 GMTzdrawko[Q] Computation of Covariance Matrix?http://www.bluebit.gr/forum/Topic36-1-1.aspxX1 X23387 2200 3109 875 2670 957 3125 1758 3469 868 3120 398 3671 1603 4531 523 3678 2034 3238 1136 3135 5326 5217 1658 3728 1945 3506 344 3824 807 3516 1223 The computation result of covariance matrix of sample matrix is not same as the solution in my book. It doesn't seem to be a rounding off error. How about your compuation result of covariance matrix of above Sample data?In Visual C++ 6.0 environment.Thanks in advance.Thu, 23 Dec 2004 05:03:35 GMTsprintscomplex arithmetic in C++http://www.bluebit.gr/forum/Topic28-1-1.aspxI've downloaded your software and am having problems with the complex arithmetic. I have a piece of code:ICMatrix *z;Complex x, y, v;...x = z->GetItem(0,0);y = z->GetItem(0,1);v = CMul(&x,&y);I have errors C2065: CMul undeclared identifierand C2100: illegal indirection.When I use only matrix operations everything is ok.What should I do?I use Microsoft Visual Studio .NETThu, 28 Oct 2004 14:48:31 GMTAnnOutput or Exporting a Matrix from VBAhttp://www.bluebit.gr/forum/Topic22-1-1.aspxDear Forum Members I am porting some code from Matlab into Excel VBA, as I am currently swapping between the two apps. I am generating some large Matricies which I can not put into Excel because of the 255 (Cell IV1) width limit. Having scanned the Help files in VBA and MaxC I can not find a way of exporting or saving the Matrix. A text file (any delimiter) would be fine. Can anyone help solve this problem?Thanks in advance for your help.~~~~~~~~~~Jason HydeMon, 30 Aug 2004 17:54:03 GMTpczjrhSignificant Digitshttp://www.bluebit.gr/forum/Topic17-1-1.aspxHow many significant digits does a matrix retain? I am running calculations that require at least 6 decimal places, however, when I view the matrix contents in the debug window, only 3 decimal places are shown.Wed, 31 Mar 2004 09:36:00 GMTanonymousCompatibility with C#http://www.bluebit.gr/forum/Topic15-1-1.aspxHelloI'm wondering if I can use Matrix component with Microsoft C#.NetThanks in advance,NunoMon, 22 Mar 2004 15:35:31 GMTnunobijouMoore-Penrose inverse - pseudoinversehttp://www.bluebit.gr/forum/Topic14-1-1.aspxHi Is there a way to use Matrix ActiveX Component in order to calculate the Moore-Penrose inverse (pseudoinverse) of a matrix?ThanksSun, 21 Mar 2004 21:14:22 GMTanonymousLeast Squares Fit of a 3rd order polynomialhttp://www.bluebit.gr/forum/Topic12-1-1.aspxI am interested in using your matrix component in a project and would like to know if it will do what is needed.Project: Using linear regression, extract roots or coeficients from a set of ordered pairs (x,y). These coeficients will then be used in a 3rd order polynomial to generate y based on x. The platform is Visual Basic .NET.Questions:1. Will your software do this? 2. Do you have any example code or suggestions?3. What are the limitations.ThanksWed, 17 Mar 2004 23:23:43 GMTanonymousTimes methodhttp://www.bluebit.gr/forum/Topic11-1-1.aspxI've downloaded your software and am having problems with the times method.<BR>I want to multiply a 3x3 matrix by a 3x1 matrix and get a type mismatch error. Your help file says that " The number or rows of Matrix2 parameter must be equal to number of columns of current Matrix" which I believe is the case.<BR><BR>The code I have used is:<BR>[code] Dim M1, M2, M3, M4 As Matrix<BR><BR>Set M1 = New Matrix<BR><BR>M1.Rows = 3: M1.Cols = 3<BR><BR>M1.Item(0, 0) = 3<BR>M1.Item(0, 1) = 4<BR>M1.Item(0, 2) = 5<BR>M1.Item(1, 0) = 6<BR>M1.Item(1, 1) = 7<BR>M1.Item(1, 2) = 8<BR>M1.Item(2, 0) = 9<BR>M1.Item(2, 1) = 10<BR>M1.Item(2, 2) = 11<BR><BR>Set M2 = New Matrix<BR>M2.Rows = 3: M2.Cols = 1<BR><BR>M2.Item(0, 0) = 1<BR>M2.Item(1, 0) = 1<BR>M2.Item(2, 0) = 1<BR><BR>Set M3 = M1.Times(M2) <---------- Type mismatch error here!<BR>[/code] <BR>Can you let me know why this doesn't work. More complicated functions such as inverse are working ok and multiplying 3x3 by 3x3 works.Wed, 17 Mar 2004 19:38:20 GMTanonymousUse with Borland Builder C++http://www.bluebit.gr/forum/Topic8-1-1.aspxI recently downloaded your evaluation version of the Matrix Active control and have been trying to put it through some tests. I am not a professional program, but a mechanical engineer, so bear with me...The Matrix ActiveX control appears to be targeted to Visual Basic users, which I am one. I've used it with VB, and found it very easy to use. I am currently trying to use it in Borland's C++ Builder. Borland C++ Builder is capable of importing the ActiveX through the dll and puts a wrapper on it for use in the program as an ActiveX control. The Matrix and CMatrix controls are easy to use, but when it comes to performing math on the matrices, the compiler indicates that it is expecting reference to IMatrix not Matrix.Do you know how I can perform the math functions using Borland's C++ Builder? I believe Borland's Delphi is similar except it uses Pascal instead of C++.Tue, 02 Mar 2004 01:13:22 GMTbowserUsing Matrix ActiveX Component in vbscripthttp://www.bluebit.gr/forum/Topic7-1-1.aspxI am trying to use MaXC in vbscript and I get a type mismatch error when I try to use the Times Method.<BR><BR>This is the code I use:<BR><BR>[code]<BR>Set A = CreateObject("BluebitMatrix30.Matrix")<BR>A.Size 4, 4<BR>A.FillRandom<BR><BR>Set B = CreateObject("BluebitMatrix30.Matrix")<BR>B.Size 4, 4<BR>B.FillRandom<BR><BR>Set C = A.Times(B) <-- Type mismatch error here<BR>[/code]Mon, 01 Mar 2004 18:21:55 GMTanonymousUse of MaXC30 in Excelhttp://www.bluebit.gr/forum/Topic6-1-1.aspxHi,<BR><BR>I am having trouble with using the eigen method<BR><BR>I get an 'type mismatch (13)' error no matter how I try to using it. The<BR>code below does not work and gives the error I have mentioned.<BR>[code]<BR>Sub genvalues(Sheet, FX, FY)<BR>Set M = CreateObject("BluebitMatrix30.Matrix")<BR>M.Size 3, 3<BR><BR>For X = 0 To 2<BR>For Y = 0 To 2<BR>M(X, Y) = Worksheets(Sheet).Cells(Y + FY, X + FX)<BR>Next<BR>Next<BR><BR>Set RoE = CreateObject("BluebitMatrix30.Matrix")<BR>Set IoE = CreateObject("BluebitMatrix30.Matrix")<BR>Set RoV = CreateObject("BluebitMatrix30.Matrix")<BR>Set IoV = CreateObject("BluebitMatrix30.Matrix")<BR><BR>M.EigenC RoE, IoE, RoV, IoV<BR>....<BR>End Sub<BR>[/code]<BR><BR>I have also tried not declaring the variables.<BR><BR>Can you tell me what I am doing wrong.<BR><BR>Thanks in advanceMon, 01 Mar 2004 16:50:33 GMTanonymousMaXC forum is activehttp://www.bluebit.gr/forum/Topic1-1-1.aspxThank you for visiting this forum. This is a place where you can post your queries and receive support for all issues regarding Matrix ActiveX Component.Mon, 23 Feb 2004 14:25:17 GMTTrifon