W3C home > Mailing lists > Public > www-math@w3.org > May 2007

Re: sparse matrix support in MathML

From: Max Berger <max@berger.name>
Date: Thu, 31 May 2007 15:16:26 +0200
Message-ID: <465ECAAA.8060407@berger.name>
To: David Carlisle <davidc@nag.co.uk>
CC: www-math@w3.org
Dear David,

David Carlisle schrieb:
>> - Reuse mtable, mrow, mcolumn (otherwise functionality is duplicated).
> 
> wouldn't you want to use content markup rather than presentation for
> this?

You are right. Assuming display math is for displaying only, and
therefore it wouldn't matter to insert numerous extra <mtd>, the
original idea of introducing a <smatrix> for content markup seems fine
to me. However, I think the ideas of attribute handling are still valid.

Here is an idea for the "rest" of the matrix:

<smatrix columns="4">
  <smatrixdefalut><cn>0</cn><smatrixdefault>
  <smatrixrow>
    <smatrixelem col="1"><cn>1</cn></smatrixelem>
    <smatrixelem col="2"><cn>2</cn></smatrixelem>
  </smatrixrow>
  <smatrixrow>
    <smatrixelem col="4"><cn>3</cn></smatrixelem>
  </smatrixrow>
  <smatrixrow>
    <smatrixelem col="4"><cn>4</cn></smatrixelem>
  </smatrixrow>
</smatrix>

the "smatrixdefault" element would give the "default" value for all
unspecified elements. If not given, I believe <cn>0</cn> seems like a
good default value. However, one would have to use <smatrixdefault/> to
empty the default element.


> David


mfG

Max Berger
e-mail: max@berger.name

-- 
OpenPG ID: E81592BC   Print: F489F8759D4132923EC4 BC7E072AB73AE81592BC
For information about me and my work please see http://max.berger.name


Received on Thursday, 31 May 2007 13:16:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:59 GMT