matlab - Fast celllarray by matrix multiplication -


i have long (~7000) cellarray containing each 3x3 matrix. premultiply , post-multiply each of matrices same 3-dimensional vector a. operation expressed as:

[a1 a2 a3]'*m*[a1 a2 a3] ,  

where a = [a1 a2 a3]

my question is: how can implement in fast way? have tried simple loop , results faster using cellfun after reshaping vector in many 3x3 matrices have , converting cell array. idea?

edit: maybe cell array containing 3x3 matrices expressed in form possible compute operation in vectorized way.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -