Skip to content
Numerical Method , home
Menu

Forum Numerical Method Linear Algebra

Constructor for Matrix and Vector

  1. kevinsunParticipant 2010-05-17 at 7:21 am

    Is it possible to have constructors implementing what Matlab’s matrix manipulation does? like the following:

    A=[B,v];
    A=[B;v’];
    v=[u;3];
    

    I think it would be convenient to have the capability of combining a matrix with a vector, instead of manually copying each elements.