Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Read_matrix

Function: read_matrix (<S>)

Function: read_matrix (<S>, <M>)

Function: read_matrix (<S>, <separator_flag>)

Function: read_matrix (<S>, <M>, <separator_flag>) read_matrix(<S>) reads the source <S> and returns its entire content as a matrix. The size of the matrix is inferred from the input data; each line of the file becomes one row of the matrix. If some lines have different lengths, read_matrix complains.

read_matrix(<S>, <M>) read the source <S> into the matrix <M>, until <M> is full or the source is exhausted. Input data are read into the matrix in row-major order; the input need not have the same number of rows and columns as <M>.

The source <S> may be a file name or a stream.

The recognized values of <separator_flag> are comma, pipe, semicolon, and space. If <separator_flag> is not specified, the file is assumed space-delimited.

(%o1)                                true
(%i2) 

Related Examples

matrix-rank

A: matrix([3,-6,9,0],...

rank(A);

Calculate

matrix-nullspace

m:matrix([0,1],[0,0]);

nullspace(m);

Calculate

matrix-transpose

m:matrix([f,0,u0],[0,...

n3:[n3x,n3y,k3-1];

n2:[n2x,n2y,k2-1];

Calculate

matrix

T:matrix([x,xy,xz],[x...

det(T);

Calculate

matrix-transpose

n2:[n2x,n2y,k2-1];

n3:[n3x,n3y,k3-1];

m:matrix([f,0,u0],[0,...

Calculate

matrix-permanent-trace

a: matrix([1,-1,0],[0...

permanent(a^2002222);

trace(a);

Calculate

matrix

R=matrix([1,0,0],[0,1...

Calculate

matrix

A:matrix([7,5],[-6,-4]);

I:matrix([1,0],[0,1]);

A^^2;

Calculate

matrix

sina(a) := sin(a);

cosa(a) := cos(a);

rtx: rotx(a):= matrix...

Calculate

matrix

m: matrix ( [[1, 3], ...

v: [1, -7];

m.v;

Calculate