Subtract value from column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeckstrom
    New Member
    • Sep 2010
    • 1

    Subtract value from column

    This is my code thus far:

    Code:
    #! /usr/local/bin/python
    
    import sys
    import numpy
    
    A = numpy.matrix([[3.8351274705,  -0.1448460097,   5.8649306918],
                 [3.0383950010,   0.4744278528,   6.3044376843],
                 [4.5435746933,   0.5586559729,   5.4015817017]])
    What I need to be able to do is subtract the value of A(0,0) from the entire column 0. Unfortunately, I have no idea how to do this in any language except Scilab.
Working...