home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
dev
/
c
/
math_classes.lha
/
math_classes
/
matrix
/
libmatrix
/
mat_setcol.cc
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-10-05
|
193 b
|
12 lines
#include "Matrix.h"
void Matrix::setcol(unsigned int co,Matrix v)
{
if(v.cols()!=1) error("Column vector required");
for(unsigned int i=1;i<=rows();i++)
{
(*this)(i,co)=v(i,1);
}
}