forum.alglib.net

ALGLIB forum
It is currently Sat Apr 20, 2024 3:39 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Translate function from Matrix Library to AlgLib
PostPosted: Wed May 30, 2012 10:19 am 
Offline

Joined: Wed May 30, 2012 10:17 am
Posts: 1
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.


Top
 Profile  
 
 Post subject: Re: Translate function from Matrix Library to AlgLib
PostPosted: Wed May 30, 2012 11:32 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 906
You have to create a sequence of calls to RMatrixGEMM and RMatrixTranspose, which use temporary matrices.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group