import {
Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Typography,
} from '@mui/material'
import type { MatmulMethod } from '../methods/types'
export interface CellResult {
gflops: number
ms: number
sample: number
}
export type CellState = CellResult | 'pending' | 'unavailable' | 'error' | undefined
export interface ResultsTableProps {
methods: MatmulMethod[]
sizes: number[]
cell(methodId: string, n: number): CellState
}
function CellContent({ state }: { state: CellState }) {
if (state === undefined) return —
if (state === 'pending') return …
if (state === 'unavailable') return