﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Bluebit Software Support Forum / Technical Support and Help / Matrix ActiveX Component  / Times method / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Bluebit Software Support Forum</description><link>http://www.bluebit.gr/forum/</link><webMaster>support@bluebit.gr</webMaster><lastBuildDate>Thu, 17 May 2012 06:40:01 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Times method</title><link>http://www.bluebit.gr/forum/Topic11-1-1.aspx</link><description>When you use this statement:&lt;BR&gt;[code]Dim M1, M2, M3, M4 As Matrix[/code]&lt;BR&gt;variables M1,M2,M3 are declared as Variants and only variable M4 is&lt;BR&gt;declared as a Matrix variable.&lt;BR&gt;Try this:&lt;BR&gt;[code]Dim M1, M2, M3, M4 As Matrix&lt;BR&gt;Debug.Print TypeName(M1), TypeName(M4)[/code]&lt;BR&gt;you will get : [code]Variant Matrix[/code]&lt;BR&gt;In order to have this problem fixed please replace the Dim statement as follows:&lt;BR&gt;[code]Dim M1 As Matrix, M2 As Matrix, M3 As Matrix, M4 As Matrix[/code]&lt;BR&gt;</description><pubDate>Wed, 17 Mar 2004 19:44:06 GMT</pubDate><dc:creator>Trifon</dc:creator></item><item><title>Times method</title><link>http://www.bluebit.gr/forum/Topic11-1-1.aspx</link><description>I've downloaded your software and am having problems with the times method.&lt;BR&gt;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.&lt;BR&gt;&lt;BR&gt;The code I have used is:&lt;BR&gt;[code] Dim M1, M2, M3, M4 As Matrix&lt;BR&gt;&lt;BR&gt;Set M1 = New Matrix&lt;BR&gt;&lt;BR&gt;M1.Rows = 3: M1.Cols = 3&lt;BR&gt;&lt;BR&gt;M1.Item(0, 0) = 3&lt;BR&gt;M1.Item(0, 1) = 4&lt;BR&gt;M1.Item(0, 2) = 5&lt;BR&gt;M1.Item(1, 0) = 6&lt;BR&gt;M1.Item(1, 1) = 7&lt;BR&gt;M1.Item(1, 2) = 8&lt;BR&gt;M1.Item(2, 0) = 9&lt;BR&gt;M1.Item(2, 1) = 10&lt;BR&gt;M1.Item(2, 2) = 11&lt;BR&gt;&lt;BR&gt;Set M2 = New Matrix&lt;BR&gt;M2.Rows = 3: M2.Cols = 1&lt;BR&gt;&lt;BR&gt;M2.Item(0, 0) = 1&lt;BR&gt;M2.Item(1, 0) = 1&lt;BR&gt;M2.Item(2, 0) = 1&lt;BR&gt;&lt;BR&gt;Set M3 = M1.Times(M2) &amp;lt;---------- Type mismatch error here!&lt;BR&gt;[/code] &lt;BR&gt;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.</description><pubDate>Wed, 17 Mar 2004 19:38:20 GMT</pubDate><dc:creator>anonymous</dc:creator></item></channel></rss>
