English
Experimente

Speicherverwaltung dreidimensionaler Matrizen (tested in XProfan-11)

 

p.specht

Speicherverwaltung dreidimensionaler Matrizen:

XProfan (V. 11.2a) functions with the "Am-Stück"-Speicherverwaltung only for static declared lists and Matrizen with of vorneherein definierter Size. then but can itself sure grab, if one The Indexverwaltung (and the Speicherbedarf for a Einzelelement) correctly. einsetzt.

for a later Umsetzung in Assembler moreover The nachstehende small investigation.
Window Title "Studie: memory- and Zugriffsorganisation"+\
"auf dreidimensionale Matrizen (a.k.a. Tensoren)"
Cls:randomize
'Speicherbedarf one Einzelwertes (XProfan):
var SB&=8'double precision Floatingpoint: 8 byte
'Stellenzahlen
var xm&=2
var ym&=2
var zm&=2
declare x&,y&,z&, M![xm&-1,ym&-1,zm&-1]
M![]=&index'rnd()
print
print "Händisch for M[x,y,z]:"
print M![0,0,0],M![0,0,1],"    ",M![0,1,0],M![0,1,1]
print M![1,0,0],M![1,0,1],"    ",M![1,1,0],M![1,1,1]
print
print "Vereinfacher x-Komponentenaufruf:"
print M![0]
print M![1]
print
print "Linear programmierter appeal:"

Whileloop 0,zm&-1:z&=&Loop

    Whileloop 0,ym&-1:y&=&Loop

        whileloop 0,xm&-1:x&=&Loop

            print float( addr(M![0]),SB&*(x& * ym&*zm& + y& *zm& + z&)),
            EndWhile:print "    ";
            Endwhile:print
            Endwhile:print
            waitinput
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/29/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.026 Views

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie