public function setElements(array $elements)
    {
        $this->elements = array();

        foreach ($elements as $element) {
            $this->addElement($element);
        }
    }
public function setElements(array $elements)
    {
        $this->elements = array();

        foreach ($elements as $element) {
            $this->addElement($element);
        }
    }
public function setElements ( array $ elements ) { $ this -> elements = array ( ) ; foreach ( $ elements as $ element ) { $ this -> addElement ( $ element ) ; } }
Sets the distance matrix row elements.

@param array $elements The row elements.
Sets the distance matrix row elements .