B
bluekite2000
If it is what is this technique called? A good example for this would
be when I need to extract a column out of a matrix, then create a new
diagonal matrix out of this column, ie:
A.cols(3).diag()
(cols() is a member function of class Matrix, returning a Vector
object. diag() is a member function of class Vector, returning a Matrix
object)
Is this the best syntax possible? What are the pros and cons (speedwise)
be when I need to extract a column out of a matrix, then create a new
diagonal matrix out of this column, ie:
A.cols(3).diag()
(cols() is a member function of class Matrix, returning a Vector
object. diag() is a member function of class Vector, returning a Matrix
object)
Is this the best syntax possible? What are the pros and cons (speedwise)