use super::*;
#[doc = include_str!("vmatrix.xml")]
pub fn matrix<I>(rows: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
MathTable::matrix(rows).into()
}
#[doc = include_str!("vmatrix.xml")]
pub fn smallmatrix<I>(rows: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
todo!()
}
#[doc = include_str!("bmatrix.xml")]
pub fn bmatrix<I>(rows: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
MathRow::new(vec![MathML::operation("[").into(), MathTable::matrix(rows).into(), MathML::operation("]").into()]).into()
}
#[doc = include_str!("bmatrix2.xml")]
pub fn Bmatrix<I>(rows: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
MathRow::new(vec![MathML::operation("{").into(), MathTable::matrix(rows).into(), MathML::operation("}").into()]).into()
}
#[doc = include_str!("vmatrix.xml")]
pub fn vmatrix<I>(rows: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
MathRow::new(vec![MathML::operation("|").into(), MathTable::matrix(rows).into(), MathML::operation("|").into()]).into()
}
#[doc = include_str!("vmatrix2.xml")]
pub fn Vmatrix<I>(items: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
MathRow::new(vec![MathML::operation("‖").into(), MathTable::matrix(items).into(), MathML::operation("‖").into()]).into()
}
#[doc = include_str!("pmatrix.xml")]
pub fn pmatrix<I>(items: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
MathRow::new(vec![MathML::operation("(").into(), MathTable::matrix(items).into(), MathML::operation(")").into()]).into()
}
#[doc = include_str!("cases.xml")]
pub fn cases<I>(items: I) -> MathML
where
I: IntoIterator<Item = MathML>,
{
MathRow::new(vec![MathML::operation("{").into(), MathTable::matrix(items).with_attribute("columnalign", "left").into()])
.into()
}