original_string: public function index($indices)
      {
          $this->assertIndexMultipliers();
  
          $index = 0;
          for ($i = 0, $length = count($this->indexMultipliers); $i < $length; ++$i) {
              $index += $indices[$i] * $this->indexMultipliers[$i];
          }
  
          return $index;
      }
code: public function index($indices)
      {
          $this->assertIndexMultipliers();
  
          $index = 0;
          for ($i = 0, $length = count($this->indexMultipliers); $i < $length; ++$i) {
              $index += $indices[$i] * $this->indexMultipliers[$i];
          }
  
          return $index;
      }
code_tokens: public function index ( $ indices ) { $ this -> assertIndexMultipliers ( ) ; $ index = 0 ; for ( $ i = 0 , $ length = count ( $ this -> indexMultipliers ) ; $ i < $ length ; ++ $ i ) { $ index += $ indices [ $ i ] * $ this -> indexMultipliers [ $ i ] ; } return $ index ; }
docstring: Computes the index within the data matrix.
  
  @param array $indices An array of all value indices
  
  @return int
docstring_tokens: Computes the index within the data matrix .