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_array

Function: read_array (<S>, <A>)

array (A, 2, 3);
read_array (file_search ("array.data"), A, comma);
arraylist (A);
A;
read_hashed_array (file_search ("array.data"), B, comma);
arraylist (B);
B[Schmidt];

Function: read_array (<S>, <A>, <separator_flag>) Reads the source <S> into the array <A>, until <A> is full or the source is exhausted. Input data are read into the array in row-major order; the input need not conform to the dimensions of <A>.

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

array-genmatrix-listarray-matrix

array(mitabla,2,2);

mitabla[0,0]:11;

mitabla[0,0];

Calculate

array-arrayinfo

array (name, 2,3,4,5);

arrayinfo(name);

Calculate

array-listarray-min-round

xmin:-2;

xmax:5;

deltax:0.01;

Calculate

array

array (aa, 2);

aa[1]:10;

Calculate

array-sum

array(cs,4,4,4);

cs[0,0,0];

for i: 0 thru 3 do f...

Calculate

array

array(T, 901);

array(N_c, 901);

array(N_v, 901);

Calculate

array-fillarray-listarray

array(P, 4, 3);

fillarray(P, ...

listarray(P);

Calculate

array-do

array( E,1000);

for n:1 step 1 thru 5...

Calculate

array-disp-do

array( E,1000);

array(F,1000);

E[0]:0;

Calculate