forum.alglib.net http://forum.alglib.net/ |
|
Translate function from Matrix Library to AlgLib http://forum.alglib.net/viewtopic.php?f=2&t=583 |
Page 1 of 1 |
Author: | ibv [ Wed May 30, 2012 10:19 am ] |
Post subject: | Translate function from Matrix Library to AlgLib |
Could anyone tell me how this would be done using the alglib library? /// <summary> /// Creates a Vector for the Query Matrix /// </summary> /// <param name="target">The query matrix</param> /// <param name="U">a term-concept Matrix ('U')</param> /// <param name="S">a singular value Matrix ('S')</param> /// <returns></returns> public static Matrix CreateQueryVector(this Matrix target, Matrix U, Matrix S) { return Matrix.Transpose(Matrix.Multiply(Matrix.Transpose(target), Matrix.Multiply(U, 1 / S))); } Thanks in advance. |
Author: | Sergey.Bochkanov [ Wed May 30, 2012 11:32 am ] |
Post subject: | Re: Translate function from Matrix Library to AlgLib |
You have to create a sequence of calls to RMatrixGEMM and RMatrixTranspose, which use temporary matrices. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |