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_hashed_array

Function: read_hashed_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_hashed_array (<S>, <A>, <separator_flag>) Reads the source <S> and returns its entire content as a hashed array. The source <S> may be a file name or a stream.

read_hashed_array treats the first item on each line as a hash key, and associates the remainder of the line (as a list) with the key. For example, the line 567 12 17 32 55 is equivalent to A[567]: [12, 17, 32, 55]$. Lines need not have the same numbers of elements.

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

array(a,0,90,8);

a(0,0);

Calculate

array-cos-random-sin

array(data,16,16,16);

for i: 0 thru 7 do f...

data[0,0,0]=data[8,0,0];

Calculate

array-do-if-listarray-plot2d
plot2d([discrete,[rx,ry]]);

array(rs,float,5);

i:0;

f(x):=x^2;

Calculate

array

array(A,9);

Calculate

array-do-if-listarray-plot2d-sin
plot2d([f,[discrete,pointx,pointy],[discrete,rx,ry]],[x,0,6.28],[style,lines,points,points],[point_type,diamond,circle],[legend,"sin(x)","",""]);

array([rs,rsy],float,5);

i:0;

n:200;

Calculate

array-cos-random-remainder-sin-subst

array(data,8,8,8);

for i: 0 thru 7 do f...

data[0,0,0];

Calculate

array-fillarray-make_array-makelist

A1 : make_array (fixn...

A1 [8] : 1729;

A1;

Calculate