User Tools


Accessor ROW-MAJOR-AREF

Syntax

  • row-major-aref array indexelement
  • (setf (row-major-aref array index) new-element)

Arguments and Values

Description

Considers array as a vector by viewing its elements in row-major order, and returns the element of that vector which is referred to by the given index.

Examples

None.

Side Effects

None.

Affected By

None.

Exceptional Situations

None.

See Also

Notes

(row-major-aref array index) ≡ (aref (make-array (array-total-size array) :displaced-to array :element-type (array-element-type array)) index)

(aref array i1 i2 ...) ≡ (row-major-aref array (array-row-major-index array i1 i2))

\issue{AREF-1D} \issue{ARRAY-DIMENSION-LIMIT-IMPLICATIONS:ALL-FIXNUM}