Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.8K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

I want to calculate this formula in my code

Posted 3 years ago

Hi, I want to calculate this formula in my code: I have vectors and my formula is: u.transpose(u).f f is matrix

POSTED BY: Fatemeh Hoveyzi
4 Replies
Posted 3 years ago

Hi, How I can Calculate each of row of matrix: for example my matrix is:

{{0.187364, 0.141503, 0.377614, 0.0874997, 0.20602}, {0.191523, 
  0.322754, 0.19008, 0.0559412, 0.239701}, {0.199786, 0.136589, 
  0.0801141, 0.563902, 0.01961}, {0.207987, 0.27773, 0.224755, 
  0.0650083, 0.224519}, {0.21334, 0.121424, 0.127437, 0.227649, 
  0.310149}}

first row is: {0.187364, 0.141503, 0.377614, 0.0874997, 0.20602} I want to calculate the sum of all of this elements in the row.

POSTED BY: Updating Name
Posted 3 years ago

Nobody can help you unless you provide the definitions for u and f and the code that you ran.

POSTED BY: Rohit Namjoshi

Hi, I try it, but the output should be a matrix but here, no.

POSTED BY: Fatemeh Hoveyzi
Posted 3 years ago

Is any of the code in your post relevant to your question? Have you tried

u.Transpose[u].f
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard