Nam quis commemoret tot nomina quisve requi.. (unreadable)
Nomina quae mundus mente animoque tenet,
Quisve roget, quos Musa recens, quas Gratia nuper
Eductos illa duxerit alma domo,
Vnde mathematicis lumen praeluxit Hamilto,
Hippocratis pueris Stokius unde facem,
Cuius et e rivis hortos, quicumque vetustas
Graia ac Romana est cura laborque, rigat.
The verses were part of a long Ode written in praise of 'famous names' all from one place of learning, probably Trinity College Dublin.
"For who may remember so many...
Names which the world holds fondly
in mind and heart..."
Then ...
"Who is asking which [Deities] led forth the educated from the College (the Alma Domo)...
Then, your quotation,
From which Hamilton, a luminary in Mathematics, shone out /blazed forth,
Vnde mathematicis lumen praeluxit Hamilto,
From which, unde, means 'from this college.'
lumen, light, is nominative, cognate with Hamilto.
I would rewrite it as
"College...from which Hamilton, a luminary in Mathematics, shone out."