Search found 91 matches: matrices

Return to advanced search

Re: New FTDN January/Enero 2021 (FWH 21.01)

... automáticamente un árbol a partir de los datos y cambia a TreeBrowse. Esta característica funciona para la mayoría de las fuentes de datos como matrices, ficheros dbf, conjuntos de filas, pero no funciona con conjuntos de registros ADO. Ahora también funciona con conjuntos de registros ADO. ...
by Antonio Linares
Sun Feb 07, 2021 9:15 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2021 (FWH 21.01)
Replies: 1
Views: 1258

Re: matrices multiplication

Dear Silvio,

My interest in porting those 9 lines from Python to Harbour is in building a small and simple neural network to be used from Harbour and mainly for learning purposes :-)
by Antonio Linares
Tue Oct 13, 2020 9:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

Dear Silvio, http://forums.fivetechsupport.com/viewtopic.php?f=44&t=39467 Dear antonio I know that Python it is a multi-paradigm language, which supports both procedural programming (which makes use of functions) and object-oriented programming (including features such as single and multiple in...
by Silvio.Falconi
Tue Oct 13, 2020 6:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

by Antonio Linares
Tue Oct 13, 2020 6:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

I am very intrigued, I did not understand what you are trying to do, I want to participate too if it comes to things to eat (cakes, sweets, ..) even if I have to go on a diet I know !!!
by Silvio.Falconi
Tue Oct 13, 2020 5:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

Shortest version based on Mr. Rao version: function Main()   ? MatrixMult( { { 1, 2 }, { 3, 4 } },;                 { { 11, 12 }, { 13, 14 } } )return nilfunction MatrixMult( aMatrix1, aMatrix2 )   local aRowMatrix1,...
by Antonio Linares
Tue Oct 13, 2020 8:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

Shortest version ? :-) function Main()   ? MatrixMult( { { 1, 2 }, { 3, 4 } },;                 { { 11, 12 }, { 13, 14 } } )return nilfunction MatrixMult( aMatrix1, aMatrix2 )   local aRowMatrix1, nColMatrix2, nRowMa...
by Antonio Linares
Tue Oct 13, 2020 7:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

Without ArrTranspose function Main()   // [ 2, 2 ] x [ 2, 2 ] = [ 2, 2 ]   local aMatriz1 := { { 1, 2 }, { 3, 4 } }   local aMatriz2 := { { 11, 12 }, { 13, 14 } }   // [ 1, 3 ] x [ 3, 1 ] = [ 2, 1 ]   //local aMatriz1 := { { 1, -2, ...
by cnavarro
Mon Oct 12, 2020 8:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

With ArrTranspose function Main()   // [ 2, 2 ] x [ 2, 2 ] = [ 2, 2 ]   local aMatriz1 := { { 1, 2 }, { 3, 4 } }   local aMatriz2 := { { 11, 12 }, { 13, 14 } }   // [ 1, 3 ] x [ 3, 1 ] = [ 2, 1 ]   //local aMatriz1 := { { 1, -2, 3 }...
by cnavarro
Mon Oct 12, 2020 3:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

All the new matrix functions are still under testing and may still need some fixes.
by nageswaragunupudi
Mon Oct 12, 2020 11:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

Dear Antonino, Fixed in my original post many thanks! Mr. Rao has managed to implement an enhanced version that does not need the ArrTranspose() call. It will be included in the next FWH build: function MatrixMult( matrix1, matrix2 )   local MatrixA, MatrixB, i, j, nRow, nCol, nRow...
by Antonio Linares
Mon Oct 12, 2020 11:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

The fix is pretty simple, you swapped row and col creating the result, here the correct creation: function MatrixMult( aMatrix1, aMatrix2 )   local nRowsMatrix1 := Len( aMatrix1 )   local nColsMatrix2 := Len( aMatrix2[ 1 ] )   local aRowMatrix1, aRowMatrix2, nValRowMa...
by AntoninoP
Mon Oct 12, 2020 10:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

Nice, now some home work: :wink: https://i.imgur.com/a1TDeej.png I tryed: function Main()   LOCAL a := { { 1, 2, 3 }, { 4, 5, 6 } }   LOCAL b := { { 11, 12 }, { 13, 14 }, { 15, 16 } }   ? hb_ValToExp(Ma...
by AntoninoP
Mon Oct 12, 2020 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

Re: matrices multiplication

Image
by Antonio Linares
Mon Oct 12, 2020 10:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032

matrices multiplication

function Main()   ? MatrixMult( { { 1, 2 }, { 3, 4 } },;                 { { 11, 12 }, { 13, 14 } } )          return nilfunction MatrixMult( aMatrix1, aMatrix2 )   local nRowsMatrix1 := Len( aMatrix1 ...
by Antonio Linares
Sun Oct 11, 2020 11:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: matrices multiplication
Replies: 13
Views: 1032
PreviousNext

Return to advanced search