Top Description Methods
org.apache.commons.math3.linear

public Interface FieldVectorChangingVisitor<T extends FieldElement<?>>

Type Parameters
<T>
the type of the field elements
Imports
org.apache.commons.math3.FieldElement

This interface defines a visitor for the entries of a vector. Visitors implementing this interface may alter the entries of the vector being visited.
Since
3.3

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the value returned after visiting all entries
end
()

End visiting a vector.

public void
start(int
the size of the vector
dimension
,
int
the index of the first entry to be visited
start
,
int
the index of the last entry to be visited (inclusive)
end
)

Start visiting a vector.

public T

Returns:

the new value of the entry being visited
visit
(int
the index of the entry being visited
index
,
T
the value of the entry being visited
value
)

Visit one entry of the vector.

Method Detail

endback to summary
public T end()

End visiting a vector. This method is called once, after all entries of the vector have been visited.

Returns:T

the value returned after visiting all entries

startback to summary
public void start(int dimension, int start, int end)

Start visiting a vector. This method is called once, before any entry of the vector is visited.

Parameters
dimension:int

the size of the vector

start:int

the index of the first entry to be visited

end:int

the index of the last entry to be visited (inclusive)

visitback to summary
public T visit(int index, T value)

Visit one entry of the vector.

Parameters
index:int

the index of the entry being visited

value:T

the value of the entry being visited

Returns:T

the new value of the entry being visited